Does foursquare venue/explore API support locale parameter? - foursquare

For Example:
https://api.foursquare.com/v2/venues/explore?v=20130815&client_id=CLIENT_ID&client_secret=CLIENT_SECRET&open&ll=13.7429128535%2C+100.6018416093&section=topPicks&locale=en&sortByDistance=0
I set locale parameter to en but i still get Thai name in my POI.
Do we have any way to get only english POI ?

Related

How to specify the language used in OAuth flow in https://login.microsoftonline.com?

In a tipical OAuth flow login redirect, this webpage grabs the locale from the browser:
https://login.microsoftonline.com/common/oauth2/authorize?response_type=code&scope=openid&msaredir=1&nonce=129043b0-c903-4c3a-9109-6797ad67581b&state=eyJSZWRpcmVjdFVybCI6Imh0dHBzOi8vd3d3Lm9uZW5vdGUuY29tL3N0aWNreW5vdGVzIiwiSXNGb3JjZUxvZ2luIjp0cnVlLCJQcm9tcHQiOiJzZWxlY3RfYWNjb3VudCIsIlVzZUltcGxpY2l0QXV0aEZvck1zYSI6dHJ1ZSwiTG9naW5IaW50IjpudWxsfQ%3d%3d&prompt=select_account&client_id=2d4d3d8e-2be3-4bef-9f87-7875a61c29de&redirect_uri=https%3a%2f%2fwww.onenote.com%2fcommon1pauth%2fexchangecode&resource=https%3a%2f%2fgraph.microsoft.com
However I want to override the locale as my app already sets the locale to another value. Google supports this by using the hl=... query param, but login.microsoftonline.com doesn't seem to support this. I tried: hl, locale, loc, ui, lang but no luck.
You can use query string parameter lc and provide locale value.
Example:
Spanish - &lc=10
French - &lc=1036
Hindi - &lc=57
Taking URL from your question, and targeting Spansish it would become
https://login.microsoftonline.com/common/oauth2/authorize?response_type=code&scope=openid&msaredir=1&nonce=129043b0-c903-4c3a-9109-6797ad67581b&state=eyJSZWRpcmVjdFVybCI6Imh0dHBzOi8vd3d3Lm9uZW5vdGUuY29tL3N0aWNreW5vdGVzIiwiSXNGb3JjZUxvZ2luIjp0cnVlLCJQcm9tcHQiOiJzZWxlY3RfYWNjb3VudCIsIlVzZUltcGxpY2l0QXV0aEZvck1zYSI6dHJ1ZSwiTG9naW5IaW50IjpudWxsfQ%3d%3d&prompt=select_account&client_id=2d4d3d8e-2be3-4bef-9f87-7875a61c29de&redirect_uri=https%3a%2f%2fwww.onenote.com%2fcommon1pauth%2fexchangecode&resource=https%3a%2f%2fgraph.microsoft.com&lc=10
Here is a quick link I used for finding the values for all locales.. https://ss64.com/locale.html
Disclaimer: This is more out of testing than any specific official documentation that I have seen about the endpoint.

Microsoft Translator API Python- Spanish locale languages returning same content

As part of the Translate API, I am not seeing any differences between the different versions of Espanol translations - ie: es-ES-Laura, es-ES-Pablo, es-MX-Raul and es-MX-Sabina all return the same text translation as well as voice. Is this correct?
I was expecting differences between the "es" and "es-MX" versions.
The Translator API by default knows only one flavor of Spanish, which is based on content from all Spanish locales. You may create your own customized version using https://hub.microsofttranslator.com.

How to display date in another language

I can’t find any documentation about returning the date in another language using Swig’s date filter.
Is there something I missed, do I have to setup a locale in NodeJs like in PHP or is there simply no internationalization with Swig ?

language on google docs

I am using Google Doc viewer to show online PDF url like this: https://docs.google.com/viewer?url=www.education.gov.yk.ca/pdf/pdf-test.pdf and I am using this URL using a javascript open window action like this:
window.open(url,target='_blank','width=800,height=600,scrollbars=1');
where URL is https://docs.google.com/viewer?url=www.education.gov.yk.ca/pdf/pdf-test.pdf
My question is: Google doc viewer takes language as English by default. Can I change this language somehow so that buttons next/previous on screen appear in Dutch and not in English?
You can add the hl query parameter to specify a different locale using ISO language codes. For instance, to use Dutch you should add &hl=nl as in the following link:
https://docs.google.com/a/google.com/viewer?url=www.education.gov.yk.ca/pdf/pdf-test.pdf&hl=nl

Multilingual Search in Alfresco

I want to achieve the multilingual search in Alfresco.
And I know that in Alfresco there is a multilingual function, you could upload the different language version of the document.
But I don't know how can I related them together. That is when I search "cat", I want to get the Japanese version of the document with "ねこ"(means 'cat') in it.
But I can only get the English version as a search result.
Could anyone tell me how can I get all the related document (all the translated version of this document) as search result? Thanks.
Look at the Alfresco Wiki. If you have your locale set to jap, then you should only get the japanese version.
I think you'll need to refer through this documentation in Alfresco. http://docs.alfresco.com/4.0/tasks/tuh-multilingual.html

Resources