Comment générer un fichier .po?

Sur Windows avec WAMPserver (Apache, MySQL, PHP) j'ai le texte suivant:

//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");

Il fonctionne très bien, c'est à dire qu'il affiche "Ceci est une chaîne", ce qui signifie que j'ai gettext correctement le programme d'installation.

Mais COMMENT puis-je créer un .po fichier?

J'ai téléchargé Poedit mais je ne vois pas comment faire ça avec ce logiciel.

Toute aide est grandement appréciée!

source d'informationauteur tobefound