Language codes
-
I think best solution use Language codes from this url
https://developers.google.com/recaptcha/docs/language
Becouse if You try this:
$lang = get_bloginfo( 'language' );
You must after not good code:if ( $lang == 'en-US' ) { $lang = 'en'; }
And for Russian You need:
if ( $lang == 'ru-RU' ) { $lang = 'ru'; }
So easy if You use DB for Language codes from original source:
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Language codes’ is closed to new replies.