[Koha-bugs] [Bug 10509] Using updates instead of inserts in translated mysql files

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 27 15:42:11 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10509

--- Comment #10 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Just thinking about this, we could do something else too :)
What do you think about running the English file with i18n calls while defining
i18n for the German translation in this case with something as:

DELIMITER //
DROP FUNCTION IF EXISTS i18n//
CREATE FUNCTION i18n (d text) RETURNS text DETERMINISTIC
BEGIN
RETURN CASE d
WHEN 'Remaining circulation permissions'
'Übrige Ausleihberechtigungen'
WHEN 'Override blocked renewals'
'Gesperrte Verlängerungen überschreiben'
WHEN 'Execute overdue items report'
'Überfälligkeiten-Report ausführen'
[ etc. etc.]
WHEN 'Configure plugins'
'Plugins konfigurieren'
ELSE d
END;
END //

This file could also be very easily created from a POD file..

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list