0

我正在尝试为我正在使用的网站生成 .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 helpbake控制台似乎加载正常(没有错误,将我带到预期的菜单)。我在 Mac OSX 10.6(使用 MAMP)下运行 CakePHP 1.3.0。蛋糕似乎在其他方面正常运作。

谢谢!

4

1 回答 1

3

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

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

于 2010-06-15T04:48:24.823 回答