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 | |
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 | ||||
-rw-r--r-- | tools/translation_validated.inc.php | 58 |
2 files changed, 64 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]; diff --git a/tools/translation_validated.inc.php b/tools/translation_validated.inc.php new file mode 100644 index 000000000..70ab58186 --- /dev/null +++ b/tools/translation_validated.inc.php @@ -0,0 +1,58 @@ +<?php +$validated_keys = array( + 'fr_FR' => array( + 'Dimensions', + 'Identification', + 'Notification', + 'Tag', + 'Tags', + 'admin', + 'identification', + 'redirect_msg', + 'search_date_from', + 'title_menu', + 'IP: %s', + 'Email: %s', + '%d element', + '%d elements', + '%d association', + '%d associations', + '%d tag', + '%d tags', + 'Actions', + 'Description', + 'Informations', + 'Maintenance', + 'Options', + 'Plugins', + 'Position', + 'Validation', + 'Version', + 'config', + 'Date', + 'instructions', + 'is_high_disabled', + 'nbm_content_goto_2', + 'nbm_content_hello_2', + 'nbm_item_notification', + 'nbm_send_options', + 'permissions', + 'public', + 'site_local', + 'update_simulation_title', + 'IP', + 'image', + 'section', + 'tags', + 'high', + 'c13y_Correction', + 'Level 1', + 'Level 8', + 'FORUM', + 'EXTENSIONS', + 'WIKI / DOC', + 'Installation', + 'step1_host_info', + ), + ); +?>
\ No newline at end of file |