Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
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
..
preferences Bug 18688: Warnings about UTF-8 charset when creating a new language 2019-12-23 12:02:15 +00:00
searchengine/elasticsearch
additional-fields.tt
admin-home.tt Bug 24057: Hea is not an acronym 2019-12-09 14:29:10 +00:00
adveditorshortcuts.tt
aqbudgetperiods.tt
aqbudgets.tt
aqcontract.tt
aqplan.tt
audio_alerts.tt
auth_subfields_structure.tt
auth_tag_structure.tt
authorised_values.tt Bug 23853: Typo in authorised_values.tt 2019-10-29 12:17:44 +00:00
authtypes.tt
biblio_framework.tt Bug 23398: Disable the XML import/export format for biblio framework 2019-11-08 12:51:16 +00:00
branch_transfer_limits.tt
branches.tt Bug 22661: TinyMCE/WYSIWYG editor doesn't translate 2019-11-03 07:39:54 +00:00
cash_registers.tt Bug 24056: Capitalization: Cash Register ID on cash register management page 2019-12-09 14:29:49 +00:00
categories.tt
checkmarc.tt
cities.tt
classsources.tt
clone-rules.tt
columns_settings.tt
currency.tt
debit_types.tt Bug 23049: (follow-up) Types should not be deletable 2019-10-24 17:25:03 +01:00
didyoumean.tt
edi_accounts.tt
edi_ean_accounts.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt
itemtypes.tt Bug 23704: Typo in itemtypes.tt 2019-10-17 14:51:58 +01:00
koha2marclinks.tt
library_groups.tt
localization.tt
marc_subfields_structure.tt
marctagstructure.tt
matching-rules.tt
oai_set_mappings.tt
oai_sets.tt
overdrive.tt
patron-attr-types.tt
preferences.tt
printers.tt
share_content.tt Bug 23075: Correct indendation 2019-11-06 17:05:34 +00:00
smart-rules.tt Bug 24026: (bug 22847 follow-up) Display correctly max[onsite]issueqty (not the propagated ones) 2019-11-13 13:49:16 +00:00
sms_providers.tt
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt Bug 21574: Local use system preferences page doesn't have the system preferences menu 2019-11-26 11:43:57 +00:00
transport-cost-matrix.tt
usage_statistics.tt Bug 23866: Prompt for HEA configuration 2019-10-31 11:35:52 +00:00
z3950servers.tt