EDCD / EDCD/EDMarketConnector

Allow for disambiguating same-word/phrase, but different context

Open
#1,154 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Translations
Dominant language
Python
Stars
1.3k
Forks
182
Avg merge
1m
Merged PRs (30d)
1

Description

It is possible that we might have a word, or short phrase, that in English can be re-used in multiple contexts, but in other languages requires a different translation for each context.

The current translations framework only allows, per language, for one translation per 'key' string.

Discuss ideas for allowing to disambiguate, e.g. an optional second parameter to the translation function that prepends a string for the look up.

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 reading the current translations framework and the translation function referenced in the issue. Define how context-specific keys or lookup parameters should work across languages, then verify that the same English word or phrase can receive distinct translations without breaking existing lookups.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
internationalization, localization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.