Skip to content

Commit

Permalink
Fixed issue #9433: Auto translate not working for informal languages
Browse files Browse the repository at this point in the history
Dev: informal and some other lang codes not known to
Dev: google translate. Converted to standard lang code.
  • Loading branch information
mfaber committed Dec 29, 2014
1 parent deb9f25 commit ee94476
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/controllers/admin/translate.php
Expand Up @@ -1034,6 +1034,7 @@ private function translate_google_api()

$aSearch = array('zh-Hans','zh-Hant-HK','zh-Hant-TW','nl-informal','de-informal','it-formal','pt-BR','es-MX','nb','nn');
$aReplace = array('zh-CN','zh-TW','zh-TW','nl','de','it','pt','es','no','no');
$sBaselang = str_replace($aSearch, $aReplace, $sBaselang);
$sTolang = str_replace($aSearch, $aReplace, $sTolang);

$error = false;
Expand Down

0 comments on commit ee94476

Please sign in to comment.