Hello,
I am trying to use CGettextMessageSource.
But I don’t know how to make po file. What shaould be the structure ?
I try before with CPhpMessageSource and it was working but now I must use po file.
Until now I try this :
po file :
msgid ""
msgstr ""
"PO-Revision-Date: 2012-10-11 10:44:40\n"
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"Last-Translator: xx xx <xx.xx@xx.ch>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "LesDroits"
msgstr "hum hum"
main.php
'components' =>array(
'messages' => array(
'class' => "CGettextMessageSource",
'catalog'=>'app',
'useMoFile' => FALSE,
),
Mavueadmin.php
<h1><?php echo Yii::t('app','LesDroits') ?></h1>
Can anyone help me? sorry for my bad english
Nath, beginer with Yii