Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79545

Use Unicode CLDR for language strings that are the same in all software projects

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.3
    • Language
    • MOODLE_403_STABLE

      Consider using unicode CLDR (https://cldr.unicode.org/) as a source for all language specific settings and for translations that every project needs.

      It includes:

      • Locale-specific patterns for formatting and parsing: dates, times, timezones, numbers and currency values, measurement units,...
      • Translations of names: languages, scripts, countries and regions, currencies, eras, months, weekdays, day periods, time zones, cities, and time units, emoji characters and sequences (and search keywords),...
      • Language & script information: characters used; plural cases; gender of lists; capitalization; rules for sorting & searching; writing direction; transliteration rules; rules for spelling out numbers; rules for segmenting text into graphemes, words, and sentences; keyboard layouts...
      • Country information: language usage, currency information, calendar preference, week conventions,...
      • Validity: Definitions, aliases, and validity information for Unicode locales, languages, scripts, regions, and extensions,...

      This could replace the time interval strings entirely, and also files like timezones, countries and currencies, giving every language in Moodle a correct translation for those things, without duplicating work, from the start.
      This could also replace the dates being pulled out of the operating system, which is fine for languages having an operating system supported locale, but impossible to get proper dates for languages without.

      It would also help in discussions like https://moodle.org/mod/forum/discuss.php?d=450819

      I think the easiest way to implement this, is to let Amos download the CLDR files and generate strings out of it, to fill the language packs. The CLDR-files are presented as JSON-files.
      You can find them listed per type on https://github.com/unicode-org/cldr-json/tree/43.0.0/cldr-json. Every type contains subfolders for all languages.
      E.G.

            Unassigned Unassigned
            koen Koen Roggemans
            Votes:
            7 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.