how to use gettext in php?

Posted by NeoNmaN on Stack Overflow See other posts from Stack Overflow or by NeoNmaN
Published on 2010-03-08T13:05:36Z Indexed on 2010/03/08 13:21 UTC
Read the original article Hit count: 475

Filed under:
|
|

i have a file dk.po and dk.mo ind folder lang in my webdir.

how can i use this file? i have try all, but i can't relly get it to work.

pls help me.

// Lang
putenv('LC_ALL=dk');
setlocale(LC_ALL, 'dk');

// Specify location of translation tables
bindtextdomain("dk", ROOT .'lang');

// Choose domain
textdomain("dk");

Tanks a lot.

© Stack Overflow or respective owner

Related posts about gettext

Related posts about php