# HG changeset patch # User Dustin Demuth # Date 1427195739 -3600 # Node ID 31fc4f94f98fa82a4721e7860506721b33ce183a # Parent 60a3e9809ea4a7404a8d6dc01e9442502b77d0a4# Parent a24db43b13b5954935dd9fbdf6ab6e9dcf2de6cb merged diff -r a24db43b13b5 -r 31fc4f94f98f app.js --- a/app.js Tue Mar 24 10:44:36 2015 +0100 +++ b/app.js Tue Mar 24 12:15:39 2015 +0100 @@ -25,6 +25,8 @@ 'Lada.override.Table', 'Lada.override.RestProxy', 'Lada.override.RowEditor', + 'Lada.override.i18n.DE', + 'Lada.override.JSON', 'Ext.i18n.Bundle', 'Ext.layout.container.Column', 'Lada.store.Datenbasis', diff -r a24db43b13b5 -r 31fc4f94f98f app/override/JSON.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/override/JSON.js Tue Mar 24 12:15:39 2015 +0100 @@ -0,0 +1,18 @@ +/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz + * Software engineering by Intevation GmbH + * + * This file is Free Software under the GNU GPL (v>=3) + * and comes with ABSOLUTELY NO WARRANTY! Check out + * the documentation coming with IMIS-Labordaten-Application for details. + */ + + +// The Date returned by EXT-JSON serializer has to contain the timezone identifier + +Ext.define("Lada.override.JSON", { + override: 'Ext.JSON', + encodeDate: function(o){ + return '"' + Ext.Date.format(o, 'c') + '"'; + } +}); + diff -r a24db43b13b5 -r 31fc4f94f98f app/override/i18n/DE.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/override/i18n/DE.js Tue Mar 24 12:15:39 2015 +0100 @@ -0,0 +1,19 @@ +/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz + * Software engineering by Intevation GmbH + * + * This file is Free Software under the GNU GPL (v>=3) + * and comes with ABSOLUTELY NO WARRANTY! Check out + * the documentation coming with IMIS-Labordaten-Application for details. + */ + + +// Require all Libraries from de/ + +Ext.define("Lada.override.i18n.DE", { + requires:[ + 'Lada.override.i18n.de.toolbar.Paging', + 'Lada.override.i18n.de.picker.Date', + 'Lada.override.i18n.de.RowEditor' + ] +}); + diff -r a24db43b13b5 -r 31fc4f94f98f app/override/i18n/de/RowEditor.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/override/i18n/de/RowEditor.js Tue Mar 24 12:15:39 2015 +0100 @@ -0,0 +1,17 @@ +/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz + * Software engineering by Intevation GmbH + * + * This file is Free Software under the GNU GPL (v>=3) + * and comes with ABSOLUTELY NO WARRANTY! Check out + * the documentation coming with IMIS-Labordaten-Application for details. + */ + +// This file adds or corrects translations. + +Ext.define('Lada.override.i18n.de.RowEditor', { + override: 'Ext.grid.RowEditor', + saveBtnText: 'Speichern', + cancelBtnText: 'Abbrechen', + errorsText: 'Fehler', + dirtyText: 'Sie müssen Ihre Änderungen Speichern oder durch Abbrechen verwerfen' +}); diff -r a24db43b13b5 -r 31fc4f94f98f app/override/i18n/de/picker/Date.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/override/i18n/de/picker/Date.js Tue Mar 24 12:15:39 2015 +0100 @@ -0,0 +1,25 @@ +/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz + * Software engineering by Intevation GmbH + * + * This file is Free Software under the GNU GPL (v>=3) + * and comes with ABSOLUTELY NO WARRANTY! Check out + * the documentation coming with IMIS-Labordaten-Application for details. + */ + +// This file adds or corrects translations. + +Ext.define("Lada.override.i18n.de.picker.Date", { + override: "Ext.picker.Date", + todayText: "Heute", + minText: "Dieses Datum liegt vor dem erstmöglichen Datum", // von -> vor + maxText: "Dieses Datum liegt nach dem letztmöglichen Datum", + disabledDaysText: "", + disabledDatesText: "", + nextText: "Nächster Monat (Strg/Control + Rechts)", + prevText: "Vorheriger Monat (Strg/Control + Links)", + monthYearText: "Monat auswählen (Strg/Control + Hoch/Runter, um ein Jahr auszuwählen)", + todayTip: "Heute ({0}) (Leertaste)", + format: "d.m.Y", + startDay: 1 +}); + diff -r a24db43b13b5 -r 31fc4f94f98f app/override/i18n/de/toolbar/Paging.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/override/i18n/de/toolbar/Paging.js Tue Mar 24 12:15:39 2015 +0100 @@ -0,0 +1,22 @@ +/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz + * Software engineering by Intevation GmbH + * + * This file is Free Software under the GNU GPL (v>=3) + * and comes with ABSOLUTELY NO WARRANTY! Check out + * the documentation coming with IMIS-Labordaten-Application for details. + */ + +// This file adds or corrects translations. + +Ext.define("Lada.override.i18n.de.toolbar.Paging", { + override: "Ext.toolbar.Paging", + beforePageText: "Seite", + afterPageText: "von {0}", + firstText: "Erste Seite", + prevText: "vorherige Seite", + nextText: "nächste Seite", + lastText: "letzte Seite", + refreshText: "Aktualisieren", + displayMsg: "Zeige Eintrag {0} - {1} von {2}", // Anzeige -> Zeige + emptyMsg: "Keine Daten vorhanden" +}); diff -r a24db43b13b5 -r 31fc4f94f98f index.html --- a/index.html Tue Mar 24 10:44:36 2015 +0100 +++ b/index.html Tue Mar 24 12:15:39 2015 +0100 @@ -21,7 +21,6 @@ - diff -r a24db43b13b5 -r 31fc4f94f98f resources/lib/translations_de.js --- a/resources/lib/translations_de.js Tue Mar 24 10:44:36 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ -/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz - * Software engineering by Intevation GmbH - * - * This file is Free Software under the GNU GPL (v>=3) - * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. - */ - -/* - * More Translations for extJS. - * Not everything is covered in the original translation. - * This file can be used to extend it. - */ - -Ext.onReady(function() { - if (Ext.grid.RowEditor) { - Ext.grid.RowEditor.prototype.saveBtnText = "Speichern"; - Ext.grid.RowEditor.prototype.cancelBtnText = "Abbrechen"; - Ext.grid.RowEditor.prototype.errorsText = "Fehler"; - Ext.grid.RowEditor.prototype.dirtyText = "Sie müssen Ihre Änderungen Speichern oder durch Abbrechen verwerfen"; - } - -// Ext has to send timezone-information when saving date-objects -// If not: Datetime-information will be falsified when a date-object is saved -// i.e -// originaltime 8:00 (save) -> time+offset 9:00 (save) -> 10:00 -> etc... -Ext.JSON.encodeDate = function(o) -{ - return '"' + Ext.Date.format(o, 'c') + '"'; -} - - -}); - - -//Übersetzungsfehler -Ext.define("Ext.locale.de.toolbar.Paging", { - override: "Ext.PagingToolbar", - beforePageText: "Seite", - afterPageText: "von {0}", - firstText: "Erste Seite", - prevText: "vorherige Seite", - nextText: "nächste Seite", - lastText: "letzte Seite", - refreshText: "Aktualisieren", - displayMsg: "Zeige Eintrag {0} - {1} von {2}", // Anzeige -> Zeige - emptyMsg: "Keine Daten vorhanden" -}); - -Ext.define("Ext.locale.de.picker.Date", { - override: "Ext.picker.Date", - todayText: "Heute", - minText: "Dieses Datum liegt vor dem erstmöglichen Datum", // von -> vor - maxText: "Dieses Datum liegt nach dem letztmöglichen Datum", - disabledDaysText: "", - disabledDatesText: "", - nextText: "Nächster Monat (Strg/Control + Rechts)", - prevText: "Vorheriger Monat (Strg/Control + Links)", - monthYearText: "Monat auswählen (Strg/Control + Hoch/Runter, um ein Jahr auszuwählen)", - todayTip: "Heute ({0}) (Leertaste)", - format: "d.m.Y", - startDay: 1 -}); -