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

Make it possible to change locale #2

Closed
thomasclausen opened this issue Mar 20, 2012 · 2 comments
Closed

Make it possible to change locale #2

thomasclausen opened this issue Mar 20, 2012 · 2 comments
Assignees

Comments

@thomasclausen
Copy link
Owner

Add a new setting to make it possible to also change locale

@gracehcoote
Copy link

Hi, I can't seem to get the locale to change, I'm putting in en-GB but it's still in Danish. Any ideas?

@thomasclausen
Copy link
Owner Author

Hi, @gracehcoote

There are two options you need to change i order to get the output in english.
The first option is the locale (https://github.com/thomasclausen/jquery-facebook-wall/blob/master/facebook_wall.plugin.js#L14) and the other is the text_labels option (https://github.com/thomasclausen/jquery-facebook-wall/blob/master/facebook_wall.plugin.js#L18)

Here's an example:

$('#facebook-wall').facebook_wall({
    id: '140239969347795',
    access_token: '108285195955733|nBxyzkey6X69Aors5psTwDTOPPY',
    limit: 15,
    locale: 'en_GB',
    text_labels: {
        shares: {
            singular: 'Shared % time',
            plural: 'Shared % times'
        },
        likes: {
            singular: '% like',
            plural: '% likes'
        },
        comments: {
            singular: '% comment',
            plural: '% comments'
        },
        like: 'Like',
        comment: 'Write comment',
        share: 'Share',
                days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
                months: ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december']
    }
});

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