Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change between languages? (multilingual forum)

  • @rickiwylder

    Member

    Hello guys!

    Im running bbPress 1.0.2 and I’ve changed the default language to Swedish, like this:

    define( 'BB_LANG', 'sv_SE' );

    And a folder “my-languages” with the .mo/.po-files in bbPress root. Working excellent.

    I’m wondering if it’s possible to switch between Swedish and English with a front-end link? So the user him-/herself can change to preferred language.

    Cheers and thank you!

    Edit: This would be obvious but just to clarify – Don’t mind the language of the topics/posts. The topics are set in respectively language. I’m just looking for a way to translate the static text.

Viewing 12 replies - 1 through 12 (of 12 total)
  • @ashfame

    Participant

    Well you can let the user choose one for their account by hooking into the language filter if the need be, after checking the user preference.

    Not sure how you can change that on-the-fly with a link.

    @ashfame

    Participant

    Well you can let the user choose one for their account by hooking into the language filter if the need be, after checking the user preference.

    Not sure how you can change that on-the-fly with a link.

    @rickiwylder

    Member

    Thanks for the reply Ashfame. I’ll look into it but the best way of doing it in my case is with some kind of link in the header so the user have the option of switching language when entering the forum. Maybe somebody else knows?

    @rickiwylder

    Member

    Thanks for the reply Ashfame. I’ll look into it but the best way of doing it in my case is with some kind of link in the header so the user have the option of switching language when entering the forum. Maybe somebody else knows?

    @ashfame

    Participant

    How about you change after the page load using js – Google Translate API? :)

    @ashfame

    Participant

    How about you change after the page load using js – Google Translate API? :)

    @rickiwylder

    Member

    Haha yeah that would be something,

    not sure my client is too happy about it though ;)

    @rickiwylder

    Member

    Haha yeah that would be something,

    not sure my client is too happy about it though ;)

    @nim_design

    Member

    Where do I find the language files for Swedish? The .mo/.po-files.

    @nim_design

    Member

    Where do I find the language files for Swedish? The .mo/.po-files.

    @nim_design

    Member

    @nim_design

    Member
Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar