[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
Wed Jun 26 16:56:47 CEST 2013


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

--- Comment #6 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Other points from irc discussion:

Why not use SOURCE in the sql files to refer to english?
Or use a file like 'usesupdates'  in the lang folder to tell the installer to
run english first?

-- idea borrowed from Evergreen
CREATE FUNCTION i18n(str TEXT) RETURNS TEXT DETERMINISTIC
RETURN str;
-- then mark up insert statements with the strings we want to translate
INSERT INTO `userflags` VALUES(9,'editcatalogue',i18n('Edit Catalog (Modify
bibliographic/holdings data)'),0);
-- the i18n() bit is just syntactical sugar to make it easy to extract strings
for a POT file
-- then code (to be written) would create the language-specific inserts from
the PO files
INSERT INTO `userflags` VALUES(9,'editcatalogue','Katalogdaten ändern (Titel-
und Bestandsdaten ändern)',0);

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


More information about the Koha-bugs mailing list