summaryrefslogtreecommitdiff
path: root/db/update.d/18_translations.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2012-12-12 22:11:46 +0100
committerPhilip Häusler <msquare@notrademark.de>2012-12-12 22:11:46 +0100
commit518f8d0d586280de05d5b21417a9d61a94dd1c01 (patch)
treef5dbbc05f7ad6490dfe9586a5f3d4304ab537204 /db/update.d/18_translations.php
parent572a986e480c5273742720f888010950a15be029 (diff)
parentdb95fe6485f13c0041bbafbb0004b171cd9122e7 (diff)
Merge branch 'master' of https://vcs.wybt.net/engelsystem/git
Diffstat (limited to 'db/update.d/18_translations.php')
-rw-r--r--db/update.d/18_translations.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/update.d/18_translations.php b/db/update.d/18_translations.php
new file mode 100644
index 00000000..995a2450
--- /dev/null
+++ b/db/update.d/18_translations.php
@@ -0,0 +1,17 @@
+<?php
+// one translation pair added last commit was faulty (contained a closing :
+// even though it should have been a .), we fix it now
+mysql_query("UPDATE `Sprache`
+SET `Text` = CONCAT(SUBSTR(`Text`, 1, CHAR_LENGTH(`Text`)-1), '.')
+WHERE `TextID` = 'inc_schicht_ical_text' AND `Text` LIKE '%:';");
+
+$applied = mysql_affected_rows() > 0;
+
+// more translations
+$res = mysql_query("INSERT IGNORE INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES
+('occupied', 'DE', 'belegt'),
+('occupied', 'EN', 'occupied'),
+('free', 'DE', 'frei'),
+('free', 'EN', 'free');");
+
+$applied |= mysql_affected_rows() > 0;