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
This commit is contained in:
parent
c85dbe813b
commit
2ed479744e
2 changed files with 64 additions and 1 deletions
|
@ -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];
|
||||
|
|
58
tools/translation_validated.inc.php
Normal file
58
tools/translation_validated.inc.php
Normal file
|
@ -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',
|
||||
),
|
||||
);
|
||||
?>
|
Loading…
Add table
Reference in a new issue