0

zend の翻訳で msgid と msgstr に問題がありました

定義 - en_US.PO

msgid "hello"

msgstr "hello world"

ビュー/index.phtml

$this->translate("hello");

msgid "hello" を使用しようとしているときに "hello world" を表示したいのですが、"hello world" ではなく "hello" が表示されます。

そのために私がしなければならないことを助けてください。

4

1 に答える 1

1

module.config.php ファイルを確認してください

),
'translator' => array(
    'locale' => 'en_US',
    'translation_file_patterns' => array(
        array(
            'type'     => 'gettext',
            'base_dir' => __DIR__ . '/../language',
            'pattern'  => '%s.mo',
        ),
    ),
),
于 2013-10-25T12:11:11.343 に答える