【问题标题】:Error loading il8n console in CakePHP 1.3在 CakePHP 1.3 中加载 il8n 控制台时出错
【发布时间】:2010-06-15 00:05:31
【问题描述】:

我正在尝试为我正在使用的网站生成 .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。否则蛋糕似乎运作正常。

谢谢!

【问题讨论】:

    标签: php cakephp internationalization cakephp-1.3


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-28
      • 1970-01-01
      相关资源
      最近更新 更多