Our powerful JS Calendar component


Post by hoeck.lars »

It seems there are some german translation in the tbar tooltips missing or are wrong.

Is -> should be
Vorherige jahr -> Vorheriges Jahr
Nächste jahr -> Nächstes Jahr
Vorherige monat -> Vorheriger Monat
Nächste monat -> Nächster Monat
Vorherige week -> Vorherige Woche
Nächste week -> Nächste Woche
Vorherige day -> Vorheriger Tag
Nächste day -> Nächster Tag

would have added more picture, but only 3 files permitted.

Please fix and if possible provide a easy solution to override these until the fix is published.

Attachments
Bildschirmfoto 2024-07-29 um 13.22.23.png
Bildschirmfoto 2024-07-29 um 13.22.23.png (47.36 KiB) Viewed 469 times
Bildschirmfoto 2024-07-29 um 13.21.42.png
Bildschirmfoto 2024-07-29 um 13.21.42.png (46.88 KiB) Viewed 469 times
Bildschirmfoto 2024-07-29 um 13.21.30.png
Bildschirmfoto 2024-07-29 um 13.21.30.png (49.17 KiB) Viewed 469 times

Post by nickolay »

Thank you for the report. Ticket created to track the progress on this issue: https://github.com/bryntum/support/issues/9687

Unfortunately its a bug in the code and not just in the locale, so no easy workaround available.


Post by hoeck.lars »

Thanks. Do you have a estimate time-until-fixed for this ticket? Days? Weeks? Month? Multiple Month? Years?


Post by mats »

We'll try to have this corrected in the next patch release - zwei-drei wochen.


Post by hoeck.lars »

Sounds great, thanks


Post by a_berrocal »

Thank you for correcting the German translations, they look fine so far. In our case, we have created a user-defined button for displaying only three days of the calendar, for which there is of course no mode or german translation. Therefore, we wonder if there is a prefix that could be used for custom modes or if some kind of prefix could be implemented by you


Post by Animal »

You can use text : me.L('L{ClassName.key}') where ClassName is the name of a class definition in your locale file, and key is a property in that:

Screenshot 2024-08-06 at 15.28.13.png
Screenshot 2024-08-06 at 15.28.13.png (576.76 KiB) Viewed 387 times

https://bryntum.com/products/calendar/docs/guide/Calendar/customization/localization


Post by Animal »

Of course there is already an n days translation. It's used by EventList

In the Swedish locale:

Screenshot 2024-08-06 at 15.35.42.png
Screenshot 2024-08-06 at 15.35.42.png (310.72 KiB) Viewed 385 times

Post by hoeck.lars »

We have the problem with our custom mode. The next and previous are undefined

Bildschirmfoto 2024-08-12 um 12.12.52.png
Bildschirmfoto 2024-08-12 um 12.12.52.png (55.8 KiB) Viewed 340 times

The problem seems to be that in the de.js the custom mode is not defined(obviously).

Bildschirmfoto 2024-08-12 um 12.13.53.png
Bildschirmfoto 2024-08-12 um 12.13.53.png (177.53 KiB) Viewed 340 times

I tried to add our mode to Ae and ke this way https://bryntum.com/products/calendar/docs/guide/Calendar/customization/localization#change-single-entries without success.

I thought of changeging it via https://bryntum.com/products/calendar/docs/guide/Calendar/customization/localization#using-the-l-function but then i would override the default mode translations.

I'd would argue this is a bug, because custom modes are supported and shouldn't need a translation override for all translations.

Thanks for your help


Post by Animal »

If the custom mode is a subclass of DayView, it should look at the localisation properties in the DayView block.

As far as I know, the localisation lookup checks using the defined $name of the class, and then tries all superclasses.


Post Reply