From a0b2d09125d7911656fe4cb286f20643c4432281 Mon Sep 17 00:00:00 2001 From: Marek Laane Date: Sun, 12 Oct 2014 10:54:11 +0300 Subject: Updated Estonian translation --- en/about/license/license.php | 140 ------------------------------------------- 1 file changed, 140 deletions(-) delete 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 deleted file mode 100644 index aa7c057bd..000000000 --- a/en/about/license/license.php +++ /dev/null @@ -1,140 +0,0 @@ -', ' '); - 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]) && trim($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; - $untranslated_sentences[] = $value[0]; - $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, 'untranslated_sentences' => $untranslated_sentences); - } - - return $prepared_license_strings; -} - -function load_license_numbers($lang, $skip_rebuilding_cache = false) -{ - $pot_filename = 'libDrakX.pot'; - $po_files_path = "http://gitweb.mageia.org/software/drakx/plain/perl-install/share/po/"; - $cache_file = __DIR__ . '/../../../_nav/var/tmp/cache/license_numbers_' . $lang . '.php'; - $rebuild_cache = false; - date_default_timezone_set(@date_default_timezone_get()); - if($lang == 'en') { - $filename = $pot_filename; - $start_text = '"POT-Creation-Date:'; - } else { - $filename = locale_hyphen_underscore($lang, true) . '.po'; // create pt_BR.po from pt-br and alike - $start_text = '"PO-Revision-Date:'; - } - if(!$skip_rebuilding_cache) { - $po_file = $po_files_path . $filename; - $filehandle = @fopen($po_file, 'r'); // read $po_file - if($filehandle !== false) { // could open $po_fil - fclose($filehandle); - $po_time = get_po_time($po_file, $start_text); - } else { - $po_time = get_po_time($po_files_path . $pot_filename, $start_text); - if(!$po_time) { $po_time = 0; } // fallback - } - if(file_exists($cache_file)) { - include $cache_file; - if($cached_time < $po_time) { - $rebuild_cache = true; - } - } else { - $rebuild_cache = true; - } - if($rebuild_cache) { - $license_array = read_license_from_vcs($lang); - $license_numbers = array_pop($license_array); - $license_num_all = $license_numbers["all"]; - $license_num_unt = $license_numbers["untran"]; - $cache_content = <<