@@ -661,8 +661,8 @@ var ICEcoder = {
661661 }
662662
663663 // Adjust the file & replace select dropdown values accordingly
664- document . findAndReplace . target [ 2 ] . innerHTML = ! top . ICEcoder . selectedFiles [ 0 ] ? " all files" : " selected files" ;
665- document . findAndReplace . target [ 3 ] . innerHTML = ! top . ICEcoder . selectedFiles [ 0 ] ? " all filenames" : " selected filenames" ;
664+ document . findAndReplace . target [ 2 ] . innerHTML = ! top . ICEcoder . selectedFiles [ 0 ] ? top . t [ ' all files' ] : top . t [ ' selected files' ] ;
665+ document . findAndReplace . target [ 3 ] . innerHTML = ! top . ICEcoder . selectedFiles [ 0 ] ? top . t [ ' all filenames' ] : top . t [ ' selected filenames' ] ;
666666
667667 // Hide the file menu incase it's showing
668668 top . ICEcoder . hideFileMenu ( ) ;
@@ -1167,7 +1167,7 @@ var ICEcoder = {
11671167 top . get ( 'rText' ) . style . display =
11681168 top . get ( 'replace' ) . style . display =
11691169 top . get ( 'rTarget' ) . style . display =
1170- document . findAndReplace . connector . value == " and"
1170+ document . findAndReplace . connector . value == top . t [ ' and' ]
11711171 ? "inline-block" : "none" ;
11721172 } ,
11731173
@@ -1182,13 +1182,13 @@ var ICEcoder = {
11821182
11831183 // If we have something to find in currrent document
11841184 cM = ICEcoder . getcMInstance ( ) ;
1185- if ( cM && find . length > 0 && document . findAndReplace . target . value == " this document" ) {
1185+ if ( cM && find . length > 0 && document . findAndReplace . target . value == top . t [ ' this document' ] ) {
11861186 content = cM . getValue ( ) . toLowerCase ( ) ;
11871187 // Find & replace the next instance, or all?
1188- if ( document . findAndReplace . connector . value == " and" && buttonClick ) {
1189- if ( document . findAndReplace . replaceAction . value == " replace" && cM . getSelection ( ) . toLowerCase ( ) == find ) {
1188+ if ( document . findAndReplace . connector . value == top . t [ ' and' ] && buttonClick ) {
1189+ if ( document . findAndReplace . replaceAction . value == top . t [ ' replace' ] && cM . getSelection ( ) . toLowerCase ( ) == find ) {
11901190 cM . replaceSelection ( replace , "around" ) ;
1191- } else if ( document . findAndReplace . replaceAction . value == " replace all" ) {
1191+ } else if ( document . findAndReplace . replaceAction . value == top . t [ ' replace all' ] ) {
11921192 var rExp = new RegExp ( find , "gi" ) ;
11931193 cM . setValue ( cM . getValue ( ) . replace ( rExp , replace ) ) ;
11941194 }
@@ -1275,13 +1275,13 @@ var ICEcoder = {
12751275 replaceQS = "" ;
12761276 targetQS = "" ;
12771277 filesQS = "" ;
1278- if ( document . findAndReplace . connector . value == " and" ) {
1278+ if ( document . findAndReplace . connector . value == top . t [ ' and' ] ) {
12791279 replaceQS = "&replace=" + replace ;
12801280 }
1281- if ( document . findAndReplace . target . value . indexOf ( " file" ) >= 0 ) {
1281+ if ( document . findAndReplace . target . value . indexOf ( top . t [ ' file' ] ) >= 0 ) {
12821282 targetQS = "&target=" + document . findAndReplace . target . value . replace ( / / g, "-" ) ;
12831283 }
1284- if ( document . findAndReplace . target . value == " selected files" ) {
1284+ if ( document . findAndReplace . target . value == top . t [ ' selected files' ] ) {
12851285 filesQS = "&selectedFiles=" + top . ICEcoder . selectedFiles . join ( ":" ) ;
12861286 }
12871287 find = find . replace ( / \' / g, '\'' ) ;
0 commit comments