[Koha-bugs] [Bug 10041] Provide a koha-translate script to aid package users on installing translations
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Apr 14 16:52:56 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10041
Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bgkriegel at gmail.com
--- Comment #2 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Testing.
1) -i|u|r without lang code dies with (shift: can't shift that many)
perhaps check if langcode and die with a graceful message.
Unless you try to mimic what translate script do without lang code,
install/update/remove all langs.
2) List all. There are 2 files with "opac" in name (prog|ccsr),
so you report twice.
Perhaps using $(ls $PO_DIR *-i-opac-t-prog-v-3006000.po)?
3) Install. Could test if all lang files are present? (staf|opac|ccsr|pref)
only to report any missing, and then proceed (translate script will
complain anyway).
4) Remove ok. Sysprefs language and opaclanguages could reference
a removed lang but I think it's harmless.
5) Update. The message if you try to install again a lang is misleading.
update option in 'misc/translator/translate' script is not to
update translated files but to update translation files (PO).
So, if your update is to re-install, do so (install) silently.
Or change the message to reflect what you are really doing
and allow a re-install.
Or remove update option.
No koha-qa errors.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list