diff options
author | plegall <plg@piwigo.org> | 2010-01-09 23:52:32 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-01-09 23:52:32 +0000 |
commit | 2ed479744e3fc48f722970bba88d06ead5300fc0 (patch) | |
tree | 20c585108346b48eda85e909cd5f648d9698380c /tools/translation_analysis.php | |
parent | c85dbe813beb59709e4e52d678abd544ba20feaf (diff) |
feature 1374 related: don't display the validated keys as "untranslated yet".
git-svn-id: http://piwigo.org/svn/branches/2.0@4646 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | tools/translation_analysis.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/translation_analysis.php b/tools/translation_analysis.php index d5ae444ca..f4cfd1f3a 100644 --- a/tools/translation_analysis.php +++ b/tools/translation_analysis.php @@ -23,7 +23,7 @@ define('PHPWG_ROOT_PATH', '../'); include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); - +include_once( PHPWG_ROOT_PATH.'tools/translation_validated.inc.php' ); $languages = array_keys(get_languages()); $page['ref_compare'] = 'en_UK'; @@ -70,6 +70,11 @@ foreach ($languages as $language) { continue; } + + if (isset($validated_keys[$language]) and in_array($key, $validated_keys[$language])) + { + continue; + } $local_value = $metalang[$language][$file][$key]; $ref_value = $metalang[ $page['ref_default_values'] ][$file][$key]; |