Skip to content

Commit

Permalink
Completes the i18n_helper.py tool
Browse files Browse the repository at this point in the history
Added 'fr' translation
Added *.json to .gitattributes

Signed-off-by: Tom Marble <[email protected]>
  • Loading branch information
tmarble committed Oct 27, 2022
1 parent 07cb239 commit 006a691
Show file tree
Hide file tree
Showing 18 changed files with 2,562 additions and 2,147 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ LICENSE text eol=lf

# System description files
*.svd eol=lf

# JSON
*.json eol=lf
69 changes: 37 additions & 32 deletions apps/ball/locales/i18n.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
{
"ballapp.notification_a": {
"en": "Bouncing ball ⛹ demo.\nInterrupted with key hit: ",
"ja": "弾むボール ⛹ デモ。キーヒットで中断: ",
"zh": "弹跳球演示.⛹\n因击键而中断:",
"en-tts": "Bouncing ball demo. Interrupted with key hit:"
},
"ballapp.notification_b": {
"en": "Press any key to continue.",
"ja": "続行するには何かキーを押してください。",
"zh": "按任意键继续",
"en-tts": "Press any key to continue."
},
"ballapp.mode_prompt": {
"en": "Pick a mode of operation:",
"ja": "動作モードを選択してください:",
"zh": "选择一种操作模式:",
"en-tts": "Pick a mode of operation:"
},
"ballapp.random": {
"en": "Random",
"ja": "ランダム",
"zh": "随机的",
"en-tts": "Random"
},
"ballapp.tilt": {
"en": "Tilt",
"ja": "傾ける",
"zh": "加速度计倾斜",
"en-tts": "Tilt"
}
}
{
"ballapp.mode_prompt": {
"en": "Pick a mode of operation:",
"en-tts": "Pick a mode of operation:",
"fr": "Choisir le mode de fonctionnement",
"ja": "動作モードを選択してください:",
"zh": "选择一种操作模式:"
},
"ballapp.notification_a": {
"en": "Bouncing ball ⛹ demo.\nInterrupted with key hit: ",
"en-tts": "Bouncing ball demo. Interrupted with key hit:",
"fr": "Démo de balle simple ⛹.\nInterrompu par une touche: ",
"ja": "弾むボール ⛹ デモ。キーヒットで中断: ",
"zh": "弹跳球演示.⛹\n因击键而中断:"
},
"ballapp.notification_b": {
"en": "Press any key to continue.",
"en-tts": "Press any key to continue.",
"fr": "Appuyez sur une touche pour continuer.",
"ja": "続行するには何かキーを押してください。",
"zh": "按任意键继续"
},
"ballapp.random": {
"en": "Random",
"en-tts": "Random",
"fr": "Aléatoire",
"ja": "ランダム",
"zh": "随机的"
},
"ballapp.tilt": {
"en": "Tilt",
"en-tts": "Tilt",
"fr": "Inclinero",
"ja": "傾ける",
"zh": "加速度计倾斜"
}
}
17 changes: 9 additions & 8 deletions apps/hello/locales/i18n.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"helloworld.hello": {
"en": "Hello World!",
"ja": "Hello World!",
"zh": "大家好!",
"en-tts": "Hello World!"
}
}
{
"helloworld.hello": {
"en": "Hello World!",
"en-tts": "Hello World!",
"fr": "Bonjour le monde!",
"ja": "Hello World!",
"zh": "大家好!"
}
}
121 changes: 63 additions & 58 deletions apps/manifest.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,63 @@
{
"ball": {
"context_name": "ball demo app",
"menu_name": {
"appmenu.ball": {
"en": "Simple ball demo",
"ja": "シンプルなボールのデモ",
"zh": "简单的球演示",
"en-tts": "Simple ball demo"
}
}
},
"hello": {
"context_name": "Hello World",
"menu_name": {
"appmenu.hello": {
"en": "Hello World!",
"ja": "Hello World!",
"zh": "大家好!",
"en-tts": "Hello World!"
}
}
},
"vault": {
"context_name": "Key Vault",
"menu_name": {
"appmenu.vault": {
"en": "Key Vault",
"ja": "キーボールト",
"zh": "密钥库",
"en-tts": "Key Vault"
}
},
"submenu": 1
},
"repl": {
"context_name": "repl demo app",
"menu_name": {
"appmenu.repl": {
"en": "Basic REPL demo",
"ja": "シンプルなREPLデモ",
"zh": "基本 REPL 演示",
"en-tts": "Basic REPL demo"
}
}
},
"mtxcli": {
"context_name": "Matrix chat",
"menu_name": {
"appmenu.mtxcli": {
"en": "Matrix chat",
"ja": "シンプルなMATRIXデモ",
"zh": "基本 MATRIX 演示",
"en-tts": "MATRIX demo"
}
}
}
}
{
"ball": {
"context_name": "ball demo app",
"menu_name": {
"appmenu.ball": {
"en": "Simple ball demo",
"en-tts": "Simple ball demo",
"fr": "Démonstration de balle simple",
"ja": "シンプルなボールのデモ",
"zh": "简单的球演示"
}
}
},
"hello": {
"context_name": "Hello World",
"menu_name": {
"appmenu.hello": {
"en": "Hello World!",
"en-tts": "Hello World!",
"fr": "Bonjour le monde!",
"ja": "Hello World!",
"zh": "大家好!"
}
}
},
"mtxcli": {
"context_name": "Matrix chat",
"menu_name": {
"appmenu.mtxcli": {
"en": "Matrix chat",
"en-tts": "MATRIX demo",
"fr": "Matrix messagerie",
"ja": "シンプルなMATRIXデモ",
"zh": "基本 MATRIX 演示"
}
}
},
"repl": {
"context_name": "repl demo app",
"menu_name": {
"appmenu.repl": {
"en": "Basic REPL demo",
"en-tts": "Basic REPL demo",
"fr": "Démonstration REPL",
"ja": "シンプルなREPLデモ",
"zh": "基本 REPL 演示"
}
}
},
"vault": {
"context_name": "Key Vault",
"menu_name": {
"appmenu.vault": {
"en": "Key Vault",
"en-tts": "Key Vault",
"fr": "Coffre de clés",
"ja": "キーボールト",
"zh": "密钥库"
}
},
"submenu": 1
}
}
Loading

0 comments on commit 006a691

Please sign in to comment.