aboutsummaryrefslogtreecommitdiffstats
path: root/en/about
diff options
context:
space:
mode:
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";