Our powerful JS Calendar component


Post by ksteffens »

Hello,
we use the calendar and translate it into German. Unfortunately, I can't find a way to translate the Agenda section in custom.local.de.js (Day, Week, Month, Year, Dekade). Have I overlooked something there?

Calendar Version 4.3.0

Greetings
Kay


Post by alex.l »

I see the problem. Actually they are not translated now, I've created a ticket to fix that: https://github.com/bryntum/support/issues/3551

For now the only way is to check EventList.js file and override getRangeMenu method with the next code

get listRangeMenu() {
        [...]
                items : {
                    listRangeDayItem : {
                        toggleGroup,
                        range   : 'day',
                        text    : me.L('L{EventEdit.Day}'), // <--- this is changed line
                        checked : unit === 'day'
                    },
                    listRangeWeekItem : {
                        toggleGroup,
                        range   : 'week',
                        text    : me.L('L{EventEdit.Week}'), // <--- this is changed line
                        checked : unit === 'week'
                    },

And add it to your localization file:

    EventEdit : {
        [...]
        'Day' : 'DayTranslated',
        'Week': 'WeekTranslated',
        [...]
    },

All the best,
Alex


Post by ksteffens »

Hello Alex,

thanks for the quick answer. I will install it for us and wait for the bugfix.

Greetings
Kay


Post Reply