Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
Bernardo Gonzalez Kriegel 6e3e8fef6a
Bug 18688: Warnings about UTF-8 charset when creating a new language
This patch removes some warnings when creating new languages,
those related with uft8 and two not related.

Tipical messages are:
>Warning: Can't determine original templates' charset, defaulting to UTF-8
>Warning: Charset Out defaulting to UTF-8
>...
>Removing empty file /../xx-YY-marc-NORMARC.po
>I UTF-8 O UTF-8 at /../kohaclone/misc/translator/tmpl_process3.pl line 365.
>Use of uninitialized value $pref_name in concatenation (.) or string at /.../misc/translator/LangInstaller.pm line 197.
>Created /../misc/translator/po/xx-YY-messages.po.

First four are 'normal' messages
The fifth one correspond to an unquoted preference string
The sixth one is a normal output message from msgint command
We will hide them unless verbose '-v' option is selected,
and fix the error.

To test:
1) Go to misc/translator
2) Create new language files
  $ perl translate create xx-YY
3) Check warnings and messages
4) Apply the patch
5) Remove created files, and create them again
   Ther must be no messages
6) Repeat 5) with verbose option '-v', check
   old messages

7) BONUS: without the patch update a language,
   for example de-DE:
   $ perl translate update de-DE
   Note (git status) a new file, po/de-DE-messages.po~
   This is a backup file from msgmerge command
   With the patch this backup is removed.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-12-23 12:02:15 +00:00
..
accounting.pref Bug 24053: Typo in FinePaymentAutoPopup description 2019-12-09 14:28:40 +00:00
acquisitions.pref
admin.pref Bug 23866: Prompt for HEA configuration 2019-10-31 11:35:52 +00:00
authorities.pref
cataloguing.pref
circulation.pref Bug 22381: Change wording on Calendar-related system 2019-12-16 21:06:22 +00:00
enhanced_content.pref Bug 18688: Warnings about UTF-8 charset when creating a new language 2019-12-23 12:02:15 +00:00
i18n_l10n.pref
local_use.pref
logs.pref
opac.pref Bug 23293: Add system preference 2019-11-07 13:13:17 +00:00
patrons.pref Bug 24184: Reword FallbackToSMSIfNoEmail syspref text 2019-12-13 15:31:07 +00:00
searching.pref Bug 20334: Improve syspref description and set more sensible defaults 2019-10-08 14:10:05 +01:00
serials.pref Bug 23416: Add PreserveSerialNotes system preference 2019-08-12 14:35:18 +01:00
staff_client.pref Bug 23315: (follow-up) Add configuration to enable CodeMirror 2019-07-19 09:33:37 +01:00
tools.pref Bug 22996: Add new preference BarcodeSeparators 2019-09-10 09:34:23 +01:00
web_services.pref Bug 22677: Include hint to OAI page path on OAI-PMH preference 2019-11-06 17:16:24 +00:00