-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translations #100
Comments
Hello @Parthian As far as i see, all strings in Slick reporting are marked as translatable, For the date thing, can you elaborate a bit ? Thanks |
Yep Hello again :) So, for this For the translation: def dummy():
x = _("Results")
x = _("From Date")
x = _("To Date")
# ... Now those strings wil be added to your po files -> translated -> be visible on your website. For the "Showing 1 to 4 of 4 entries" part, this is with datatables.net check https://datatables.net/manual/i18n Let me know how it goes ;) |
Hi @RamezIssac
Enjoying Slick Reporting. Can you help with Translations?
I have English as default and Spanish as option. Some of the labels/buttons translate automatically with the built in django translations.
E.g. Filters becomes Filtros and the Filter button becomes Filtro.
But things like the following don't translate:
Results, Search, Next, Previous, Show XX Entries, Export to CSV, From Date, To Date. There may be others in different types of reports.
My own translated text from models and the normal django translation process work fine.
Hopefully, these just need the _('Results) type approach? Then Django will work its magic.
Also the To Date when in Spanish mode (probably not language specific, just another language) the date format changes.
2024-01-17 16:05:18 'From date' stays like this
17/01/2024 16:05:18 'To date' changes format. Note, this seems a friendlier format. But does open up the possibility of confusion with the crazy USA date formt month/day/year (why did they do that...).
Thanks,
Stuart
The text was updated successfully, but these errors were encountered: