sprintf的翻译

时间:2015-02-19 15:13:56

标签: wordpress poedit

Poedit识别并翻译这部分并保存,但不会在主题上翻译。我怎么能正确地做到这一点?

   'description' =>sprintf(__("Thank you for being part of this! We've spent almost 6 months building ThemeIsle without really knowing if anyone will ever use a theme or not, so we're very grateful that you've decided to work with us. Wanna <a href=http://themeisle.com/contact/' target='_blank'>say hi</a>?
<br/><br/><a href='http://themeisle.com/demo/?theme' target='_blank' />View Theme Demo</a> | <a href='http://themeisle.com/forums/forum/' target='_blank'>Get theme support</a><br/><br/><a href='http://themeisle.com/documentation' target='_blank'>Documentation</a>"), 'theme'),
                 'priority' => 30,

1 个答案:

答案 0 :(得分:0)

My psychic powers告诉我这段代码缺少任何上下文是在loaded the translation 之前执行的(静态?)变量初始化的一部分。

PHP的gettext实现不支持回溯。您必须在调用__()或朋友之前加载域名。