[Phpmyadmin-devel] phpMyAdmin with gettext

Michael Keck sfnet at michaelkeck.de
Sat Mar 13 16:00:13 CET 2010


Hi Michal,

I've seen the file /libaries/messages.inc.php. Would this the final
solution?

If yes, I can use in template engine things like $strXxxXxx, Else if
not, I will write
a filter function for TWIG-templating, but I think it would be overheaded.

Is it possible for you, to add a switch in your select lang library?
If I need strings in Javascript, that I would be able to include such a
thing like:
<script type="text/javascript"
src="select_lang.php?js=selected_lang"></script>
This should me return javascript compatible strings as an object like
var pmaStringJS = {
    strAbortedClients : 'Aborted',
    /* ... and so on */
    'strZip' : 'zipped'
}
The Problem: UTF8-Strings should be encoded with \uXXXX.
Sample: 'Löschen' will become 'L\u00F6schen'.

Regards
Michael

Am 12.03.2010 13:16, schrieb Michal Čihař:
> Hi
>
> Dne Fri, 12 Mar 2010 12:35:50 +0100
> Michael Keck <sfnet at michaelkeck.de> napsal(a):
>
>   
>> okay this sounds good.
>> But one question:
>> How could / should I access language files with javascript?
>>     
> I think it will be same as with old system - PHP will generate the
> messages to use.
>
>   
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
>
>
> _______________________________________________
> Phpmyadmin-devel mailing list
> Phpmyadmin-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20100313/c2a43e11/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x25C35262.asc
Type: application/pgp-keys
Size: 1711 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20100313/c2a43e11/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 291 bytes
Desc: OpenPGP digital signature
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20100313/c2a43e11/attachment.sig>


More information about the Developers mailing list