Idiomas

16May

[insert_php]
$domain = ‘awebooking’;
$text = ‘Enable or disable field of form check available.’;

global $locale;

echo ‘Locale: ‘.$locale.’
‘;

echo ‘Locale2: ‘.get_user_locale().’ # ‘.get_locale().’
‘;

echo ‘Idioma: ‘.ICL_LANGUAGE_NAME.’
‘;

echo esc_html__( $text, $domain ).’
‘;

global $l10n;
if ( isset( $l10n[ $domain ] ) || ( _load_textdomain_just_in_time( $domain ) && isset( $l10n[ $domain ] ) ) ) {
foreach($l10n[ $domain ] as $item){
print_r($item);
echo ‘
‘;
}
}

[/insert_php]