Loading...
 
Skip to main content

Features / Usability


Calendar translate

Hello everyone,

I notice that one sections on Tiki calendar is not fully translated. Specifically, the In Which file I can find for translate this section? I've been looking but can't find it.

The section is: today - year - semester - quarter - month - week - day.
Juste look on picture

I would like to translate it into French.

In general for Tiki translations, please see: https://i18n.tiki.org/Question

Translation strings are managed here: https://gitlab.com/tikiwiki/tiki/-/tree/master/lang/frQuestion

FYI, Between Tiki28 and Tiki29, https://github.com/vkurko/calendarQuestion replaces https://github.com/fullcalendar/fullcalendarQuestion as per https://dev.tiki.org/Calendar-optionsQuestion
https://doc.tiki.org/Tiki29#CalendarQuestion
https://gitlab.com/tikiwiki/tiki/-/merge_requests/6691Question

In both cases, these are JS front-ends so it's possible the translations are done via these 3rd party libs, so it's not something to be added to Tiki.

I hope this helps

@Bruno Kambere Any thoughts?

Marc Laporte wrote:

In general for Tiki translations, please see: https://i18n.tiki.org/Question

Translation strings are managed here: https://gitlab.com/tikiwiki/tiki/-/tree/master/lang/frQuestion

FYI, Between Tiki28 and Tiki29, https://github.com/vkurko/calendarQuestion replaces https://github.com/fullcalendar/fullcalendarQuestion as per https://dev.tiki.org/Calendar-optionsQuestion
https://doc.tiki.org/Tiki29#CalendarQuestion
https://gitlab.com/tikiwiki/tiki/-/merge_requests/6691Question

In both cases, these are JS front-ends so it's possible the translations are done via these 3rd party libs, so it's not something to be added to Tiki.

I hope this helps

@Bruno Kambere Any thoughts?


I had a quick look at how the new calendar library https://github.com/vkurko/calendarQuestion is integrated in Tiki.

The good news is that it allows redefining the button labels (today, month, week, day, etc.).
In Tiki, these buttons are already overridden in the codebase and passed through the translation system, so they are translatable. (check hereQuestion)

I'll prepare a small MR to ensure they are properly translated into French.

On a related note, it would be nice if Tiki's Interactive TranslationQuestion mechanism could also detect strings coming from JavaScript files. As far as I know, it currently extracts strings only from PHP and tpl files. There is already a task discussing extending it to include JavaScript strings, and this case is a good example of why that would be useful.

related: https://dev.tiki.org/item7511-Create-a-tool-that-extracts-all-text-to-be-displayedQuestion

Thanks!

Bruno Kambere wrote:

I had a quick look at how the new calendar library https://github.com/vkurko/calendarQuestion is integrated in Tiki.

The good news is that it allows redefining the button labels (today, month, week, day, etc.).
In Tiki, these buttons are already overridden in the codebase and passed through the translation system, so they are translatable. (check hereQuestion)

I'll prepare a small MR to ensure they are properly translated into French.

On a related note, it would be nice if Tiki's Interactive TranslationQuestion mechanism could also detect strings coming from JavaScript files. As far as I know, it currently extracts strings only from PHP and tpl files. There is already a task discussing extending it to include JavaScript strings, and this case is a good example of why that would be useful.

related: https://dev.tiki.org/item7511-Create-a-tool-that-extracts-all-text-to-be-displayedQuestion

Thanks!


Hello Tiki friends,

Thank you very much for your feedback. So if I understand correctly, this specific translation is not currently supported on JavaScript file by the normal path.


In that case, I will wait for developments in this area in future versions of Tiki.


Thank you very much.

Tiki 27.5

francis wrote:

Hello Tiki friends,

Thank you very much for your feedback. So if I understand correctly, this specific translation is not currently supported on JavaScript file by the normal path.


In that case, I will wait for developments in this area in future versions of Tiki.


Thank you very much.

Tiki 27.5


Hello @francis

Just to let you know, I've created a Merge RequestQuestion to add the missing translations. So the French calendar labels should be available in Tiki 30 once it's released.

Regarding your question: the calendar is translatable, but since those labels are defined in a JavaScript file, they need to be added manually via a Merge Request (as I've just done).

If the strings were in PHP or tpl files, we would have two options:

- either add them manually via a MR,
- or translate them directly through the interactive translation system on https://i18n.tiki.orgQuestion

Hope this clarifies it a bit 😊