On Windows using WAMPserver (Apache, MySQL, PHP) I have the following:
//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");
It works fine, i.e. it outputs "This is a string" which means I have gettext
correctly setup up.
But HOW in the world do I create a .po
file?
I downloaded Poedit but I can't see how to make this happen with that software.
Any help is greatly appreciated!