hi all,
hope you have a nice day.
recently I am using gettext in php to do the localization for the web 
application, there is one part below. I have divided the parts into diffrent 
folder . for example timemanagement, exit and so on in the local directory .

a file under /var/www/cgi-bin/xxxx/application/timemanagement/xxxx.phtml
 // I18N support information here
$language = 'zh_CN';
putenv("LANG=$language");
setlocale(LC_ALL, $language);

$domain = 'xxxx_timemanagement_clients';
bindtextdomain($domain, "/var/www/cgi-bin/xxxx/locale/timemanagement");
bind_textdomain_codeset($domain,'UTF-8');
textdomain($domain);

<?php if($this->popup == 'close') { ?>   
    <div class="ml-alert-1-success">
    <div class="style-1-icon success"></div>
    Client <?php echo $this->eventact; ?> <?php echo gettext("successfully.");?>
    </div>

    <?php }
.......
?>
I have created the po and mo file and put them under 
/var/www/cgi-bin/xxxx/locale/timemanagement/zh_CN/LC_MESSAGES/ . but it didn't 
work at all, I guess there may be something wrong with my code. but no idea. 
can anyone give some advice to the next action ? thanks a lot.

Reply via email to