improve i18n for sonia.util.js

This commit is contained in:
Sebastian Sdorra
2011-04-29 18:20:53 +02:00
parent c64d4b9a0f
commit c00b339db3
2 changed files with 32 additions and 3 deletions

View File

@@ -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!'
});
}
}

View File

@@ -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 = [