Change Google Map iframe language - google-maps

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

Related

Saudi Arabia (ar-SA) language add to google chrome

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.

Embedding Google Maps with variable location in XHTML

I have a form getting parameters (method=GET, so the parameters are in the query string), and I have an Object with an embedded Google map. I want to make the embedded map dynamic, so that it will reflect the parameters (especially ll parameter for position). There are related questions with answers on how to do it with php and javascript, but is there any way to do it without scripting?
Is it possible in XHTML 1.0 Strict?
Plus, what should be the "target" syntax in the form? Neither "" nor the URL of current page does work, and different page just sends me away, which is not what I want.
When the form and the object(iframe with the map?) are located on the same page you may send the form directly to the iframe, in that case it would be possible to have a dynamic map without any scripting.
But however, when you use POST the parameters are not within the QUERY_STRING.

Microsoft Translator Widget - Force Destination Language

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!

Select country and language in HTML

I'm currently building my site, I want to know how to do this...
Basically, when your press that country, it ask for the language available to you, and then it will redirect to that language page.
How could I do that? like airlines website, you choose a country, then language and then it directs to that language page?
This will usually require some server-side processing like PHP. When the user selects a language from the form, the language choice is stored in the session and recalled on each page load.
Then you would typically have internationalization strings in your web application. The chosen language is used to select the correct i18n strings from the index.
Using plain html only, with no server-side processing, the language selection form would simply (possibly via javascript) redirect to a document root for the language. This requires you to have a full site coded in each language.
http://www.example.com
http://www.example.com/en/
http://www.example.com/de/
You could do this in many different ways.
Here's a simple way to do it:
Have a bunch of links, each a different country. When you click on one, such as:
<a href="#" onclick="getLanguages('france')" >France</a>
This will call the JavaScript Function 'getLanguages()' shown here:
<script>
function getLanguages(country){
if(country == "france"){
document.getElementById("languages").innerHTML = "<a href='/french.html'>French</a><a href='/english.html'>English</a><a href='/german.html'>German</a>";
}else if(country == "china"){
document.getElementById("languages").innerHTML = "<a href='/chinese.html'>Chinese</a><a href='/english.html'>English</a><a href='/japanese.html'>Japanese</a>";
}
}
</script>
Obviously you'd have many more if statements for each country represented. This will basically modify an element with the ID of "languages":
<div id="languages"></div>
to include the possible languages for that country. Then when a user clicks on one of those links, it will take them to the correct page!
Hope this helps and good luck!

Localizing a Google Chrome Web App

I'm trying to add localization support to a Google Chrome Web App and, while it is easy to define strings for manifest and CSS files, it is somewhat more difficult for HTML pages.
In the manifest and in CSS files I can simply define localization strings like so:
__MSG_name__
but this doesn't work with HTML pages.
I can make a JavaScript function to fire onload that does the job like so:
document.title = chrome.i18n.getMessage("name");
document.querySelector("span.name").innerHTML = chrome.i18n.getMessage("name");
but this seems awfully ineffecient. Furthermore, I would like to be able to specify the page metadata; application-name and description, pulling the values from the localization files. What would be the best way of doing all this?
Thanks for your help.
Please refer to this documentation:
http://code.google.com/chrome/extensions/i18n.html
If you want to add localized content within HTML, you would need to do it via JavaScript as you mentioned before. That is the only way you can do it.
chrome.i18n.getMessage("name")
It isn't inefficient to do that, you can place your JavaScript at the end of the document (right before the end body tag) and it will fill up the text with respect to the locale.
Dunno if i understand exactly what you are trying to do but you could dynamically retrieve the LANG attribute (using .getAttribute("lang") or .lang) of the targeted tag and serve accordingly the proper values.