I see that you found the converter, but to answer your first question about creating the source translation file -
If you have Gettext installed, you can generate a PO file from your “text to translate” within the project. ”The xgettext command-line xgettext will scan the source files that look for any function that you use.
Example:
To scan PHP files for instances of the trans method, it is called as shown here , you can use the following command -
find . -name "*.php" | xargs xgettext --language=PHP --keyword=trans --output=messages.pot
To your question about editors:
You can use any PO editor, such as POEdit , to manage your translations, but as you say, you ultimately need to convert the PO file to either XLIFF or the YAML language pack for Symfony.
I see you have already found the converter tool. You can also try the one I wrote for Loco. It supports PO in YAML and PO in XLIFF
source share