generate_lang_file.php : do not ask translation of already gettext translated strings
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 21 Aug 2015 10:10:23 +0000 (12:10 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 21 Aug 2015 10:10:23 +0000 (12:10 +0200)
public_html/lang/generate_lang_file.php

index a00a513..7975690 100755 (executable)
@@ -60,7 +60,7 @@ if ($argc > 1) {
 $data=array();
 
 function add($msg) {
-  if ($msg!='') {
+  if ($msg!='' && _($msg) == "$msg") {
     global $data, $translations;
     $data[$msg]=$translations[$msg];
   }