Helping you Build Your Own Social Network!

Faster, better and easier!

How to translate languages

(16 posts) (3 voices)

  1. Hi!

    I would like to translate the language-files from English to Swedish, as an exampel I would like to have an file called "bp-gallery-Sv_SE. I would like to start with the file for BP-gallery and the Global forum. Please advise me where to find the files to translate or do I need to create a new file myself? How do I make a languages file? Thanks for assistance!

    BR
    LisaLove

    Posted 1 year ago #
  2. I have translated the .po for Global forums and made it into a .mo file. How do I acivate it, where do I put it and do I need to type a code to make the plugin use it? (For ex do I create a languages folder under bp-global-forum, or where do i put the file?).

    I would also like to have the .po files for: BP Gallery Rc4-update4-rev83, the Wire and Flickr. Anyone who can help me out where to get this?

    Hope to get some answers, cheers!

    Posted 1 year ago #
  3. Hi,
    Please make a folder "languages" in all the plugins you want to translate.

    For global forum, put a file with name "gf-Your_LOACL.mo" in the wp-contents/plugins/global-forum/languages directory.

    For Bp-gallery, put the translation file in "wp-content/plugins/bp-gallery/languages/bp-gallery-Your_LOCAL.mo"

    For Flickr, you will need to put the translation in the file wp-content/plugins/bp-flickr/languages/bp-flickr-Your_LOCAL.mo"

    Where Your_LOCAL is the name of your current locale(e.g. Sv_SE)
    Hope that helps. Please let me know if it works or not ?

    Posted 1 year ago #
  4. Thank you very much for advise!! :) I really appriciahte it.

    It works partly... I have done just like you suggested above, that is to put "gf-sv_SE.mo" in the wp-contents/plugins/global-forum/languages folder. The result is that somw words/functions of the forum is translated to Swedish, however not all.
    I therefor wonder if I have translated the wrong(an old .po file?
    Where do I find .po file and all the .po files for the bp-gallery, bp-wire and br-flickr?

    Posted 1 year ago #
  5. Hi,
    I guess, all of the old translations files are not complete.
    You can either use Poedit,
    http://www.poedit.net to generate one or please allow me to put the files for all these three by today evening.

    Thanks
    Brajesh

    Posted 1 year ago #
  6. Yes please Brajesh, I would love if you could put up the latest files for:

    global-forum
    bp-gallery
    bp-wire
    br-flickr

    Would be very helpful!

    I have poedit, and I have just learned how to translate and to create a .mo file when done. My problem is that I don't understand how and where I should run the tool over the code to produce a POT file?

    Posted 1 year ago #
  7. Anyone with one or more of the above mentioned .po files above to share? Or that can explain how I generate them? Any suggestions are appreciated, thanks. :)

    Posted 1 year ago #
  8. Hi Lisa,
    I am sorry for my not so good response to this topic. I am generating PO and will upload one by one now.

    Thanks
    Brajesh

    Posted 1 year ago #
  9. Well, here is the po file for bp-gallery rc4 -r83
    http://buddydev.com/http//buddydev.com/public-download/bp-gallery-rc4-r83.po

    Some of the strings may be untranslatable, If you find one, please do point me. I will be making them translatable for next release.

    Thanks
    Brajesh

    Posted 1 year ago #
  10. I've translate bp-gallery and bp-flickr in french (do you want the translation?)
    But in bp-flikr, two line are missing:
    -Flickr Account settings
    -Please enter your flickr account NSID

    I don't have Gettext to create a pot file so...

    Posted 1 year ago #
  11. @Brajesh thanks a lot! Now the global-forum, the bp-gallery and flickr, all works like a charm. (Just the two things missing regarding flickr, mentioned above by claudegagn).

    Yet I have a problem. The Wire is not working. Have namned the language file "bp-wire-sv_SE.mo" and put it into /plugins/bp-wire/languages. When saving the file in Poedit, it gives an error message, saying there was 2 fatal errors:

    sh!\bp-wire 1.1.1.po:103 'msgstr* is not a valid PHP forma string, unlike 'msgid'. Reason: In the direvtive number 1, the character 'v' is not a valid conversion specifier.

    and

    sh!\bp-wire 1.1.1.po:112 'msgstr* is not a valid PHP forma string, unlike 'msgid'. Reason: In the direvtive number 1, the character 'v' is not a valid conversion specifier.

    Suggestions?

    Posted 1 year ago #
  12. @claudegagn
    Thanks for pointing that issue with flickr plugin. I will keep it in mind for next update of flickr plugin.
    I would love to have the translated files, highly appreciated.

    @lisalove
    Just put a new version of wire plougin, that should solve your issue.
    http://buddydev.com/buddypress/bp-wire-plugin-updated/

    The new plugin contains the .po file.
    hope that helps.

    Posted 1 year ago #
  13. Thanks for all your effort! Sorry to bother you this much. Of course you can have my languages files as well, they are maybe a bit adjusted to fit in at my site (fitness community). How do you I best send them to you?

    So, now I have installed the bp-wire1.1.2 and translated the .po. This time I get one error message when trying to save the .po ochn the .mo filess. (Error message: "sh!\bp-wire 1.1.2.po:165 'msgstr* is not a valid PHP forma string, unlike 'msgid'. Reason: In the direvtive number 1, the character 'v' is not a valid conversion specifier.".)

    How ever I have been able to get the files working with this kind of errors before. So I don't know if I'm making something wrong elsewhere?

    File directory (same as you put the .po file in): wp-content/plugins/bp-wire/languages/bp-wire-sv_SE.mo and have tried bp-wire_SV_SE etc combinations, no one seems to work.

    Advise would be appreciated!

    Posted 1 year ago #
  14. I found this in the bp-wire.php:

    //localization
    /*
    * Localization support
    * Put your files into
    * bp-flickr/languages/bp-flickr-your_local.mo
    */

    Could that be the issue maybe? FLickr should be traded to wire?

    Posted 1 year ago #
  15. Any suggetsions on the comment above? Could this be why the .mo file doesn't work in the bp-wire?

    Posted 1 year ago #

Reply

You must log in to post.