Koha/misc/translator
Jonathan Druart 4b337b107e
Bug 34959: Sort PO files correctly
The PO files are not sorted when we update them which leads to
unnecessary changes that are commited: hard to see differences and
make git index grow superfluously.

Test plan:
0. Do not apply this patch
1. gulp po:update --lang es-ES
2. git commit -a -m"First PO update"
3. Run again the gulp update command
4. git diff
=> You have a lot of changes generated here, the po:update is not
idempotent.

5. Apply this patch
6. Run the gulp update command
7 git commit -a -m"PO update after 34959"
8. Run the gulp update command
9. git diff
=> No changes are generated

Note that this patch will all the entries by files, and per line
numbers.
It fixes a bug in some condition, where we add information/context about
the string. For instance search for "For the first occurrence" in the
file. Prior to this patch this was not correct, we didn't add info about
the first occurrence (but whichever in the list).

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-18 10:25:56 -03:00
..
po Translation fixes 2023-05-31 16:10:07 -03:00
LangInstaller.pm Bug 31640: Fuzzy translations of preferences can cause missing sections and inaccurate translations 2023-04-06 09:29:27 -03:00
po2json Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
tmpl_process3.pl Bug 33341: Address some perlcritic errors in 5.36 2023-03-28 14:50:33 +02:00
TmplTokenizer.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
translate Bug 25067: Move PO file manipulation code into gulp tasks 2020-11-06 09:46:11 +01:00
VerboseWarnings.pm Bug 17600: Fix tests 2021-07-16 09:47:01 +02:00
xgettext-installer Bug 31292: Untranslatable string in sample_notices.yaml 2022-08-08 13:10:56 -03:00
xgettext-pref Bug 28154: Fix encoding issues on Koha-pref.pot 2021-04-16 13:53:54 +02:00
xgettext-tt2 Bug 25067: Move PO file manipulation code into gulp tasks 2020-11-06 09:46:11 +01:00
xgettext.pl Bug 34959: Sort PO files correctly 2023-10-18 10:25:56 -03:00