Page 1 of 5 123 ... LastLast
Results 1 to 10 of 41

Thread: How to translate Classipress in another language

  1. #1
    Thread Starter
    Rookie yahn44's Avatar
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to translate Classipress in another language

    Could you just describe the process?
    Thanks

    Yann

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: How to translate Classipress in another language

    Good question Yann. I will be writing a blog post about this later but here are the basics.

    -Download and install poEdit
    -Take the .po file from the latest ClassiPress folder (v2.8.2 or greater).
    -Open that file with poEdit. You'll need to learn how poEdit works.
    -Start the translation and periodically save the file as a .po
    -When you are finished translating, go to File => Save as (filename.po) and after saving it as a .po, it will also automatically generate the .mo file.

    The naming of your .mo files is very important and must match the desired locale. The naming convention is based on the language code (e.g. pt for Portuguese) followed by the country code (e.g. _BR for Brazil). So, the Brazilian Portuguese file would be called pt_BR.mo. Complete lists of language codes and country codes.

    -Put the .mo file in your classipress theme directory.
    -Update your wp-config.php file with the correct language codes like the example below. If you don't have a WPLANG entry then create one.
    Code:
    define ('WPLANG', 'pt_BR');
    (Read this post which better explains the process.)
    -Go back and refresh your ClassiPress site. You should now see the ClassiPress translated!

    Note, sometimes the text you translated is too long and might wrap or look funny. You can either shorten the text or decrease the font size.

    Anyone that successfully translates ClassiPress, please let me know. I would love to get the translated .MO file from you so I can offer it to all ClassiPress customers.

    More information directly from WordPress.

  3. #3
    Rookie
    Not a Verified Customer
    trismegiste's Avatar
    Join Date
    Apr 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to translate Classipress in another language

    Hello

    I made with Poedit a French translation file here : http://www.annonce-paris.org/wp-content ... s/fr_FR.mo
    But i don't understand how to generate the ".mo" file, i have just renamed the ".po" file into ".mo" and my website is not translated

    Thanks for your help

    Regards,
    Patrick

  4. #4
    Rookie
    Not a Verified Customer
    trismegiste's Avatar
    Join Date
    Apr 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to translate Classipress in another language

    I fixed the problem because of several duplicate entries, now i have fr_FR.mo

    But it doesn't work

  5. #5
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: How to translate Classipress in another language

    Patrick, my instructions above have been updated. You'll need to create a "languages" folder under "wp-content" and put your .mo file there. I tried it on my computer using your fr_FR.mo file and it worked. Some of the text wrapped though because it was too long. Let me know once you've gotten a final translation and I will make it available to download for any ClassiPress owner.

    Thanks!

  6. #6
    Junior Member
    Not a Verified Customer
    Miguel's Avatar
    Join Date
    Mar 2009
    Location
    Hermosillo
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to translate Classipress in another language

    @dcowgill, I think your explanation is very good BUT in case you are traying to edit the Wordpress Language, not the ClassiPress theme language.

    First of all I think you should give us the .POT file, so we can create our own .po files after the original language file.
    Second, the language files .po and .mo should be inside the theme folder NOT in /wp-content/languages/

    Remember, Wordpress uses that folder for their own translations, so in my case I already have es_ES.po and es_ES.mo files because they are Wordpress translations. So I´m not going to replace the Wordpress files translations with these ClassiPress translations files.

    I hope people that doesn´t understand anything about this is not this and replacing the Wordpress translations with ClassiPress translations.

    In resume, please send us the .POT file.

    Thanks in advance.

  7. #7
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: How to translate Classipress in another language

    Hi Miguel, I'd be happy to include the .pot file but there isn't any difference than the .po file. Looks the exact same to me. Am I missing something?

    I see what you mean by replacing the WordPress translation files but I couldn't get them to work if I put them in the theme directory. Any help from you would be appreciated.

  8. #8
    Junior Member
    Not a Verified Customer
    Miguel's Avatar
    Join Date
    Mar 2009
    Location
    Hermosillo
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to translate Classipress in another language

    @dcowgill, sure, I can help, just send me the original .POT file so I can start working on the solution.

  9. #9
    Junior Member
    Not a Verified Customer
    Miguel's Avatar
    Join Date
    Mar 2009
    Location
    Hermosillo
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to translate Classipress in another language

    I´ve sent you a PM, I hope you can give me some credit

  10. #10
    Rookie
    Not a Verified Customer
    trismegiste's Avatar
    Join Date
    Apr 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to translate Classipress in another language

    ok i can't replace wordpress language... then i'm waiting a solution

    thanks

Page 1 of 5 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Translate to Portuguese (pr-BR)?
    By msfernandes in forum ClassiPress General Discussion
    Replies: 31
    Last Post: October 1st, 2012, 07:19 PM
  2. Language file?
    By clayminkyu in forum ClassiPress General Discussion
    Replies: 5
    Last Post: May 14th, 2009, 02:03 AM