aboutsummaryrefslogtreecommitdiffstats
path: root/langs/missing.php
diff options
context:
space:
mode:
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 = '';