aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-04-02 08:01:13 +0000
committerplegall <plg@piwigo.org>2010-04-02 08:01:13 +0000
commit19f47434a7a93c62ef83bd5152f44de4b60b6a32 (patch)
treee086fe661278345f1f273b3b3ffb0effc271b3eb /tools
parent1850b89a2b6c338767a6c0c013a86bd9306aef6c (diff)
Last steps to make the conversion remove the obsolete language keys.
git-svn-id: http://piwigo.org/svn/trunk@5563 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools')
-rw-r--r--tools/convert_language_to_2.1.pl9
-rw-r--r--tools/translation_analysis.php3
2 files changed, 10 insertions, 2 deletions
diff --git a/tools/convert_language_to_2.1.pl b/tools/convert_language_to_2.1.pl
index 353e801e4..b78547a33 100644
--- a/tools/convert_language_to_2.1.pl
+++ b/tools/convert_language_to_2.1.pl
@@ -43,11 +43,13 @@ my %ignore_keys = (
my %remove_keys = (
common => {
- 'You can\'t upload pictures in this category' => '',
+ "You can\\'t upload pictures in this category" => '',
'display pictures added on' => '',
'Email address is missing' => '',
'Delete: %s' => '',
'All tags must match' => '',
+ 'Validate: %s' => '',
+ 'Upgrade from %s to %s' => '',
},
admin => {
'nbm_content_goto_2' => '',
@@ -77,6 +79,9 @@ my %remove_keys = (
'Categories sorted in descending order &uArr;' => '',
'Bugs' => '',
'Automatic installation' => '',
+ 'Upgrade from version %s to %s' => '',
+ 'Upgrade from %s to %s' => '',
+ 'Upload Form' => '',
},
upgrade => {
'Are you sure?' => '',
@@ -85,6 +90,8 @@ my %remove_keys = (
install => {
'Parameters are correct' => '',
'Installation finished' => '',
+ 'The next step of the installation is now possible' => '',
+ 'next step' => '',
}
);
diff --git a/tools/translation_analysis.php b/tools/translation_analysis.php
index 18e943020..da7a82463 100644
--- a/tools/translation_analysis.php
+++ b/tools/translation_analysis.php
@@ -113,6 +113,8 @@ foreach ($languages as $language)
}
}
+ echo '<h3>'.$file.'.lang.php</h3>';
+
if ('' != $output_missing or '' != $output_duplicated)
{
$output = '';
@@ -124,7 +126,6 @@ foreach ($languages as $language)
{
$output.= "\n// untranslated yet\n".$output_duplicated;
}
- echo '<h3>'.$file.'.lang.php</h3>';
echo '<textarea style="width:100%;height:250px;">'.$output.'</textarea>';
}