Skip to content

Getstrings: mark a string for getstrings but don't actually translate #120

@MarcVanDaele90

Description

@MarcVanDaele90

I have a number of <name, image> pairs like "apple", "car", "bike", ... and a corresponding image.

I want to be able to use the 'name' in both

  • "How many %s do you see"
  • "Pick the first/second/middle/... %s"

When creating the objects, I would like to mark the name for translation (such that it gets picked up by getstrings) but don't do an actual translation. I would like to defer the actual translation to where I use the 'name', like in "How many %s do you see".i18n.fill([name.plural(100)] or something along those lines
(note: I assume that plural(100) is valid to use after 'how many' but that's another discussion I guess)

I currently use "apple".version since I noticed that getstrings scans for i18n, fill, plural but also for version and .allVersions.
But I'm sure I'm abusing getstrings here. So a dedicated markForI18n (next to the existing i18n) would be useful IMO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    third-party featureThis feature was contributed by someone else and depends on the contributor to respond/fix

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions