Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
可以使用PHP';Google云平台/Google应用程序引擎上是否使用了s gettext扩展?_Php_Google App Engine_Google Cloud Platform_Php Gettext - Fatal编程技术网

可以使用PHP';Google云平台/Google应用程序引擎上是否使用了s gettext扩展?

可以使用PHP';Google云平台/Google应用程序引擎上是否使用了s gettext扩展?,php,google-app-engine,google-cloud-platform,php-gettext,Php,Google App Engine,Google Cloud Platform,Php Gettext,我在我的项目中使用php_gettext扩展名来翻译使用“.mo”-文件的字符串。我正在将该项目转移到谷歌的云平台,但显然没有启用php_gettext扩展(请参阅) 有办法安装这个扩展吗?如果没有,除了PHP的国际化还有什么替代方案?在一个已经运行的库中,您可以使用性能更好的 他们仍然不支持gettext扩展(现在是2016年6月,2014年10月开始发行),所以最后我求助于使用,效果很好 if (!function_exists('gettext')) require_once __

我在我的项目中使用php_gettext扩展名来翻译使用“.mo”-文件的字符串。我正在将该项目转移到谷歌的云平台,但显然没有启用php_gettext扩展(请参阅)


有办法安装这个扩展吗?如果没有,除了PHP的国际化还有什么替代方案?

在一个已经运行的库中,您可以使用性能更好的

他们仍然不支持
gettext
扩展(现在是2016年6月,2014年10月开始发行),所以最后我求助于使用,效果很好

if (!function_exists('gettext'))
    require_once __DIR__ . '/../libs/gettext/gettext.inc';
我使用下面的代码来检查
gettext
扩展是否已启用,只有在未启用的情况下,才加载库。如果将来启用扩展,我的代码将准备就绪。在本地,我启用了它,它工作得很好

if (!function_exists('gettext'))
    require_once __DIR__ . '/../libs/gettext/gettext.inc';

你仍然可以投票支持这个问题,这样谷歌就可以开始实施它。

gettext和intl还不受支持。请在这里用星号标出问题:您的答案就在堆栈溢出上:D