diff --git a/languages/app_config.php b/languages/app_config.php index 11339b17..5bcd1383 100644 --- a/languages/app_config.php +++ b/languages/app_config.php @@ -5,7 +5,7 @@ $apps[$x]['uuid'] = "23ecb350-b423-428d-9a8d-d617d27b30fe"; $apps[$x]['category'] = "System"; $apps[$x]['subcategory'] = ""; - $apps[$x]['version'] = "3"; + $apps[$x]['version'] = "3.1"; $apps[$x]['license'] = "Mozilla Public License 1.1"; $apps[$x]['url'] = "http://www.fusionpbx.com"; $apps[$x]['description']['en-us'] = "A tool to analyze languages used in the GUI following https://msdn.microsoft.com/en-gb/library/ee825488%28v=cs.20%29.aspx"; diff --git a/languages/app_languages.php b/languages/app_languages.php index 55dd7686..e42c32d7 100644 --- a/languages/app_languages.php +++ b/languages/app_languages.php @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/languages/index.php b/languages/index.php index d14f8c32..1d8f550f 100644 --- a/languages/index.php +++ b/languages/index.php @@ -55,6 +55,23 @@ require_once "resources/header.php"; require_once "resources/paging.php"; +function lineargradient($ra,$ga,$ba,$rz,$gz,$bz,$iterationnr) { + $colorindex = array(); + for($iterationc=1; $iterationc<=$iterationnr; $iterationc++) { + $iterationdiff = $iterationnr-$iterationc; + $colorindex[] = sprintf('#%02x%02x%02x', + (($ra*$iterationc)+($rz*$iterationdiff))/$iterationnr, + (($ga*$iterationc)+($gz*$iterationdiff))/$iterationnr, + (($ba*$iterationc)+($bz*$iterationdiff))/$iterationnr); + } + return $colorindex; +} + +$colorindex = lineargradient( + 0, 200, 0, // rgb of the start color + 200, 0, 0, // rgb of the end color + 101 // number of colors in your linear gradient +); //show the content echo "
".$text['label-translations']." | \n"; echo "".$text['label-menu_items']." | \n"; echo "".$text['label-app_descriptions']." | \n"; + echo "".$text['label-overall']." | \n"; echo "".$text['label-name']." | \n"; echo "||||
---|---|---|---|---|---|---|---|---|
"; @@ -97,9 +123,10 @@ echo "$nbsp;*1"; } echo " | "; - echo "".sprintf("%.1f%%", $language_totals['languages'][$lang_code] / $language_totals['languages']['total'] * 100 )." | "; - echo "".sprintf("%.1f%%", $language_totals['menu_items'][$lang_code] / $language_totals['menu_items']['total'] * 100 )." | "; - echo "".sprintf("%.1f%%", $language_totals['app_descriptions'][$lang_code] / $language_totals['app_descriptions']['total'] * 100 )." | "; + echo "".$complete['languages']."% | "; + echo "".$complete['menu_items']."% | "; + echo "".$complete['app_descriptions']."% | "; + echo "".$complete['overall']."% | "; echo "".$text["language-$lang_code"]." | "; echo "