summaryrefslogtreecommitdiff
path: root/lib/LangFile.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2012-03-22 07:23:03 +0100
committerYorhel <git@yorhel.nl>2012-03-22 07:28:04 +0100
commit290b3f8b5f9dc0aed65621ed57e4b5a8bd050c2f (patch)
treee9c029a0dcffe676c089e027a3f0f122dbec8cf4 /lib/LangFile.pm
parente152c1c4c1f176d6d9b3b7e1fe27828f4940cde3 (diff)
L10N: Allow interface translation for lang tags with a dash (e.g. pt-br)
Diffstat (limited to 'lib/LangFile.pm')
-rw-r--r--lib/LangFile.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/LangFile.pm b/lib/LangFile.pm
index e81f7f7a..f70ffce2 100644
--- a/lib/LangFile.pm
+++ b/lib/LangFile.pm
@@ -55,7 +55,7 @@ sub read {
}
# tl
- if(!$state && $l =~ /^([a-z_-]{2})([ *]):(?: (.+)|)$/) {
+ if(!$state && $l =~ /^([a-z_-]{2,5})([ *]):(?: (.+)|)$/) {
$lang = $1;
$sync = $2 eq '*' ? 0 : 1;
push @lines, $3||'';