more translations and fixes

This commit is contained in:
Jan-Philipp Litza 2012-12-12 00:58:44 +01:00
parent 910af3eaf7
commit 697b756c4e
2 changed files with 19 additions and 2 deletions

View File

@ -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;

View File

@ -273,11 +273,11 @@ function view_user_shifts() {
$filled = array ( $filled = array (
array ( array (
'id' => '1', 'id' => '1',
'name' => 'Volle' 'name' => Get_Text('occupied')
), ),
array ( array (
'id' => '0', 'id' => '0',
'name' => 'Freie' 'name' => Get_Text('free')
) )
); );