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

[多言語対応] カテゴリ名の翻訳を蓄積できるデータ構造にする #366

Closed
yuiseki opened this issue Feb 27, 2021 · 1 comment

Comments

@yuiseki
Copy link
Collaborator

yuiseki commented Feb 27, 2021

新しく地図を作るたびにカテゴリ名を多言語化するのは不毛

問題

  • assets/config/:mapid.json が増えるたびに、カテゴリ名の翻訳も移植する必要がある
  • 言語が増えるたびに各 assets/config/:mapid.json にカテゴリ名を追加拡張する必要がある
  • ある程度規格化しないと厳しいのではないかという気持ち

現状

  • assets/config/:mapid.json 毎に layer_settings という項目の中に、各言語のカテゴリ名がある
  "layer_settings":{
    "未分類": {
      "name": "未分類",
      "name_en": "Not categorized",
      "class": "layer_not_categorized",
      "color": "#C0C0C0",
      "bg_color": "#808080"
    },

理想

  • ./locales/ 以下にある翻訳ファイルに 言語毎にカテゴリ名がある
@takano32 takano32 changed the title 新しく地図を作るたびにカテゴリ名を多言語化するのは不毛なので、カテゴリ名の翻訳を蓄積できるようなデータ構造にしたい カテゴリ名の翻訳を蓄積できるようなデータ構造にする Feb 27, 2021
@takano32 takano32 changed the title カテゴリ名の翻訳を蓄積できるようなデータ構造にする [多言語対応] カテゴリ名の翻訳を蓄積できるようなデータ構造にする Feb 27, 2021
@takano32 takano32 changed the title [多言語対応] カテゴリ名の翻訳を蓄積できるようなデータ構造にする [多言語対応] カテゴリ名の翻訳を蓄積できるデータ構造にする Feb 27, 2021
@yuiseki
Copy link
Collaborator Author

yuiseki commented Mar 4, 2021

#369 で解決したのでClose

@yuiseki yuiseki closed this as completed Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant