diff options
author | plegall <plg@piwigo.org> | 2010-03-24 15:49:48 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-24 15:49:48 +0000 |
commit | b6244b62c923a8a84f143f56d940ceb0250b52a0 (patch) | |
tree | 7cd98745144f5460c9da53ed09b7c8f564a46ec5 /tools/translation_analysis.php | |
parent | 87282425b54fabde1326041d5d85cdaeafd2f42f (diff) |
improvement: ability to analyse a single language.
git-svn-id: http://piwigo.org/svn/trunk@5312 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools/translation_analysis.php')
-rw-r--r-- | tools/translation_analysis.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/translation_analysis.php b/tools/translation_analysis.php index eab896cc8..dd07db59c 100644 --- a/tools/translation_analysis.php +++ b/tools/translation_analysis.php @@ -29,6 +29,26 @@ $languages = array_keys(get_languages()); $page['ref_compare'] = 'en_UK'; $page['ref_default_values'] = 'en_UK'; +if (!isset($_GET['lang'])) +{ + echo '<a href="?lang=all">All languages</a><br><br>'; + echo '<ul>'; + foreach ($languages as $language) + { + if ($page['ref_compare'] == $language) + { + continue; + } + echo '<li><a href="?lang='.$language.'">'.$language.'</a></li>'; + } + echo '</ul>'; + exit(); +} +else if (in_array($_GET['lang'], $languages)) +{ + $languages = array($_GET['lang']); +} + $file_list = array('common', 'admin', 'install', 'upgrade'); $metalang = array(); |