From b6244b62c923a8a84f143f56d940ceb0250b52a0 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 24 Mar 2010 15:49:48 +0000 Subject: improvement: ability to analyse a single language. git-svn-id: http://piwigo.org/svn/trunk@5312 68402e56-0260-453c-a942-63ccdbb3a9ee --- tools/translation_analysis.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tools/translation_analysis.php') 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 'All languages

'; + echo ''; + exit(); +} +else if (in_array($_GET['lang'], $languages)) +{ + $languages = array($_GET['lang']); +} + $file_list = array('common', 'admin', 'install', 'upgrade'); $metalang = array(); -- cgit v1.2.3