add internationalisation support #45

Closed
gasova opened this Issue Jan 13, 2013 · 9 comments

Comments

Projects
None yet
2 participants
@gasova

gasova commented Jan 13, 2013

How can I set the parameter lang=tr like this:

https://api.twitter.com/oauth/authenticate?lang=tr&oauth_token=

as my clients are turkish and they want Twitter in turkish?

Can you help me?

Kind Regards.

@gasova

This comment has been minimized.

Show comment
Hide comment
@gasova

gasova May 12, 2013

nobody to help for internationalisation support?

gasova commented May 12, 2013

nobody to help for internationalisation support?

@gasova

This comment has been minimized.

Show comment
Hide comment
@gasova

gasova Jul 1, 2013

Please can anyone help ?

gasova commented Jul 1, 2013

Please can anyone help ?

@guilhermesimoes

This comment has been minimized.

Show comment
Hide comment
@guilhermesimoes

guilhermesimoes Jul 1, 2013

Contributor

Try this:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :twitter, "TWITTER_KEY", "TWITTER_SECRET",
    {
      :authorize_params => {
        :lang => 'tr'
      }
    }
end

Although this isn't dynamic... I'll try to fix that in a pull request soon.

And you should try not to open multiple issues if they're about the same thing.

Contributor

guilhermesimoes commented Jul 1, 2013

Try this:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :twitter, "TWITTER_KEY", "TWITTER_SECRET",
    {
      :authorize_params => {
        :lang => 'tr'
      }
    }
end

Although this isn't dynamic... I'll try to fix that in a pull request soon.

And you should try not to open multiple issues if they're about the same thing.

@gasova

This comment has been minimized.

Show comment
Hide comment
@gasova

gasova Jul 2, 2013

Hello, I've tryed the solution above but it is not working :(

gasova commented Jul 2, 2013

Hello, I've tryed the solution above but it is not working :(

@guilhermesimoes

This comment has been minimized.

Show comment
Hide comment
@guilhermesimoes

guilhermesimoes Jul 2, 2013

Contributor

Did you restart your app? Usually when you make changes to files inside the config directory you have to restart your app.

Contributor

guilhermesimoes commented Jul 2, 2013

Did you restart your app? Usually when you make changes to files inside the config directory you have to restart your app.

@gasova

This comment has been minimized.

Show comment
Hide comment
@gasova

gasova Jul 2, 2013

Yes I've restarted the app. With :

Touch tmp/restart.txt 

in the root folder of my app as I use passenger with apache...

Sent from my iPhone

On Jul 2, 2013, at 14:09, Guilherme Simões notifications@github.com wrote:

Did you restart your app? Usually when you make changes to files inside the config directory you have to restart your app.


Reply to this email directly or view it on GitHub.

gasova commented Jul 2, 2013

Yes I've restarted the app. With :

Touch tmp/restart.txt 

in the root folder of my app as I use passenger with apache...

Sent from my iPhone

On Jul 2, 2013, at 14:09, Guilherme Simões notifications@github.com wrote:

Did you restart your app? Usually when you make changes to files inside the config directory you have to restart your app.


Reply to this email directly or view it on GitHub.

@guilhermesimoes

This comment has been minimized.

Show comment
Hide comment
@guilhermesimoes

guilhermesimoes Jul 2, 2013

Contributor

I just tried it now and it works so you are doing something wrong. Try updating the gem with bundle update omniauth-twitter and make sure that you are adding

:authorize_params => {
  :lang => 'tr'
}

To wherever it is where you are passing your key and secret.

Contributor

guilhermesimoes commented Jul 2, 2013

I just tried it now and it works so you are doing something wrong. Try updating the gem with bundle update omniauth-twitter and make sure that you are adding

:authorize_params => {
  :lang => 'tr'
}

To wherever it is where you are passing your key and secret.

@gasova

This comment has been minimized.

Show comment
Hide comment
@gasova

gasova Jul 2, 2013

Probably, thanks I will let you know, if I succeed :)

Kind regards.

Sent from my iPhone

On Jul 2, 2013, at 14:32, Guilherme Simões notifications@github.com wrote:

I just tried it now and it works so you are doing something wrong. Try updating the gem with bundle update omniauth-twitter and make sure that you are adding

:authorize_params => {
:lang => 'tr'
}

To wherever it is where you are passing your key and secret.

Reply to this email directly or view it on GitHub.

gasova commented Jul 2, 2013

Probably, thanks I will let you know, if I succeed :)

Kind regards.

Sent from my iPhone

On Jul 2, 2013, at 14:32, Guilherme Simões notifications@github.com wrote:

I just tried it now and it works so you are doing something wrong. Try updating the gem with bundle update omniauth-twitter and make sure that you are adding

:authorize_params => {
:lang => 'tr'
}

To wherever it is where you are passing your key and secret.

Reply to this email directly or view it on GitHub.

@gasova

This comment has been minimized.

Show comment
Hide comment
@gasova

gasova Jul 3, 2013

I've finaly succeeded. It was a twitter app setup issue... each time my authenticate callback was redirected by twitter to authorize, because of the setting "Allow this application to be used to Sign in with Twitter" that wasn't checked, in my twitter app settings page...

Kind regards

gasova commented Jul 3, 2013

I've finaly succeeded. It was a twitter app setup issue... each time my authenticate callback was redirected by twitter to authorize, because of the setting "Allow this application to be used to Sign in with Twitter" that wasn't checked, in my twitter app settings page...

Kind regards

@gasova gasova closed this Jul 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment