WordPress.org

Ready to get started?Download WordPress

Forums

Localizing WordPress 1.2 -- i18n and l10n (69 posts)

  1. eke
    Member
    Posted 10 years ago #

    so i have made a pot file for Formal German and wanted to add it to the Wiki as suggested, however my login here does not work on the Wiki and I did not find any link where to sign up, hence I am unable at this time to add anything to the wiki.
    found one small error in the current english translation:
    --
    You have do not have sufficient permissions to edit the links for this blog.
    D:\www\wordpress/wp-admin/link-manager.php:554
    --
    one "have" too many

  2. eke
    Member
    Posted 10 years ago #

    and another one:
    D:\www\wordpress/wp-admin/options-permalink.php:51
    The unique ID # of the post, for example 423
    strong tags are superfluous?

  3. eke
    Member
    Posted 10 years ago #

    aha "Eke" was too short a user name... go figure :o
    EkeEke added de_DE.po for formal German. I'll keep it up to date and already have an informal version, I'll upload later.

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    I'm working on the Brazilian-Portuguese localization and will try to add the .pot file to the Wiki tuesday. Started today , 200 sentences are translated.
    Dener/Fallen
    http://biblio.crube.net

  5. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    options-permalink and link-manager fixed. POT file updated. Thanks eke.

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    Any chance to commit the default .pot file into the CVS server?

  7. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    We may add a separate CVS module for the l10n files. To be determined.
    The POT has been updated once again. We're almost complete.
    The language is now selected via the WPLANG define in wp-config.php. Look at wp-config-sample.php in CVS for usage. Add WPLANG to your wp-config.php.

  8. Anonymous
    Unregistered
    Posted 10 years ago #

    is it cool to remove the hardcoded language support from wp-l10n.php now, having changed WPLANG in wp-config.php?
    cheers-fatherofpip
    ps.
    visitor
    visiting
    gets you in the dev localisation for a look at how the admin has changed. it's work in progress.

  9. Anonymous
    Unregistered
    Posted 10 years ago #

    just one question, how can I make a .po file by myself? without sending it to devs.. ? I'm going to make a russian and spanish translations
    // InsaneX on #wordpress irc chan ;)

  10. Xavier Borderie
    Member
    Posted 10 years ago #

    InsaneX : I hope by "without sending it to devs" you don't mean have my very own translation.
    If you just want to start translating in Russian and Spanish and make both available, then you just have to do like the others
    1) Get the POT file : http://wiki.wordpress.org/index.php/1.2%20WordpressPOT
    2) Open it in poEdit (http://poedit.sourceforge.net/) or in Notepad or any favorite text tool
    3) TRANSLATE! :)
    4) Create a link to ru.pu and sp.po from the POT file page on the wiki
    5) put both translations in their pages.
    It's actually pretty easy, the hardest being learning to use poEdit, and getting a hang of wiki-speech :)

  11. Anonymous
    Unregistered
    Posted 10 years ago #

    omg, I'm going to make an official russian and spanish translations as you described, apart from this I'm going to make my own translation, for my blog about fun stuff, etc.. so it'll be like unofficial version with some other words etc.. I hope you know what I mean :)

  12. Anonymous
    Unregistered
    Posted 10 years ago #

    PS: actually its not sp.po. Its es.po

  13. eke
    Member
    Posted 10 years ago #

    #: wp-admin/link-import.php:111
    msgid "Upload error<p />"

    >> superfluous p tag at the end or missing at the beginning
    ---
    #: wp-login.php:164
    msgid "WordPress &rasquo; Lost password ?"

    >> rasquo -> raquo
    ---
    #: wp-admin/link-manager.php:293
    msgid "You do not have sufficent permissions to edit the links for this blog."
    msgstr ""

    >> sufficent misspelled
    ---

  14. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    Thanks again eke. Source fixed, POT updated.
    It is no longer necessary to change wp-l10n.php.
    You don't have to send anything to the devs. If you don't have the tools needed to create a .mo, you can send your .po to the devs and they'll create the .mo. If you have gettext or poedit installed, you don't need us since those tools will create a .mo for you.

  15. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    BTW, if you have screenshots of or links to your translated site, please share.

  16. Anonymous
    Unregistered
    Posted 10 years ago #

    I found a way to convert .po to .mo files, msgfmt es.po :) I was asking about this..

  17. Anonymous
    Unregistered
    Posted 10 years ago #

    updated on the wiki with a link to a preview of wp_swedish.
    -fatherofpip

  18. moshu
    Member
    Posted 10 years ago #

    I'll be starting the Hungarian translation as soon as I am done with my tax papers (deadline on Friday grrr...:)
    I am not a programmer, but a linguist specialized in applied linguistics, notably translation theory and "stuff" related to that (like cross-cultural communication, which is also implied in any localization attempt!). But I did translate a CMS and some smaller scripts, and witnessed the struggle with localization in the case of a major project.
    I am very interested in both the theoretical and practical side of this "experiment" - and looking forward to familiarize myself with this 'gettext framework'. (Though while browsing through the files I've found an alarming phrase: no input from linguists. Hmmm...)
    I was watching this site and the developments on the forum for a while before finally downloaded and installed the WP. I find it a very elegant script, so I'd like to be helpful in making the i18n and l10n project the same. WP deserves it :)
    OK, more on that and other stuff from a translator's viewpoint later - after the tax day!

  19. eke
    Member
    Posted 10 years ago #

    informal de_DE.po updated
    http://wiki.wordpress.org/index.php/de_DE.po
    the formal version will follow.
    maybe in a separate page?

  20. fatherofpip
    Member
    Posted 10 years ago #

    ps.
    @rboren
    there's one error i get in opedit, % comments, should that be %s comments?
    cheers-r.

  21. bronski
    Member
    Posted 10 years ago #

    Here l10n isn't working either, not at all, whatever I did.
    First I thought this might have been the reason:
    (note: both files were identical, second line is my modification)
    # diff wp-l10n.php-alpha-11 wp-l10n.php-alpha-15
    15c15
    < $mofile = $curpath . "/languages/$locale.mo";
    ---
    > $mofile = $curpath . '/languages/' . $locale . '.mo';

    but a var_dump of $input says there is some other error... Probably my mo-file.
    Could somebody link his, maybe? Thanks.

  22. fatherofpip
    Member
    Posted 10 years ago #

    <?php
    $curpath = dirname(__FILE__).'/';
    $locale = '';
    // WPLANG is defined in wp-config.
    if (defined('WPLANG')) {
    $locale = WPLANG;
    }
    if (empty($locale)) {
    $locale = 'sv_SE'; >>name of your .mo without the extension>>
    }
    $mofile = $curpath . "/languages/$locale.mo";
    .....
    was the way i changed it in l10n for it to work, but that isn't necessary anymore because you should leave it as is (en_US) and change the WPLANG value in the wp-config.php to the respective .mo - however this has failed to elicit any changes.
    cheers-r.

  23. bronski
    Member
    Posted 10 years ago #

    Right - and I've set WPLANG in wp-config.php to de_DE and put a de_DE.mo into languages - to no avail. :-(
    I'm putting a var_dump($input) into line 27 of wp-l10n.php - look at http://bronski.net/wordpress/
    Judging by the length it is my de_DE.mo that is streamed by FileReader, and then some mojo breaks it...

  24. bronski
    Member
    Posted 10 years ago #

    yep, already tried putting de_DE into wp-l10n.php - but that didn't work either. I checked by echoing variables, $locale and WPLANG are set correctly, and still no translation is being done. I'm a bit at a loss here... :-(
    I just compiled the mofile this morning using msgfmt (no OS here that poedit would run under...).
    Chris

  25. fatherofpip
    Member
    Posted 10 years ago #

    issues with localisation and latest nightly:
    unable to effect any change in the pages after changing WPLANG, changes only appear after hard coding in wp-l10n.php, though interestingly it picks up only older translations, none of the more recent aditions.
    i'll wait on a reply and an updated .pot before continuing.
    cheers-r.

  26. Anonymous
    Unregistered
    Posted 10 years ago #

    Eke, using your mo-file it translated rightaway. Interestingly your file is 61k in size and mine is only 46k - so there must be a difference. I used msgfmt from gettext 0.11.5 on a Solaris 8 box. I'll test that on diffente OSes.
    As I understand http://wiki.wordpress.org/index.php/de_DE.po is both formal and informal in on file so you have to split it into its two parts somewhere along line 2576(?) , right? At least that is what I did...

  27. bronski
    Member
    Posted 10 years ago #

    OK, not logged in... that last anonymous was me... Thanks for your help btw.

  28. bronski
    Member
    Posted 10 years ago #

    On a different machine compiling the po-file into a mo-file gave me errors. It turned out those were caused by Umlauts in the po-file. After I changed all of them to HTML the mo-files compiled just fine and worked alright.

  29. Xavier Borderie
    Member
    Posted 10 years ago #

    French test site is online :
    http://xavier.borderie.net/wp-fr/
    Latest fr.po is about to be put on the wiki aswell.
    Comments are welcome =)

  30. eke
    Member
    Posted 10 years ago #

    negative, WPLANG is not working on my WP 1.2 beta install unless I add a require wp-config line as described in the WPLANG thread.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.