Skip to content

Feature: Plural and singular translation without complex implementation #15323

Closed
@XTorLukas

Description

@XTorLukas

What feature or improvement do you think would benefit Files?

I've got an idea to enhance the efficiency of implementing translation for both plural and singular words in Files.

  • Personally, I've developed and utilize my own straightforward extension adhering to the i18n standard, compatible with crowdin. This eliminates the need for duplicate keys, streamlining the writing process.
  • I personally employ RESX with ResourceManager, and adapting its usage here would entail minor modifications.
  • Additionally, all spell checks operate through a RegEx pattern, fine-tuned to disregard most whitespace.
    There's also the option to incorporate prefixes and postfixes.
  • Nevertheless, experimentation should provide a good understanding of its functionality.

Sample of examples

Snímek obrazovky 2024-05-07 134849

Snímek obrazovky 2024-05-07 135052

Examples of display and use in crowdin

Snímek obrazovky 2024-05-07 135407

Snímek obrazovky 2024-05-07 135454

Test RegExr online work

Crowdin ICU message implementation (doc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions