From 42d540a56e4459a9157e7fb8f95160182d5e2e6f Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Sun, 14 Jul 2013 18:34:25 +0000 Subject: license page refactored, updated, included in i18n report and linked in map. map.en.lang sync. small addition on community page --- en/about/license/license.php | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 en/about/license/license.php (limited to 'en/about/license/license.php') diff --git a/en/about/license/license.php b/en/about/license/license.php new file mode 100644 index 000000000..720a0ebdc --- /dev/null +++ b/en/about/license/license.php @@ -0,0 +1,57 @@ +', ' '); + foreach($license_strings as $value) { + str_replace(array(".", "_"), array(".", "_"), $value[0], $count); + $num_of_sentences_for_translation += $count; + if(!empty($po_file[$value[0]]["msgstr"][0]) && $po_file[$value[0]]["msgstr"][0] != $value[0]) { + $license_string = $po_file[$value[0]]["msgstr"][0]; + } else { + $num_of_untranslated_sentences += $count; + $license_string = $value[0]; + } + $license_string = str_replace('%s', (isset($value[2]) ? $value[2] : ''), $license_string); + $prepared_license_strings[] = array(str_replace($search, $replace, $license_string), (isset($value[1]) ? $value[1] : 'p'), 'untran' => $num_of_untranslated_sentences, 'all' => $num_of_sentences_for_translation); + } + + return $prepared_license_strings; +} -- cgit v1.2.1