Su Windows utilizzando WampServer (Apache, MySQL, PHP) Ho il seguente:Come generare un file .po?
//test.php
if (!defined('LC_MESSAGES'))
define('LC_MESSAGES', 6);
$lang = "sv";
putenv("LANG=$lang");
setlocale(LC_ALL, $lang);
$domain = "messages";
bindtextdomain($domain, "./locale");
textdomain($domain);
echo _("This is a string");
Funziona bene, cioè esso emette "Questa è una stringa" che significa che devo gettext
correttamente installato in su.
Ma come faccio a creare un file .po
?
Ho scaricato Poedit ma non riesco a vedere come farlo accadere con quel software.
Qualsiasi aiuto è molto apprezzato!
ho trovato questo tutorial utile [>> Gettext & PoEdit >>] (https://www.youtube.com/watch?v = -RuqVDdC1cI) –