mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 08:51:14 -03:00
Source locations (file name and line number) where a string originates is not required by gettext tooling. It can help translators to identify context, but the value of this is reduced by our lack of context support, meaning that all occurrences of a string will receive the same translation. Translators can use `rg` or similar tools to find the source locations. For further details see this thread: https://github.com/fish-shell/fish-shell/pull/11463#discussion_r2079378627 The main advantage is that updates to the PO files are now only necessary when the source strings change, which greatly reduces the diff noise. A secondary benefit is that the string extraction logic is simplified. We can now directly extract the strings from fish scripts, and several issues are fixed alongside, mostly related to quoting. The regex for extracting implicit messages from fish scripts has been tweaked to ignore commented-out lines, and properly support lines starting with `and`/`or`.