From 2c4ce681efb851dad7ccc464f16f2a17f0e53bb7 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 8 Apr 2014 10:47:28 +0200 Subject: [PATCH] add function for listing missing languages at end of page also check if turned on --- views/bootstrap/class.Bootstrap.php | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 770d80f27..50a28b709 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -91,6 +91,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);; function htmlEndPage() { /* {{{ */ $this->footNote(); + if($this->params['showmissingtranslations']) { + $this->missingḺanguageKeys(); + } echo ''."\n"; echo ''."\n"; foreach(array('de', 'es', 'ca', 'nl', 'fi', 'cs', 'it', 'fr', 'sv', 'sl', 'pt-BR', 'zh-CN', 'zh-TW') as $lang) @@ -100,6 +103,33 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo "\n\n"; } /* }}} */ + function missingḺanguageKeys() { /* {{{ */ + global $MISSING_LANG, $LANG; + if($MISSING_LANG) { + echo '
'."\n"; + echo "

This page contains missing translations in the selected language. Please help to improve SeedDMS and provide the translation.

"; + echo "
"; + echo ""; + echo "\n"; + foreach($MISSING_LANG as $key=>$lang) { + echo ""; + } + echo "
Keyengl. TextYour translation
".$key."".$LANG['en_GB'][$key]."
"; +?> + +'."\n"; echo '
'."\n";