Jump to source not working if po file doesn't have ../ for each file location
xgettext by default generates #: filename:line
, i.e. the location of the file containing the string. The filename is relative to the project root. Unless a ../
is prepended to each filename, the jump to source feature in Gtranslator won't work.
How to work around this problem?
I can't see a xgettext option to specify a path to prepend to filenames. In fact, for example gedit pot file doesn't have ../.
Should Gtranslator take care of this somehow?
Any tip is welcomed. Thanks!