Language support
-
This is a really nifty little plugin, but can’t it be updated with language support?
-
@fizzgigg – Thanks for the compliment!
The plugin has a complete i18n implementation but I do not currently provide any “pomo” files for the plugin itself. Although the plugin’s next review/re-factor cycle is not due for some time, is there something specific I missed? I am not seeing anything significant in the code but if I have overlooked something by all means let me know.
Thanks, again!
~Cais.
I cant tell if anything has been missed, I just would like the plugin in Swedish. π
@fizzgigg – Aha … well that would require a Swedish translator (*grin*).
~Cais.
I found one *looking in the mirror*. π
@fizzgigg – Have a look at version 0.4 (just uploaded). I believe it has everything covered including a
.potfile … and there was a significant miss in thei18nimplementation that I needed to address.Thanks for the incentive to have a closer look at this plugin, hopefully you can carry it forward and complete your translations now.
Please remember to use this location for your translation files (
.poand.mo):
../wp-content/languages/plugins/ (this is the most update safe location)Using the following naming conventions:
<plugin textdomain>-<language>_<country>.po
<plugin textdomain>-<language>_<country>.mo~Cais.
PS: I believe the following would be the most correct for Swedish:
bns-site-data-sv_SE.poandbns-site-data-sv_SE.moI named the files bns-site-data-sv_SE.mo and bns-site-data-sv_SE.po and placed them in the root of the plugin folder, but when I use it the text when configurating the widget is in English and for the visitor there are no text att all, only the numbers.
@fizzgigg – Did you try the translation files if placed in this location:
../wp-content/languages/plugins/I did now (along with the root folder of the plugin), no change – still no text.
The “text” does appear when you do not use your translation files, correct?
~Cais.
PS: Try updating to version 0.4.1 (just released a few moments ago) and continue to use the
../wp-content/languages/plugins/folder as noted above.Yes, when I deleted the language files, English text showed.
@fizzgigg – Really sorry about all this inconvenience … I got a little too fancy in the code and didn’t think it through clearly enough. I missed converting a string to an integer in the i18n implementation and that is what caused the translation files to not work correctly (or at least this is what I suspect).
Version 0.4.2 should have this corrected. Please let me know if you are still having issues.
Thanks … and Happy New Year!
~Cais.
No problem, good thing if I can be of any help.
Updated with the following result:
* Without launguage files – English text.
* With language files in ../wp-content/languages/plugins/ there is no text at all.
* With language files in ../wp-content/plugins/bns-site-data there is no text at all.Hmm … can you send me the language files you are working with? (Just follow the “title” link beside my avatar to get my email address.)
Thanks!
~Cais
Couldn’t find the address, but you can find the files here: https://dl.dropboxusercontent.com/u/8772619/bns-site-data-sv_SE.zip
They are not finished yet, I still need to see them in context before I can hand them over as a real translation.
@fizzgigg – Thanks, I’ll see what I can do with these as a reference point.
~Cais.
The topic ‘Language support’ is closed to new replies.