Rev 394 | Rev 511 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 394 | Rev 506 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | $cont .= ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'."\n"; |
110 | $cont .= ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'."\n"; |
111 | $cont .= ' xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.4.1 https://oidplus.viathinksoft.com/oidplus/plugins/messages.xsd">'."\n"; |
111 | $cont .= ' xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.4.1 https://oidplus.viathinksoft.com/oidplus/plugins/messages.xsd">'."\n"; |
112 | $cont .= "\n"; |
112 | $cont .= "\n"; |
113 | foreach ($all_strings as $string) { |
113 | foreach ($all_strings as $string) { |
114 | $stats_total++; |
114 | $stats_total++; |
- | 115 | $string = trim($string); |
|
115 | $cont .= " <message>\n"; |
116 | $cont .= " <message>\n"; |
116 | $cont .= " <source><![CDATA[\n"; |
117 | $cont .= " <source><![CDATA[\n"; |
117 | $cont .= " $string\n"; |
118 | $cont .= " $string\n"; |
118 | $cont .= " ]]></source>\n"; |
119 | $cont .= " ]]></source>\n"; |
119 | if (isset($translation_array[$string]) && !empty($translation_array[$string])) { |
120 | if (isset($translation_array[$string]) && !empty($translation_array[$string])) { |
- | 121 | $translation_array[$string] = trim($translation_array[$string]); |
|
120 | $stats_translated++; |
122 | $stats_translated++; |
121 | if (substr_count($string,'%') != substr_count($translation_array[$string],'%')) { |
123 | if (substr_count($string,'%') != substr_count($translation_array[$string],'%')) { |
122 | echo "\tAttention: Number of %-Replacements differs at translation of message '$string'\n"; |
124 | echo "\tAttention: Number of %-Replacements differs at translation of message '$string'\n"; |
123 | } |
125 | } |
124 | $cont .= " <target><![CDATA[\n"; |
126 | $cont .= " <target><![CDATA[\n"; |