Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify language lists semantics #1010

Closed
tzdybal opened this issue Jun 5, 2017 · 2 comments
Closed

Clarify language lists semantics #1010

tzdybal opened this issue Jun 5, 2017 · 2 comments
Assignees
Milestone

Comments

@tzdybal
Copy link
Contributor

tzdybal commented Jun 5, 2017

Language lists can be a counter intuitive/confusing, because of the "fallback" logic employed when given language(s) are absent. For example there is no way to select a value only in selected language(s), without fallback.

Proposed change is to add . as a special value in language list, denoting look for default value (no language tag) and then for value in any language.

New rules will be following:

  • name => Look for default, then return nothing.
  • name@. => Look for default, then any language.
  • name@en => Look for en, then return nothing.
  • name@en:. => Look for en, then default, then any language.
  • name@en:pl => Look for en, then pl, then return nothing.
  • name@en:pl:. => Look for en, then pl, then default, then any language.
@MichaelJCompton
Copy link
Contributor

@tzdybal this makes lots of sense. Fixes the problems I was having in #994.

I'm wondering though if the semantics for name@en should just be to check in en - because there is no way in the proposed semantics to check if there is a string tagged with en.

@tzdybal
Copy link
Contributor Author

tzdybal commented Jun 6, 2017

@MichaelJCompton thanks for suggestion. Comment updated.

@tzdybal tzdybal closed this as completed in e7d5de2 Jun 9, 2017
arijitAD pushed a commit that referenced this issue Oct 15, 2020
Created command build-spec that outputs genesis JSON with human-readable keys or in raw format which is used to initialize node databases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants