Normally the first field there should tell you the current string being used as comment identifying tag. To change the default comment identifier in PoEdit, simply go to Translation -> Properties -> Click on "Advanced Extraction Preferences" under de "Translation Properties" tab of the window which then pops up. Where %o %C %K %F are the respective placeholders, for example %o for the output filename, %K for the keyword list (you specify in POEdits keyword mask), etc. Xgettext -L PHP -add-comments=TRANSLATORS: -force-po -o %o %C %K %F This can actually be seen if you open PoEdit -> Preferences -> Extractors, then click on the little "+" button at the bottom left of the window, which will show you the command PoEdit fires by default for an extraction of your translation strings from the source file, which is sth like: I just came across this post because I was also looking for a way to do this, and just wanted to add that Roointans' solution works because PoEdit uses the TRANSLATORS: tag as default tag for comment extraction via gettext.
0 Comments
Leave a Reply. |