문제

I'm planning to add a feature to my application where you can switch to the "Translation" locale and then see the names of the translation placeholders in the application instead of the actual translations. Another nice thing are "context descriptions" where you see explanations in plain english what the placeholder actually is for.

My question is: Are there any standardized language/locale codes (e.g. defined by ISO 639-3 or ISO 15897) for these use cases?

If not, I'll probably use a character sequence like qqq or xx_XX.

도움이 되었습니까?

해결책

ISO 639 defines three special codes and a code range for local use:

  • [mul]: multiple languages
  • [und]: undetermined
  • [zxx]: no linguistic content
  • [qaa][qtz]: reserved for local use (you could e.g. use [qtr] for "translate")
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 softwareengineering.stackexchange
scroll top