On Wed, Jun 22, 2011 at 10:33 AM, Michal Čihař michal@cihar.com wrote:
Hi all
while translating to Czech, I noticed that some messages are not really good translatable. I've fixed what I've found so far and I've written some guidelines to avoid such problems in future.
You can find the hints on our wiki:
http://wiki.phpmyadmin.net/pma/Gettext_for_developers#Translatable_messages
Please try to remember that phpMyAdmin is being translated to wide range of languages and they compose the sentence in different ways.
Thanks for the hints.
Format string order - do not assume other language will keep order of printf parameters, in many case it won't.
How to avoid this then?
Untranslated parts - you might want to use some value directly as received from MySQL (eg. ON/OFF), but in most case it will look oddly in translated version.
It would be bad to change that in the case of server variables, since mysql only accepts setting english ON/OFF ;) I think it would be misleading to have ON/OFF translated.
-- Michal Čihař | http://cihar.com | http://blog.cihar.com
Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel