Skip to content
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

[Internationalization] Some languages use the incorrect specifiers for replacing data (%d instead of _START_, etc) #562

Open
afestupinanp opened this issue Apr 9, 2023 · 4 comments

Comments

@afestupinanp
Copy link

afestupinanp commented Apr 9, 2023

I found out that some of the translations use the %d formats, instead of the START, END or other special elements that indicate number of records, total of records, etc. This is especially notable on the spanish translations.

This is how it looks using the default english localization. Notice it shows the correct amount of records in the datatable.

image

Now, if we load the spanish localization provided by DataTables (es-CO).

image

This is not the case for all the languages. For example, the German localization (de-DE)

image

In my case, for now, I'll have to implement my own localization, instead of the one provided by DataTables.

@afestupinanp
Copy link
Author

Seems to be related to #485, which is open since 2020 lol.

@AllanJard
Copy link
Contributor

The German one looks correct to me: https://datatables.net/plug-ins/i18n/German.html . I'm not sure what I'm missing?

@afestupinanp
Copy link
Author

afestupinanp commented Apr 10, 2023

Indeed it is correct, but what I'm referring to is that some of the languages, such as es-CO, use the %d specifiers.

@AllanJard
Copy link
Contributor

Thanks! And apologies I got confused.

I've corrected that one now. Looking through our database I think that's the only one? If you see some fixes that I haven't, then you can contribute changes here. I obviously don't know all of those languages, so I rely upon the community to provide contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants