diff --git a/scm-webapp/src/main/webapp/resources/js/i18n/de.js b/scm-webapp/src/main/webapp/resources/js/i18n/de.js index 14549d5270..2ba3b700ed 100644 --- a/scm-webapp/src/main/webapp/resources/js/i18n/de.js +++ b/scm-webapp/src/main/webapp/resources/js/i18n/de.js @@ -44,6 +44,37 @@ if (Ext.form.VTypes){ } +// sonia.util.js + +if ( Ext.util.Format ){ + + Ext.apply(Ext.util.Format, { + timeAgoJustNow: 'Jetzt', + timeAgoOneMinuteAgo: 'Vor 1 Minute', + timeAgoOneMinuteFromNow: 'In 1 minute', + timeAgoMinutes: 'Minuten', + timeAgoOneHourAgo: 'Vor 1 Stunde', + timeAgoOneHourFromNow: 'In 1 Stunde', + timeAgoHours: 'Stunden', + timeAgoYesterday: 'Gestern', + timeAgoTomorrow: 'Morgen', + timeAgoDays: 'Tage', + timeAgoLastWeek: 'Letzte Woche', + timeAgoNextWeek: 'Nächste Woche', + timeAgoWeeks: 'Wochen', + timeAgoLastMonth: 'Letzten Monat', + timeAgoNextMonth: 'Nächsten Monat', + timeAgoMonths: 'Monate', + timeAgoLastYear: 'Letztes Jahr', + timeAgoNextYear: 'Nächstes Jahr', + timeAgoYears: 'Jahre', + timeAgoLastCentury: 'Letztes Jahrhundert', + timeAgoNextCentury: 'Nächstes Jahrhundert', + timeAgoCenturies: 'Jahrhunderte' + }); + +} + // sonia.login.js if (Sonia.login.Form){ @@ -463,4 +494,4 @@ if (Sonia.scm.Main){ logoutFailedText: 'Abmeldung Fehlgeschlagen!' }); -} \ No newline at end of file +} diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.util.js b/scm-webapp/src/main/webapp/resources/js/sonia.util.js index 70dc0475f4..796f7b8e8a 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.util.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.util.js @@ -50,7 +50,6 @@ return result; }, - // TODO i18n timeAgoJustNow: 'just now', timeAgoOneMinuteAgo: '1 minute ago', timeAgoOneMinuteFromNow: '1 minute from now', @@ -74,7 +73,6 @@ timeAgoNextCentury: 'next century', timeAgoCenturies: 'centuries', - timeAgo : function(value){ var time_formats = [