aboutsummaryrefslogtreecommitdiffstats
path: root/en/about
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-02-01 15:24:23 +0000
committerFilip Komar <filip@mageia.org>2014-02-01 15:24:23 +0000
commitbad35065a7db4589b08ed2f3b3fa109e552fb0d7 (patch)
tree63edf84308401f0e0e812dd2d574bf0e7f73d3e3 /en/about
parent3ad03d2182d5cc4e5a3d4ea63a98ea138771d886 (diff)
downloadwww-bad35065a7db4589b08ed2f3b3fa109e552fb0d7.tar
www-bad35065a7db4589b08ed2f3b3fa109e552fb0d7.tar.gz
www-bad35065a7db4589b08ed2f3b3fa109e552fb0d7.tar.bz2
www-bad35065a7db4589b08ed2f3b3fa109e552fb0d7.tar.xz
www-bad35065a7db4589b08ed2f3b3fa109e552fb0d7.zip
create function locale_hyphen_underscore and make use of it
Diffstat (limited to 'en/about')
-rw-r--r--en/about/license/license.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/en/about/license/license.php b/en/about/license/license.php
index 61431c067..a28c8adc2 100644
--- a/en/about/license/license.php
+++ b/en/about/license/license.php
@@ -22,12 +22,7 @@ function read_license_from_vcs($locale) {
if($locale == 'en') {
$po_locale = 'libDrakX.pot';
} else {
- preg_match("/(..)(-)(..)/", $locale, $parsed_locale);
- if(isset($parsed_locale[3])) { // create pt_BR.po from pt-br and alike
- $po_locale = $parsed_locale[1] . '_' . strtoupper($parsed_locale[3]) . '.po';
- } else {
- $po_locale = $locale . '.po';
- }
+ $po_locale = locale_hyphen_underscore($locale, true) . '.po'; // create pt_BR.po from pt-br and alike
}
// $po_files_path = "http://svnweb.mageia.org/soft/drakx/trunk/perl-install/share/po/";
// $po_files_end = "?view=co";