如何使用Twig + Symfony定位数据

时间:2018-11-03 14:19:22

标签: symfony twig

我有个约会,需要翻译成用户语言。我尝试像这样使用twig-extension / Intl:

#include <memory> #include <string> #include <iostream> std::unique_ptr<char[]> read_file(std::string name) { .... std::unique_ptr<char[]> buffer(new char[size+1]); .... return buffer; } int main() { std::unique_ptr<char[]> buffer = read_file("main.cpp"); if ( buffer[0] != 'A' ) { std::cout << "data is invalid\n"; return 1; // buffer is freed automatically } buffer.reset(); // can manually free if we are finished with buffer before it goes out of scope // data is valid return 0; }

但是我得到这个错误

{{ ('1985-5-5')|localizeddate('none', 'none', 'fr', 'Europe/Paris', 'MMM') }}

IntlTimeZone在哪里,如何使用它?

0 个答案:

没有答案
相关问题