[patch] Improve .pot/.po file generation and update
Original Reporter info from Mantis: Yury
-
Reporter name: Yuriy Sydorov
Original Reporter info from Mantis: Yury
- Reporter name: Yuriy Sydorov
Description:
The applied patch improves the following:
- Automatically set the "object-pascal-format" flag for strings containing format chars. It allows tracking of format errors by external tools such as Poedit.
- The "no-object-pascal-format" flag can be specified for a string in the main .pot file if needed.
- It is possible to specify flags in the main .pot file for particular strings and these flags will be preserved and propagated to language specific .po files during the update.
- Fixed delimiter for flags. At least Poedit expects that flags are separated by comma and space, not just comma.
- TPOFileItem.ModifyFlag() can accept the comma separated list of flags and returns true if the Flags property has been modified.