![]() |
|
gettext domain mixing solution - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Translating (https://forum.zenphoto.org/forum-8.html) +--- Thread: gettext domain mixing solution (/thread-7210.html) |
gettext domain mixing solution - fanda - 17-06-2010 I found zenphoto is mixing gettexts domains during run script, when theme has its own lc_messagess/domain. If there is no solution for this, this can be the solution (usable also for plugins etc): New custom function for getting string from another than standard (zenphoto) domain. Something like
gettext domain mixing solution - acrylian - 18-06-2010 Yes, theme and plugin translations do not exactly work now. We had postponed that until we got an idea. Seems you had that now. This seems like an interessting and simple idea for this issue. Thanks, we will experiment with that. btw, we did not use the short term _() because it is too easy to overread and search for in source code. gettext domain mixing solution - fanda - 11-08-2010 I am using this and works well: gettext domain mixing solution - acrylian - 11-08-2010 We will try that. I assume you have configured Poedit or similar differently to note the gettext_th as well. gettext domain mixing solution - fanda - 05-10-2010 Yes, of course. 'gettext_th' is added into keywords field in catalog settings. In .po it looks like: gettext domain mixing solution - acrylian - 05-10-2010 Thanks, meanwhile it is already implemented with a few minor modifications in the svn/nightly builds, separately for themes and plugins. In case you are interessted, Info about that already on the translation tutorial. |