Skip to content

Commit 006a691

Browse files
committed
Completes the i18n_helper.py tool
Added 'fr' translation Added *.json to .gitattributes Signed-off-by: Tom Marble <[email protected]>
1 parent 07cb239 commit 006a691

File tree

18 files changed

+2562
-2147
lines changed

18 files changed

+2562
-2147
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ LICENSE text eol=lf
3636

3737
# System description files
3838
*.svd eol=lf
39+
40+
# JSON
41+
*.json eol=lf

apps/ball/locales/i18n.json

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
1-
{
2-
"ballapp.notification_a": {
3-
"en": "Bouncing ball ⛹ demo.\nInterrupted with key hit: ",
4-
"ja": "弾むボール ⛹ デモ。キーヒットで中断: ",
5-
"zh": "弹跳球演示.⛹\n因击键而中断:",
6-
"en-tts": "Bouncing ball demo. Interrupted with key hit:"
7-
},
8-
"ballapp.notification_b": {
9-
"en": "Press any key to continue.",
10-
"ja": "続行するには何かキーを押してください。",
11-
"zh": "按任意键继续",
12-
"en-tts": "Press any key to continue."
13-
},
14-
"ballapp.mode_prompt": {
15-
"en": "Pick a mode of operation:",
16-
"ja": "動作モードを選択してください:",
17-
"zh": "选择一种操作模式:",
18-
"en-tts": "Pick a mode of operation:"
19-
},
20-
"ballapp.random": {
21-
"en": "Random",
22-
"ja": "ランダム",
23-
"zh": "随机的",
24-
"en-tts": "Random"
25-
},
26-
"ballapp.tilt": {
27-
"en": "Tilt",
28-
"ja": "傾ける",
29-
"zh": "加速度计倾斜",
30-
"en-tts": "Tilt"
31-
}
32-
}
1+
{
2+
"ballapp.mode_prompt": {
3+
"en": "Pick a mode of operation:",
4+
"en-tts": "Pick a mode of operation:",
5+
"fr": "Choisir le mode de fonctionnement",
6+
"ja": "動作モードを選択してください:",
7+
"zh": "选择一种操作模式:"
8+
},
9+
"ballapp.notification_a": {
10+
"en": "Bouncing ball ⛹ demo.\nInterrupted with key hit: ",
11+
"en-tts": "Bouncing ball demo. Interrupted with key hit:",
12+
"fr": "Démo de balle simple ⛹.\nInterrompu par une touche: ",
13+
"ja": "弾むボール ⛹ デモ。キーヒットで中断: ",
14+
"zh": "弹跳球演示.⛹\n因击键而中断:"
15+
},
16+
"ballapp.notification_b": {
17+
"en": "Press any key to continue.",
18+
"en-tts": "Press any key to continue.",
19+
"fr": "Appuyez sur une touche pour continuer.",
20+
"ja": "続行するには何かキーを押してください。",
21+
"zh": "按任意键继续"
22+
},
23+
"ballapp.random": {
24+
"en": "Random",
25+
"en-tts": "Random",
26+
"fr": "Aléatoire",
27+
"ja": "ランダム",
28+
"zh": "随机的"
29+
},
30+
"ballapp.tilt": {
31+
"en": "Tilt",
32+
"en-tts": "Tilt",
33+
"fr": "Inclinero",
34+
"ja": "傾ける",
35+
"zh": "加速度计倾斜"
36+
}
37+
}

apps/hello/locales/i18n.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
{
2-
"helloworld.hello": {
3-
"en": "Hello World!",
4-
"ja": "Hello World!",
5-
"zh": "大家好!",
6-
"en-tts": "Hello World!"
7-
}
8-
}
1+
{
2+
"helloworld.hello": {
3+
"en": "Hello World!",
4+
"en-tts": "Hello World!",
5+
"fr": "Bonjour le monde!",
6+
"ja": "Hello World!",
7+
"zh": "大家好!"
8+
}
9+
}

apps/manifest.json

Lines changed: 63 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,63 @@
1-
{
2-
"ball": {
3-
"context_name": "ball demo app",
4-
"menu_name": {
5-
"appmenu.ball": {
6-
"en": "Simple ball demo",
7-
"ja": "シンプルなボールのデモ",
8-
"zh": "简单的球演示",
9-
"en-tts": "Simple ball demo"
10-
}
11-
}
12-
},
13-
"hello": {
14-
"context_name": "Hello World",
15-
"menu_name": {
16-
"appmenu.hello": {
17-
"en": "Hello World!",
18-
"ja": "Hello World!",
19-
"zh": "大家好!",
20-
"en-tts": "Hello World!"
21-
}
22-
}
23-
},
24-
"vault": {
25-
"context_name": "Key Vault",
26-
"menu_name": {
27-
"appmenu.vault": {
28-
"en": "Key Vault",
29-
"ja": "キーボールト",
30-
"zh": "密钥库",
31-
"en-tts": "Key Vault"
32-
}
33-
},
34-
"submenu": 1
35-
},
36-
"repl": {
37-
"context_name": "repl demo app",
38-
"menu_name": {
39-
"appmenu.repl": {
40-
"en": "Basic REPL demo",
41-
"ja": "シンプルなREPLデモ",
42-
"zh": "基本 REPL 演示",
43-
"en-tts": "Basic REPL demo"
44-
}
45-
}
46-
},
47-
"mtxcli": {
48-
"context_name": "Matrix chat",
49-
"menu_name": {
50-
"appmenu.mtxcli": {
51-
"en": "Matrix chat",
52-
"ja": "シンプルなMATRIXデモ",
53-
"zh": "基本 MATRIX 演示",
54-
"en-tts": "MATRIX demo"
55-
}
56-
}
57-
}
58-
}
1+
{
2+
"ball": {
3+
"context_name": "ball demo app",
4+
"menu_name": {
5+
"appmenu.ball": {
6+
"en": "Simple ball demo",
7+
"en-tts": "Simple ball demo",
8+
"fr": "Démonstration de balle simple",
9+
"ja": "シンプルなボールのデモ",
10+
"zh": "简单的球演示"
11+
}
12+
}
13+
},
14+
"hello": {
15+
"context_name": "Hello World",
16+
"menu_name": {
17+
"appmenu.hello": {
18+
"en": "Hello World!",
19+
"en-tts": "Hello World!",
20+
"fr": "Bonjour le monde!",
21+
"ja": "Hello World!",
22+
"zh": "大家好!"
23+
}
24+
}
25+
},
26+
"mtxcli": {
27+
"context_name": "Matrix chat",
28+
"menu_name": {
29+
"appmenu.mtxcli": {
30+
"en": "Matrix chat",
31+
"en-tts": "MATRIX demo",
32+
"fr": "Matrix messagerie",
33+
"ja": "シンプルなMATRIXデモ",
34+
"zh": "基本 MATRIX 演示"
35+
}
36+
}
37+
},
38+
"repl": {
39+
"context_name": "repl demo app",
40+
"menu_name": {
41+
"appmenu.repl": {
42+
"en": "Basic REPL demo",
43+
"en-tts": "Basic REPL demo",
44+
"fr": "Démonstration REPL",
45+
"ja": "シンプルなREPLデモ",
46+
"zh": "基本 REPL 演示"
47+
}
48+
}
49+
},
50+
"vault": {
51+
"context_name": "Key Vault",
52+
"menu_name": {
53+
"appmenu.vault": {
54+
"en": "Key Vault",
55+
"en-tts": "Key Vault",
56+
"fr": "Coffre de clés",
57+
"ja": "キーボールト",
58+
"zh": "密钥库"
59+
}
60+
},
61+
"submenu": 1
62+
}
63+
}

0 commit comments

Comments
 (0)