FOR php:
I have a file like —- test_1.php —-
<?php
echo _("Test phrase");
echo gettext("Test phrase two");
// NOTE: _ == gettext()
?>
File -> New catalog… In the "Source paths" tab, you have to click in New Folder, Add the path of the folder in wich do you have the file (in this example test_1.php)
… They caught ALL the strings that get invoked with gettext() or _() … The usefull for those function is explained here http://www.php.net/manual/es/function.gettext.php
AND… If do you use Apache (for example in Xampp), please, Stop and Start (Restart) it when do you wanna test a new change in a defined language with gettext(), in another way the change will not be affected