Koha-clms/misc/translator
Jonathan Druart c00809a1c2
Bug 38664: WIP trim msgid
* Test the translation process
    * Confirm that the changes make sense
```
-                    <option value="r" selected="selected">Remote-sensing image</option>
+                    <option value="r" selected="selected">
+                        Remote-sensing image
+                    </option>
```
=> Generate
```
+#: koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt:89
+#, fuzzy, c-format
+msgid "Remote-sensing image "
+msgstr "Image de télédétection"
```

Added a "trim" commit, and it actually fixes some problem with the current script:
```
+#. For the first occurrence,
 #. SCRIPT
-#: koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt:114
+#: koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt:139
 msgid "b- Large print"
 msgstr "b- Gros caractères"

-#. SCRIPT
-#: koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt:114
-msgid "b- Large print "
-msgstr "b- Gros caractères "
```
Is that enough?

OR we modify prettier's default behaviour: https://prettier.io/docs/en/options.html#html-whitespace-sensitivity

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-02-11 14:58:18 +01:00
..
LangInstaller.pm Bug 38085: Pick multiple_sortable options for translation 2024-10-25 16:41:39 +02:00
TmplTokenizer.pm Bug 38664: WIP trim msgid 2025-02-11 14:58:18 +01:00
VerboseWarnings.pm
…
po2json Bug 38164: Skip fuzzy translations 2024-10-18 17:44:17 +02:00
tmpl_process3.pl Bug 36516: Fix useless warning from translation script 2024-04-05 11:51:19 +02:00
translate
…
xgettext-installer Bug 31292: Untranslatable string in sample_notices.yaml 2022-08-08 13:10:56 -03:00
xgettext-pref Bug 38085: Pick multiple_sortable options for translation 2024-10-25 16:41:39 +02:00
xgettext-tt2
…
xgettext.pl Bug 38900: Provide info about the problematic strings 2025-01-30 18:55:20 +01:00