[Phpmyadmin-devel] phpMyAdmin with gettext
Michal Čihař
michal at cihar.com
Mon Mar 15 14:00:56 CET 2010
Hi
Dne Mon, 15 Mar 2010 12:29:48 +0100
Michael Keck <sfnet at michaelkeck.de> napsal(a):
> I've found a solution and it worked for me now:
> I've contacted the developer of TWIG and he gives me a sample filter for
> gettext. So I can use in templates as an expample {{ 'Welcome to
> phpMyAdmin'|t }}.
Well the think I realized is that we don't wont texts in themes which
will be contributed. It needs to be separated from it. The texts should
be managed by us and themes should contain only design.
> I know, that phpMyAdmin should still work without javascript. Javascript
> should only be a feature. But if user want to use javascript, this
> should be secure enough.
>
> I guess with you, that with wrong encoding/charset in browser settings
> also text in pages may be displayed wrong, but phpMyAdmin still works.
> Perhabs I will see 'L?schen' instead of 'Löschen', but it still works.
> But it's different in javascript (I've written many javascripts in past):
> With wrong encoding/charset in browser settings, you'll get 'Löschen'
> (or something other terrible for javascript like 'ä' for the letter
> 'ä') for the string 'Löschen', which crashes all used javascripts.
> With my "bulletproof"-suggestion (using 'L\u00F6schen' instead of
> 'Löschen'), only the text is displayed wrong (I will see 'L\u00F6schen'
> or 'L?schen' instead 'Löschen'), but javascript still working.
You will get broken strings in both cases so I really don't see big
advantage ;-).
--
Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20100315/73a10ee7/attachment.sig>
More information about the Developers
mailing list