DataTables / DataTables/Plugins

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

Open
#562 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Spanish es-CO localization entries and compare their record-count placeholders with the default English and German de-DE localizations. Correct the affected placeholders to use the documented START, END, and related elements, then verify that the Spanish localization renders record counts correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
internationalization, localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.