FIX Add support for Czech language by mapping 'cz' to 'cs'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e3633a8fa6
commit
d6966b5a7a
|
|
@ -132,6 +132,9 @@ function get_game_datas($request)
|
|||
if ($currentLanguage === "pt") {
|
||||
$currentLanguage = "pt-pt";
|
||||
}
|
||||
if ($currentLanguage === "cz") {
|
||||
$currentLanguage = "cs";
|
||||
}
|
||||
|
||||
// SWITCH TO CURRENT REQUEST LANGUAGE
|
||||
do_action('wpml_switch_language', $currentLanguage);
|
||||
|
|
@ -179,6 +182,9 @@ function get_all_games_datas($request)
|
|||
if ($currentLanguage === "pt") {
|
||||
$currentLanguage = "pt-pt";
|
||||
}
|
||||
if ($currentLanguage === "cz") {
|
||||
$currentLanguage = "cs";
|
||||
}
|
||||
// SWITCH TO CURRENT REQUEST LANGUAGE
|
||||
do_action('wpml_switch_language', $currentLanguage);
|
||||
add_filter('acf/settings/current_language', 'acf_set_language');
|
||||
|
|
@ -243,6 +249,9 @@ function get_interface_page_screen($request)
|
|||
if ($currentLanguage === "pt") {
|
||||
$currentLanguage = "pt-pt";
|
||||
}
|
||||
if ($currentLanguage === "cz") {
|
||||
$currentLanguage = "cs";
|
||||
}
|
||||
// SWITCH TO CURRENT REQUEST LANGUAGE
|
||||
do_action('wpml_switch_language', $currentLanguage);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user