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.
 



(640 votes, average: 3.98 out of 5)
November 1st, 2006 at 04:13
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
November 1st, 2006 at 09:00
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.
November 1st, 2006 at 12:47
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?
November 1st, 2006 at 17:23
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
November 24th, 2006 at 07:01
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’.)
December 14th, 2006 at 10:08
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
December 14th, 2006 at 15:35
THANK YOU, I have fixed it =)
December 14th, 2006 at 20:04
No problem
I make the changes on my own po file and if you want I can send it to you
December 14th, 2006 at 23:45
thanks, I have updated the CVS, which language you translated to?
December 15th, 2006 at 20:09
In french of course
I don’t see the changes in the file…?
The noob’s question is : What’s the CVS ?
December 15th, 2006 at 23:27
Here
http://dev.wp-plugins.org/browser/wp-useronline/trunk
December 16th, 2006 at 07:52
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…
December 16th, 2006 at 08:21
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 ?
December 20th, 2006 at 20:55
The only Plugin I could and would send to you maybe wp-print (2.06) in German. (See also other comment
)
December 21st, 2006 at 01:09
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?
December 27th, 2006 at 08:01
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
December 28th, 2006 at 13:04
hmm good idea!
February 1st, 2007 at 16:12
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
February 1st, 2007 at 20:14
as in translate it? what language are u changing to?
March 2nd, 2007 at 20:06
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!
March 2nd, 2007 at 22:23
sure drop me a mail with it.
gamerz84 AT hotmail DOT com
August 20th, 2007 at 04:52
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…
March 4th, 2008 at 16:42
Hello.
Translated to arabic (including rtl modifications).
Here:
http://www.ar-wp.com/showthread.php?p=19248#post19248
Thanks.
March 4th, 2008 at 17:10
is it translated using po/mo method?