Localization And AJAX Updates

Localization
I have localize WP-Stats and WP-UserOnline in addition to WP-Polls. If any one of you willing are to test it for me, the downloads links are as follows:
» WP-Stats 2.06 Localized Version
» WP-UserOnline 2.06 Localized Version

If you do test it, please feedback to me if there are any text not translated properly or can be improved. Thanks alot.

Example of WP-UserOnline: You need to create a new .po based on the .pot then after translating you need to save as for example: wp-useronline-de_DE.po where de_DE is your language. The poedit (I assume you are using poedit) will generate a file called wp-useronline-de_DE.mo.

Note: make sure that both files are in wp-content/plugins/useronline

AJAX
WP-Polls and WP-UserOnline now processes AJAX in their own file like polls.php and useronline.php instead of index.php. I think in this way it will be faster and it will have lesser conflicts with other plugins. I have also removed the Javascript variable site_url in them because it is not used.

Email This Post Email This Post Print This Post Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (640 votes, average: 3.98 out of 5)
Loading ... Loading ...

 

24 Responses to “Localization And AJAX Updates”

  1. SILENCE's Avatar
    SILENCE Says:

    Hi, GamerZ
    I already try Useronline 2.06..and translare into my language
    however, Localization can’t work at all. do I miss something?
    or how do I set it up?
    thanks

  2. GaMerZ's Avatar
    GaMerZ Says:

    okie, you need to create a new .po based on the .pot then after translating you need to save as for example: wp-useronline-de_DE.po where de_DE is your language. The poedit (I assume you are using poedit) will generate a file called wp-useronline-de_DE.mo.

    Note: make sure that both files are in wp-content/plugins/useronline

    It should work, please get back to me.

  3. SILENCE's Avatar
    SILENCE Says:

    thanks, I got it and it works now, I miss the part of filename “wp-useronline” but only zh_TW.mo

    I will complete the translation :>

    btw, about AJAX of wp-useronline, I still cant see if AJAX works like WP-Polls, does it work in the background?

  4. GaMerZ's Avatar
    GaMerZ Says:

    yeap it works in the background, every X seconds (the X is set in your Options -> UserOnline) it will update itself and display it the latest users online without loading the page

  5. moshu's Avatar
    moshu Says:

    Hi Gamerz,
    I didn’t try to localize the plugin. Yet. I was just wondering why do you need both files - the .po and .mo - for the translation?
    (BTW, you “internationalized” the plugin = preparing for translation; and we’ll “localize” it when translating into a local language, i.e. create the ‘locale’.)

  6. SolykZ's Avatar
    SolykZ Says:

    Hello,

    another message to warn you that it misses a declaration in the .pot file, with line 128 of useronline.php, concerning the word “guest� which appears on the page of the statistics when an unknown visitor traverses the site.

    Also, I translated the whole and here the result :)

    http://www.goodykz.123.fr/?page_id=48

  7. GaMerZ's Avatar
    GaMerZ Says:

    THANK YOU, I have fixed it =)

  8. SolykZ's Avatar
    SolykZ Says:

    No problem :)

    I make the changes on my own po file and if you want I can send it to you :)

  9. GaMerZ's Avatar
    GaMerZ Says:

    thanks, I have updated the CVS, which language you translated to?

  10. SolykZ's Avatar
    SolykZ Says:

    In french of course :)
    I don’t see the changes in the file…?

    The noob’s question is : What’s the CVS ?

  11. GaMerZ's Avatar
  12. SolykZ's Avatar
    SolykZ Says:

    I’m sorry, very very sorry, but there it misses another declaration in the .pot file, with line 121 of useronline.php. When a guest who wrote a comment on the blog, he’s appearing “guest_JOHN” on the statistics page…

  13. SolykZ's Avatar
    SolykZ Says:

    Another thing to do (if you want)
    A possibility to replace the date/hour strings via the .PO file… With this change, “December, 16th 2006 @ 1:07 pm” can become “16 Décembre 2006 - 13h07″

    Is it a good idea ?

  14. Nobbi's Avatar
    Nobbi Says:

    The only Plugin I could and would send to you maybe wp-print (2.06) in German. (See also other comment ;-) )

  15. GaMerZ's Avatar
    GaMerZ Says:

    SolykZ: Fixed, the date thing is a bit hard. What if I use the wordpress date and time format instead?

    Nobbi: Is it localized or you translate the text manually?

  16. SolykZ's Avatar
    SolykZ Says:

    You can, for example, add the $date_format string in the .pot file and we ‘ll can modify it by an another one, like “d/m/y - G:i”, who ‘ll say : “27/12/2006 - 00:45″, no ?

    Oh, I forgot : Merry Christmas and Happy New Year ;)

  17. GaMerZ's Avatar
    GaMerZ Says:

    hmm good idea!

  18. PyranNa's Avatar
    PyranNa Says:

    i had installed wp-stats plugin.it works but i want to change its language.How can i do it?
    i tried to make with “poedit” but ican not see any options about language select in stats options

  19. GaMerZ's Avatar
    GaMerZ Says:

    as in translate it? what language are u changing to?

  20. sílvia's Avatar
    sílvia Says:

    Hi there,
    Thanks for the plugins! Works great!

    I just localized it into Catalan. The .po and the .mo files are available from my blog. Maybe you could upload the files to the wp-plugin-repository?

    Thanks!

  21. GaMerZ's Avatar
    GaMerZ Says:

    sure drop me a mail with it.

    gamerz84 AT hotmail DOT com

  22. Lumières dans la nuit's Avatar
    Lumières dans la nuit Says:

    Deutsche Übersetzung WP-UserOnline…

    Ich habe mir mal die Mühe gemacht, das Wordpress-Plugin WP-UserOnline in die deutsche Sprache zu übersetzen. Es reicht, die Sprachdatei wp-useronline-de_DE.mo in das Verzeichnis useronline zu kopieren, und schon steht dieses Plugin in Deutsch…

  23. Rasheed's Avatar
    Rasheed Says:

    Hello.

    Translated to arabic (including rtl modifications).

    Here:
    http://www.ar-wp.com/showthread.php?p=19248#post19248

    Thanks.

  24. GaMerZ's Avatar
    GaMerZ Says:

    is it translated using po/mo method?

 

Comments to this post are closed after 30 days of inactivity.