GettextTranslationHelper::updateHeader() - rename vars for matchResults

This commit is contained in:
Alexander Fuhr 2014-09-11 13:39:32 +02:00
parent 8ba86a3689
commit 6cf8307e0d
1 changed files with 5 additions and 4 deletions

View File

@ -294,11 +294,12 @@ class GettextTranslationHelper
$headerInfo['translator_name'] = $translatorInfo[1];
$headerInfo['translator_mail'] = $translatorInfo[2];
}
$languageInfo = array();
if (preg_match('@Language-Team: (.+) <(.+)>@', $content, $languageInfo)) {
$headerInfo['language_team_name'] = $languageInfo[1];
$headerInfo['language_team_url'] = $languageInfo[2];
$languageTeamInfo = array();
if (preg_match('@Language-Team: (.+) <(.+)>@', $content, $languageTeamInfo)) {
$headerInfo['language_team_name'] = $languageTeamInfo[1];
$headerInfo['language_team_url'] = $languageTeamInfo[2];
}
$languageInfo = array();
if (preg_match('@Language: ([a-z]{2}_[A-Z]{2})@', $content, $languageInfo)) {
$headerInfo['language'] = $languageInfo[1];
}