aboutsummaryrefslogtreecommitdiffstats
path: root/langs/missing.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-03-08 21:21:32 +0000
committerFilip Komar <filip@mageia.org>2014-03-08 21:21:32 +0000
commitb0e15407a664677201a3b9b8251786652b5e147f (patch)
tree0b27bd5d843ba2f3e00831e4b90efdc73bf271b9 /langs/missing.php
parent42fa789ce0ea2df5240c17e0ea35e2a1f1a6742c (diff)
downloadwww-b0e15407a664677201a3b9b8251786652b5e147f.tar
www-b0e15407a664677201a3b9b8251786652b5e147f.tar.gz
www-b0e15407a664677201a3b9b8251786652b5e147f.tar.bz2
www-b0e15407a664677201a3b9b8251786652b5e147f.tar.xz
www-b0e15407a664677201a3b9b8251786652b5e147f.zip
further preparation of l10n report family w/o 3 exceptions (nav, license, constitution) to gettext system
Diffstat (limited to 'langs/missing.php')
-rw-r--r--langs/missing.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/langs/missing.php b/langs/missing.php
index 3cca031a9..870835337 100644
--- a/langs/missing.php
+++ b/langs/missing.php
@@ -12,13 +12,23 @@ if (is_null($s)) {
die;
}
-if($s =='en/about/constitution.en.lang') {
+if (strrpos($s, '.pot')) {
+ $gettext = true;
+ $resource = _extract_resource($s);
+ $file = _po_file_switch($s, $l);
+} else {
+ $gettext = false;
+ $resource = _extract_resource($s, '.en.lang');
+ $file = _lang_file_switch($s, $l);
+}
+
+if($resource =='constitution') {
$constitution = true;
} else {
$constitution = false;
}
-if($s =='en/about/license.en.lang') {
+if($resource =='license') {
$license = true;
} else {
$license = false;
@@ -28,12 +38,12 @@ if ($s == '../_nav/langs/en.lang') {
$file = substr(_lang_file_switch($s, $l), 14);
$note = '<span style="color: red; font-weight: bold"> NOTE: THIS IS TRANSLATION OF NAVIGATION SO LOCATION FOR COMMIT IS DIFFERENT!</span>';
$commit = '<a href="//svnweb.mageia.org/web/www/trunk/_nav/langs/">web/www/trunk/_nav/langs/</a>' . $file . ' and for now to the <a href="//svnweb.mageia.org/web/nav/langs/">web/nav/langs/</a>' . $file . ' too';
- $iframe = '//www.mageia.org/_nav/langs/en.lang';
+ $iframe = '//' . $_SERVER['SERVER_NAME'] .'/_nav/langs/en.lang';
} else {
- $file = _lang_file_switch($s, $l);
+// $file = _lang_file_switch($s, $l);
$note = '';
$commit = '<a href="//svnweb.mageia.org/web/www/trunk/langs/">web/www/trunk/langs</a>/' . $file;
- $iframe = '//www.mageia.org/langs/'.$s;
+ $iframe = '//' . $_SERVER['SERVER_NAME'] .'/langs/'.$s;
}
$constitution_or_license = '';