Skip to:
Content
Pages
Categories
Search
Top
Bottom

Detect the language of the user, using the .mo

  • I have a little doubt. Using 2.9.2 and Wp BP 1.2.2.1.

    The way that we can change the language from wp-config.php for example in Spanish. Do not use google translator or other service.

    BP would be possible to detect the user’s language and load the activity in Spanish or English. In the same way that Facebook loaded into Spanish in Spain and in English in the USA.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Avatar of Xevo
    Xevo
    Participant

    @xevo

    This is kinda “woozy”. Your not really telling what you want to accomplish with the topic.

    I’m geussing you want a plugin that translates buddypress in whatever language?

    Something like that is already in the making as far as I know.

    Sorry but I use the translator and I think it is more confusing.

    I just want to BP or WP detect the language of the user and load the theme on the user’s language.

    Wp-config example

    define ( ‘WPLANG’, ‘ “” user language to language or cookie “”‘);

    Then in / languages / have all languages .mo for the web. Spanish, Italian, Swedish, etc …

    Avatar of Bowe
    Bowe
    Participant

    @bowromir

    I think you mean that it detects the users language through his/her browser settings… that is something that I need as well, but I don’t think it’s there yet!

    something like this? (not sure if it works on BP)

    http://wordpress.org/extend/plugins/xili-language/

    @Bowe: Yesss! i like!!

    @etiviti: not working…

    i tested plugin: BP Translate, CodeStyling Localization, Different Localization in Front- and Backend, qTranslate, WPML Multilingual CMS, WP_Multilingual.

    Avatar of Anointed
    Anointed
    Participant

    @anointed

    I’ve been looking for something similar for some time now. I have one client who has church’s in the U.S. and Mexico, so he has separate distinct language groups.

    While I am not great at coding, I am pretty decent at project management. The entire concept of a multilingual single install just goes right over my head planning wise. I finally gave up and will give him 2 separate sites until I get a handle on how to tackle that beast…

    My other problem is that I don’t speak any Spanish at all, so even setting up his spanish site is going to be interesting. I’m kinda just hoping that I can put together an easy package and have a spanish speaking wp/bp admin take over the install.

    Xili does look interesting though.

    Avatar of Bowe
    Bowe
    Participant

    @bowromir

    There are a few things you can Anointed.. I’m in the same process and I need to translate my site into many languages and also have some autodetection when first visiting the site.. Some pointers I can give you

    1: http://www.glotpress.org

    GlotPress is a collaborative, web-based software translation tool.

    This blog contains development updates and longer descriptions of some of the GlotPress features.

    You can learn more about the project and the development at the GlotPress Trac.

    2: http://wpml.org/documentation/support/wpml-compatibility-packages/built-in-compatibility-packages/buddypress-multilingual/

    This should be updated for 1.2 in the upcoming weeks, but allows a multilangual site.

    Final step is language detection from the browser and translation of plugin you might use who are not yet translated.. you can edit those and load the .po file into Glotpress so you can work together on the translation..

    It’s a lot of work, but we’ll get there in the end :)

    Avatar of Xevo
    Xevo
    Participant

    @xevo

    Auto translate based on browser settings doesn’t work or it works badly, for example my browser would most likely say it’s English, since my OS is English and the Firefox itself is English as well.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    what about just letting the user click a flag and save the settings in cookies. is that possible with any plugins? The WPML seems great but also overkill.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    I tried the buddypress multilingual plugin but it does not seem to work.

    Avatar of Ali Erkurt
    Ali Erkurt
    Participant

    @alierkurt

    I tried it too… It’s not working.

    Avatar of Revolutionfrance
    revolutionfrance
    Participant

    @revolutionfrance

    There is a new plugin that could help you…It is called transposh, and is starting to do a decent job for me on my multi-language website…

    http://buddypress.org/community/groups/transposh-translation-filter-for-wordpress/

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Detect the language of the user, using the .mo’ is closed to new replies.