Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set different locales ? #16

Open
Artgit opened this issue Jun 9, 2013 · 2 comments
Open

How to set different locales ? #16

Artgit opened this issue Jun 9, 2013 · 2 comments

Comments

@Artgit
Copy link

Artgit commented Jun 9, 2013

In order to parse apps and comments in differents languages we need to provide different locales per request. How it could be implemented with this library ? Thanks.

@Artgit
Copy link
Author

Artgit commented Jun 11, 2013

Guys, I'm really blocked with it.

How to get access to request object in order to add my header ?

for example:
HttpClient client = new DefaultHttpClient();
HttpPost request = new HttpPost(URL);
request.addHeader("Accept-Language", "en");

@Fuzion24
Copy link
Contributor

My guess is that in addition to the request headers, you have to create a new device with a different locale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants