@@ -17,7 +17,7 @@ limitations under the License.
1717'use strict' ;
1818
1919var React = require ( 'react' ) ;
20- import { _t , _tJsx } from 'matrix-react-sdk/lib/languageHandler' ;
20+ import { _t } from 'matrix-react-sdk/lib/languageHandler' ;
2121
2222module . exports = React . createClass ( {
2323 displayName : 'CompatibilityPage' ,
@@ -40,30 +40,24 @@ module.exports = React.createClass({
4040 return (
4141 < div className = "mx_CompatibilityPage" >
4242 < div className = "mx_CompatibilityPage_box" >
43- < p > { _tJsx ( "Sorry, your browser is <b>not</b> able to run Riot." , / < b > ( . * ? ) < \/ b > / , ( sub ) => < b > { sub } </ b > ) } </ p >
43+ < p > { _t ( "Sorry, your browser is <b>not</b> able to run Riot." , { } , { 'b' : ( sub ) => < b > { sub } </ b > } ) } </ p >
4444 < p >
4545 { _t ( "Riot uses many advanced browser features, some of which are not available or experimental in your current browser." ) }
4646 </ p >
4747 < p >
48- { _tJsx ( 'Please install <a href="https://www.google.com/chrome">Chrome</a> or <a href="https://getfirefox.com">Firefox</a> for the best experience.' ,
49- [
50- / < a h r e f = " h t t p s : \/ \/ w w w .g o o g l e .c o m \/ c h r o m e " > ( .* ?) < \/ a > / ,
51- / < a h r e f = " h t t p s : \/ \/ g e t f i r e f o x .c o m " > ( .* ?) < \/ a > / ,
52- ] ,
53- [
54- ( sub ) => < a href = "https://www.google.com/chrome" > { sub } </ a > ,
55- ( sub ) => < a href = "https://getfirefox.com" > { sub } </ a > ,
56- ]
48+ { _t ( 'Please install <chromeLink>Chrome</chromeLink> or <firefoxLink>Firefox</firefoxLink> for the best experience.' ,
49+ { } ,
50+ {
51+ 'chromeLink' : ( sub ) => < a href = "https://www.google.com/chrome" > { sub } </ a > ,
52+ 'firefoxLink' : ( sub ) => < a href = "https://getfirefox.com" > { sub } </ a > ,
53+ } ,
5754 ) }
58- { _tJsx ( '<a href="http://apple.com/safari">Safari</a> and <a href="http://opera.com">Opera</a> work too.' ,
59- [
60- / < a h r e f = " h t t p : \/ \/ a p p l e \. c o m \/ s a f a r i " > ( .* ?) < \/ a > / ,
61- / < a h r e f = " h t t p : \/ \/ o p e r a \. c o m " > ( .* ?) < \/ a > / ,
62- ] ,
63- [
64- ( sub ) => < a href = "http://apple.com/safari" > { sub } </ a > ,
65- ( sub ) => < a href = "http://opera.com" > { sub } </ a > ,
66- ]
55+ { _t ( '< safariLink>Safari</safariLink> and <operaLink>Opera</operaLink> work too.' ,
56+ { } ,
57+ {
58+ 'safariLink' : ( sub ) => < a href = "http://apple.com/safari" > { sub } </ a > ,
59+ 'operaLink' : ( sub ) => < a href = "http://opera.com" > { sub } </ a > ,
60+ } ,
6761 ) }
6862 </ p >
6963 < p >
0 commit comments