I'm trying testing a calendar from a client with a language ar-sa (Saudi Arabic), but i'm not able to set that language in chrome. I'm able to set language only arabic (ar) but not ar-sa.
Is there a option to add this language ar-sa in chrome.
Thanks
It is not possible to pick the specific locale in the Chrome Settings interface.
However, the Language options provided by the interface control the Accept-Language header sent with all HTTP requests. Each language option is mapped to a locale code. In the case of Arabic, you will just get ar, as the country is not an option here.
You can modify this header with the Quick Language Switcher extension. You can just add a new locale code to the options list in the extension, and disable the others. This works by simply modifying the header of all requests using the chrome.webRequest.onBeforeSendHeaders event.
Related
I have this map with an iframe on my site:
http://ecotourism.afrika-praktikum.de/zanzibarwebsite/in-kenya/elewana-elephant-pepper-camp-with-game-package/
The controls on the map appear on Spanish (for example: "ampliar mapa")
How can I change the language?
Please no API, I just want to use the iframe.
There is a list of languages in preferable order in the end of an iFrame url:
for example, "!1sru!2sen" would mean use russian language, or english language.
U can use the language parameter. Add this to your URL in frame:
&language=es
And u can check here all the language codes.
Or check this for alternative to language parameter.
The language parameter is also hashed in the iframe URL. Before you get the HTML code for sharing, access Google maps with the language parameter you need (stated below) and share afterwards. The hl parameter is for the language.
https://www.google.com/maps?hl=en
I want my website to be opened in a visitor's native language as determined by the IP address where the user has logged in from.
By default the page opens in English, but I want my customers from France to read the site in French. I have gone through www.ipinfo.io for information, but I am still a bit confused and would like to know the json format.
You should use the accept-language header that the user's browser passes to your site to determine the language, rather than the user's current country.
If you do want to customize the site content based on the country the http://ipinfo.io code you'd use would look something like this:
$.get("http://ipinfo.io", function(response) {
if(response.country == 'US') {
// User is in the USA
} else {
// User is elsewhere
}
}, "jsonp");
You can find a full mapping of country codes to things like names, currency codes, dialing codes and more at http://country.io/data/
I would advise against using the IP alone to determine the display language.
Using the Accept-Language header is far more reliable.
Consider the following relatively common scenario:
An only-English-speaking person travels to Russia and opens your website. Then the Russian landing page is displayed in Cyrillic.
This doesn't answer your last question, but it is a better solution to your problem.
Rather than using an IP address to determine locale, use localization based on the browser's "Accept-Language" header. This header is typically set by default when installing a browser based on your operating system's localization settings.
Most modern UI frameworks (be it web, mobile, or desktop) have localization/internationalization libraries.
I have UTF-8 page in which I have mailto links with template of body. But these template with data includes East Europian (Czech) characters. These characters messes up some email clients like Outlook 2007 and they are displayed like question marks or some other strange characters.
I know about "Enable UTF-8 support for mailto: protocol." setting in Outlook 2007, but from what I know about it's off by default.
Which charset-encoding should I use in mailto body for maximum compatibilty?
it clearly depends on client settings. in the company i work for we had a similar question. we ended up using ae for ä and so on.
we faced the problem that some clients running ms outlook 2003 were reading it as utf-8 while other clients running outlook 2003 were reading it as a defined ansi table.
another issue is involved in the usage of other mail clients. we also have a bring your own device program where employees could install linux or have mac books. they are using mozilla thunderbird, mutt and so on. other clients have set gmail as their prefered mailto: handler etc. so a global change of the outlook settings through a registry edit as in Rfilip's answer would not apply to us.
anyways.. you can only define the text body of the mail. sadly its impossible to define a html body through a mailto: link. if this would work, encoding could be defined through the body.
there also is no such a flag to set up the prefered encoding inside the mailto: link.
answer to this question: its impossible to detect or set the mail clients encoding so you should switch to characters that would work in every ansi table.
as alternative you could provide two links. one encoded with utf-8 with a note that, if it will display weird, the user might use the second mailto link.
or.. you provide one mailto link aswell as a drop down box to select encoding. (including a brief description of what encoding is as hover ontop of the dropdown)
It depends on the characters you want to use and your clients setups...
it may be Windows1250 ( http://en.wikipedia.org/wiki/Windows-1250 )
So, on G+ I was pointed to answer on other thread -https://stackoverflow.com/a/1831416/1190066. It seems like that different charsets fails on some combinations of browser/OS/email client. That nothing works on everything.
So I'll use the fact that it's intarnet app and it's Win 7, Chrome, Outlook 2007 setup and I'll convince admin to enable "Enable UTF-8 support for mailto: protocol." by registry key change on client company computers. - https://social.technet.microsoft.com/Forums/en-US/183b2442-6750-4e18-b61d-d87ce5f3aac3/outlook-2007-utf8-mailto-protocol-how-to-set-this-parameter-in-thousand-machines-?forum=officesetupdeploylegacy
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Protocols\Mailto
UTF8Encoding
The value “1” turn on the “Enable UTF-8 support for mailto: protocol”
The value “0” turn off
But this workround is viable only when you can modify settings of all client's computer.
So I was looking for posibilities that don't include that change. But I see that they arent.
How do I force the Microsoft Translator widget to use a specific destination language without depending on the language sent by the browser?
http://www.microsofttranslator.com/widget/
I also had the same problem so thought I'd post how I fixed it.
I found that you can simply insert the language letter code into the widget's ajax URL. For example, search the widget code for this:
"/ajax/v2/widget.aspx?mode=auto&from=en&layout=ts"
Then you can just insert "&to=de" for example, if you want to translate to German. E.g.:
"/ajax/v2/widget.aspx?mode=auto&from=en&to=de&layout=ts"
As easy as that!
I am working on a flex project. I want to implement a title window in which I have a dropdown with multi language options, selected one option e.g no_NO for Norwegian language. Now user should able to write in Norwegian language in a text area in that window.
Please guide.
Flex provides a mechanism using resource bundles and the ResourceManager. There should be some examples in the official documentation to support runtime localization. I implemented a smal example a while back which shows how to avoid using resources in the markup: localization example # github