Hi,
I am using gettext for translation string. I create .po file. the structure of my php file is
file name : test.php
domain name : test
<?php
header("Content-type: EUC-JP");
$language = 'JP';
putenv("LANG=$language");
//putenv("LC_ALL=JP");
setlocale(LC_ALL, $language);
$domain = 'test';
echo bindtextdomain($domain, ".\locale");
textdomain($domain);
echo gettext("Hello World!");
?>
When i am making .po file using xgettext utility.it makes it successfully.
i am using xgettext -d test test.php
the structure of .po file is
SOME DESCRIPTIVE TITLE.
Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
This file is distributed under the same license as the PACKAGE package.
FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-10-18 15:47+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=euc-jp\n"
"Content-Transfer-Encoding: 8bit\n"
#: test.php:13
msgid "Hello World!"
msgstr ""
I want to know that the translated string generates itself or we should write itself in msgstr " ".
please tell me
thanks
sumit sood