在CakePHP 1.3中加载il8n控制台时出错

时间:2010-06-15 00:05:31

标签: php cakephp internationalization cakephp-1.3

我正在尝试为我正在使用的网站生成.po文件。当我从控制台目录中运行此命令时:

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /Users/bkelly/Development/[redacted]/www/trunk/about/trunk/cake/libs/cache.php on line 570

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /Users/bkelly/Development/[redacted]/www/trunk/about/trunk/cake/libs/cache.php on line 570

Error: Class Il8nShell could not be loaded.

如果我发出./cake il8n help,也会发生这种情况。 bake控制台似乎加载正常(没有错误,带我到预期的菜单)。我在Mac OSX 10.6(使用MAMP)下运行CakePHP 1.3.0。蛋糕似乎正常运作。

谢谢!

1 个答案:

答案 0 :(得分:3)

那是因为它被称为 i18n ai-18-enn ),而不是il8n( ai-ell-eight-enn ) 。 :)

知道这是国际化numeronym,将中间 18个字符替换为“18”可能会有所帮助。 L10n代表本地化