Changeset 23584 for extensions/plugin_lang_analysis/include
- Timestamp:
- Jun 27, 2013, 3:33:55 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/plugin_lang_analysis/include/functions.inc.php
r23467 r23584 111 111 } 112 112 // translate 113 if (preg_match_all('#\{(?: ["\']{1})(.*?)(?:["\']{1})\|(?:@{0,1})translate#', $line, $matches))113 if (preg_match_all('#\{(?:\\\\{0,1})(?:["\']{1})(.*?)(?:\\\\{0,1})(?:["\']{1})\|(?:@{0,1})translate#', $line, $matches)) 114 114 { 115 115 for ($j=0; $j<count($matches[1]); ++$j) 116 116 { 117 117 $strings[ stripslashes($matches[1][$j]) ][] = $i+1; 118 } 119 } 120 // translate_dec 121 if (preg_match_all('#translate_dec:(?:\\\\{0,1})(?:["\']{1})(.*?)(?:\\\\{0,1})(?:["\']{1}):(?:\\\\{0,1})(?:["\']{1})(.*?)(?:\\\\{0,1})(?:["\']{1})}#', $line, $matches)) 122 { 123 for ($j=0; $j<count($matches[1]); ++$j) 124 { 125 $strings[ stripslashes($matches[1][$j]) ][] = $i+1; 126 $strings[ stripslashes($matches[2][$j]) ][] = $i+1; 118 127 } 119 128 }
Note: See TracChangeset
for help on using the changeset viewer.