I have a file dk.po
and dk.mo
in folder lang in my webdir.
How can I use this file? I have tried all, but I can not get it to work.
// Lang
putenv('LC_ALL=dk');
setlocale(LC_ALL, 'dk');
// Specify location of translation tables
bindtextdomain("dk", ROOT .'lang');
// Choose domain
textdomain("dk");
this works for me my file is named messages.mo
I would seriously recommend using
Zend_Translate
for this as you can run into a lot of inconsistencies withlocales
on various types of systems.Docs: http://framework.zend.com/manual/en/zend.translate.using.html
I am working with this already:
the language file path:
and I think (not sure) that you have to use the same paths!