yii does not translate korean language - yii

In database, I set language code of Korean - 'ko', but when yii print errors, these errors is english default like this: 이메일 cannot be blank..
Semilar with Maori...
So, what exactly language code of these languages?
And where I can see list of language codes which supported by Yii?
Thanks...

Related

Wiktionary API: Get tags for a word, and specify language

For example, if the word is dog, I want to get the following, but only the English section, not other language sections like ==Afrikaans==, ==Danish== and so on. What API should I use? I saw the API page, but it was difficult to understand. The only thing I could find was parse (https://en.wiktionary.org/w/api.php?action=parse&page=dog), but that gives me the HTML, not the tags, it has a warning "Unrecognized parameter: url", and I don't know how to specify the language.
[[Image:YellowLabradorLooking.jpg|thumb|A dog (a [[Labrador retriever]])]]
===Alternative forms===
* {{l|en|darg}}, {{l|en|dawg}}, {{l|en|dug}} {{qualifier|dialectal}}
* {{l|en|doggie}}, {{l|en|doggy}} {{qualifier|childish}}
===Pronunciation===
* {{a|RP}} {{IPA|en|/dɒɡ/}}
...
This looks to do what you want:
https://en.wiktionary.org/w/api.php?action=parse&page=dog&section=1&prop=wikitext
You probably want to check that it starts with ==English==, but I think if you are using en.wiktionary, section 1 will always be English.

uwp localization with 1 resource file for all variants of a language

I know how localization in uwp works and I currently have en-US and es-es Resouce files.
What I want to ask is can I just use 1 resource file i.e en and will that affect all variants of English language? like en-us , en-as and all others? and then 1 file for Spanish i.e : es and so on.
all language variants have only few differences between them which are negligible almost in my app. I noticed my app has most of its users from Spain and US only. I assume that is because I am only supporting these 2 languages right now. So I want to support all variants of Spanish and all variants of English but only with 2 files, would that work or do I need to provide 1 file for each variant?
Try checking first if the current app language is any english variant (en-US, en-AS, ...) and if it's true then override it with the one you want.
If ( CurretLanguage == "en-US" || CurrentLanguage == "en-AS" || ...)
{
Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "en-US";
}
Yes, you can do it with single file by just using short language name. In your case, it should be Resources.en.resx for english and Resources.es.resx for spanish. You can refer here for language tags.

Bing Spell Check API works only in English

Trying Bing Spell Check API, but it doesn't seem to work correctly with languages other than English. Available languages for Spell Check
I've tried to check French text, but the results will actually suggest mistakes to a perfectly fine text and vice versa (meaning it also won't correct a mistake in a text).
I've tried checking this text:
La Terre a un noyau interne solide
This is how I've passed the language:
var result = client.SpellCheckerWithHttpMessagesAsync(text: text, mode: "spell", acceptLanguage: "fr-FR").Result;
I've also tried setLang:
var result = client.SpellCheckerWithHttpMessagesAsync(text: text, mode: "spell", setLang: "fr-FR").Result;
The result suggested changing solide to solid which is wrong.
I've tried other texts as well as different languages with the same results.
Am I missing something in how to use this API?
Pls use market parameter mkt=fr-fr in the query and drop the setLang parameter.

Prestashop blocklayered reloadContent() returns wrong language

I have a problem using prestashop with blocklayered module, my shop's default language is French (id_lang = 1).
Here are the steps to get to the error:
I switch to English (id_lang = 4) and go to the product list page, all the products are written in English, no problem here.
Then, each time I try to use blocklayered filters, all the results returned are written in French instead of English.
I added var_dumps in the header and on the product-list.tpl to see the value of $cookie->id_lang. They are both set to 4 (English language). After using blocklayered, I still have the id_lang to 4 in header BUT, the one that is in product-list is now set to 1 which is the french id_lang.
PS version: 1.6.1.0
Blocklayered version: 2.1.3
The reloadContent() function in /modules/blocklayered/blocklayered.php calls the following function:
ajaxCall() in /modules/blocklayered/blocklayered.php
This function is using $cookie->id_lang to fetch the current language ID, try debugging the value of this variable.
You can also try replacing it with $this->context->language->id, it might fix your issue.

TYPO3: Show language names for default language in speaking URL using RealURL

I set up a TYPO3 website using TYPO3 4.7. The website is bilingual (German/English) and the are 'speaking' using RealURL.
The default language is German.
So far it works nicely. I get URLs like:
http://www.mywebsite.something/neuigkeiten
http://www.mywebsite.something/kontakt
If the user changes the language to English, he gets URLs like:
http://www.mywebsite.something/en/news
http://www.mywebsite.something/en/contact
If the changes the language back to German, he gets URLs like:
http://www.mywebsite.something/de/neuigkeiten
http://www.mywebsite.something/de/kontakt
The problem is: This creates duplicates for search engines. So, I would like the default language also to use the language parameter for German 'de' as a default in the URLs before the user changes the language.
Does anyone had the same problem before?
Thank you, Chris
Try not to define dafault language in realurl config.
Smth like this should be enough:
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '1',
),
'noMatch' => 'bypass',
)