]> git.koha-community.org Git - koha.git/commit
Bug 24973: Load custom localization file
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Fri, 15 May 2020 21:11:16 +0000 (18:11 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 10:10:53 +0000 (12:10 +0200)
commit74a13ab801a4004ae485bc1909461ebd7b32f0e5
tree2c767d9b442013516deec62a99d10b47b850b3bd
parent5b61408eb736d8a795eaeb9f7b44583d79e8b66a
Bug 24973: Load custom localization file

It adds a new localization directory that could
host a custom SQL file for each language,
xx-YY/custom.sql

This will be the last file to be loaded at
install time, it can be used to set any difference
from default values.

It can't be deselected at install time.

Moved corresponding files for de-DE, it-IT,
nb-NO and completed es-ES

To test:
1) Apply the patch
2) Install es-ES/de-DE/it-IT/nb-NO translation (any lang)
   ( cd misc/translation; ./translate install es-ES )
3) Do a clean install using es-ES
4) After all files have been loaded check:
    * A new section labeled "Localization data added"
      with one file, custom.sql
    * Inspect the value of FrameworksLoaded syspref,
      last entry must be custom.sql
5) Remove/rename the file or localization dir and
   repeat 3/4, install must proceed normally

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
14 files changed:
C4/Installer.pm
installer/data/mysql/de-DE/mandatory/system_preferences.sql [deleted file]
installer/data/mysql/de-DE/mandatory/system_preferences.txt [deleted file]
installer/data/mysql/it-IT/necessari/system_preferences.sql [deleted file]
installer/data/mysql/localization/de-DE/custom.sql [new file with mode: 0644]
installer/data/mysql/localization/de-DE/custom.txt [new file with mode: 0644]
installer/data/mysql/localization/es-ES/custom.sql [new file with mode: 0644]
installer/data/mysql/localization/it-IT/custom.sql [new file with mode: 0644]
installer/data/mysql/localization/nb-NO/custom.sql [new file with mode: 0644]
installer/data/mysql/localization/nb-NO/custom.txt [new file with mode: 0644]
installer/data/mysql/nb-NO/1-Obligatorisk/system_preferences.sql [deleted file]
installer/data/mysql/nb-NO/1-Obligatorisk/system_preferences.txt [deleted file]
installer/install.pl
koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt