Skip to content

Commit

Permalink
Merge pull request #2091 from cslcomputer/deepl-translation-options
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Apr 25, 2024
2 parents e5b34b2 + b36534a commit f52ca8c
Showing 1 changed file with 32 additions and 31 deletions.
63 changes: 32 additions & 31 deletions lhc_web/lib/core/lhtranslate/lhtranslate.php
Original file line number Diff line number Diff line change
Expand Up @@ -739,37 +739,38 @@ public static function getSupportedLanguages($returnOptions = false)
$options['ja'] = 'Japanese';

} elseif ($translationData['translation_handler'] == 'deepl') {
$options['BG'] = 'Bulgarian';
$options['CS'] = 'Czech';
$options['DA'] = 'Danish';
$options['DE'] = 'German';
$options['EL'] = 'Greek';
$options['EN-GB'] = 'English (British)';
$options['EN-US'] = 'English (American)';
$options['ES'] = 'Spanish';
$options['ET'] = 'Estonian';
$options['FI'] = 'Finnish';
$options['FR'] = 'French';
$options['HU'] = 'Hungarian';
$options['ID'] = 'Indonesian';
$options['IT'] = 'Italian';
$options['JA'] = 'Japanese';
$options['KO'] = 'Korean';
$options['LT'] = 'Lithuanian';
$options['LV'] = 'Latvian';
$options['NB'] = 'Norwegian (Bokmål)';
$options['NL'] = 'Dutch';
$options['PL'] = 'Polish';
$options['PT-BR'] = 'Portuguese (Brazilian)';
$options['PT-PT'] = 'Portuguese (all other)';
$options['RO'] = 'Romanian';
$options['RU'] = 'Russian';
$options['SK'] = 'Slovak';
$options['SL'] = 'Slovenian';
$options['SV'] = 'Swedish';
$options['TR'] = 'Turkish';
$options['UK'] = 'Ukrainian';
$options['ZH'] = 'Chinese (simplified)'; }
$options['bg'] = 'Bulgarian';
$options['cs'] = 'Czech';
$options['da'] = 'Danish';
$options['de'] = 'German';
$options['el'] = 'Greek';
$options['en'] = 'English (British)';
$options['en-us'] = 'English (American)';
$options['es'] = 'Spanish';
$options['et'] = 'Estonian';
$options['fi'] = 'Finnish';
$options['fr'] = 'French';
$options['hu'] = 'Hungarian';
$options['id'] = 'Indonesian';
$options['it'] = 'Italian';
$options['ja'] = 'Japanese';
$options['ko'] = 'Korean';
$options['lt'] = 'Lithuanian';
$options['lv'] = 'Latvian';
$options['nb'] = 'Norwegian (Bokmål)';
$options['nl'] = 'Dutch';
$options['pl'] = 'Polish';
$options['pt-br'] = 'Portuguese (Brazilian)';
$options['pt'] = 'Portuguese (all other)';
$options['ro'] = 'Romanian';
$options['ru'] = 'Russian';
$options['sk'] = 'Slovak';
$options['sl'] = 'Slovenian';
$options['sv'] = 'Swedish';
$options['tr'] = 'Turkish';
$options['uk'] = 'Ukrainian';
$options['zh'] = 'Chinese (simplified)';
}
}

if ($returnOptions == true) {
Expand Down

0 comments on commit f52ca8c

Please sign in to comment.