BUG 10162 Can not use poedit-1.5.4 to translate SOLVED

- Only "X-Poedit-Language" header was accepted
- Now accepts the header "X-Poedit-Language" and "Language"
This commit is contained in:
Julio Cesar Laura
2012-12-07 17:01:37 -04:00
parent 5152adaca7
commit cf24c78f5d
2 changed files with 12 additions and 3 deletions

View File

@@ -233,7 +233,7 @@ class Language extends BaseLanguage
if (count( $match ) < 4) {
$near = isset( $rowTranslation['msgid'] ) ? $rowTranslation['msgid'] : (isset( $rowTranslation['msgstr'] ) ? $rowTranslation['msgstr'] : '');
$errorMsg .= "Invalid Translation reference: \"$reference\", near -> " . $near . "\n";
$errorMsg .= "Invalid Translation reference: \"$reference\", near -> " . strip_tags($near) . "\n";
continue;
}