poedit
poedit copied to clipboard
Line numbers in Catalog can get out of sync
CatalogItem stores line number, which is needed for matching errors from gettext tools and for the --line
command-line argument. Unfortunately, this information becomes invalid when saving a file, because it doesn't account for the msgcat
post-processing. It is also modified every time DoSaveOnly
is called, which can be in non-saving situations like when creating a temporary file for the purposes of validation.
See https://github.com/vslavik/poedit/pull/358#issuecomment-300728398 for the original report:
If does not work with this scenario: a) PO file is open and has been saved poedit.exe --line is launched
This is a reproducible test case for the save issue (reproducible with file locales\ca.po in the poedit repo).
- Run poedit ca.po --line 2010 ==> It opens file ca.po and correctly goes to segment "&Apply"
- Click the Save button in Poedit
- Run poedit ca.po --line 2010 ==> It goes to the wrong segment (in this case "shift", at the end of the file).