Twig: Working internationalization (i18n) example
I am looking for a working i18n example for Twig (the template engine). Documentation is a bit sparse when it comes to language files. Where should they go, how should they look and what should they be named? I have been trying with .po/.mo files, no luck. If someone could point me in the right direction... See: the i18n extension example which does not really tell me much about the language files themselves. Note: I want to use Twig on its own, not as part of Symfony. Here is my php-file: <?php header('Content-Type: text/html; charset=utf-8'); $vars = array(); foreach($_POST as $key => $value