Skip to content

Commit

Permalink
add internationalization for toggle buttons and fix korean translation
Browse files Browse the repository at this point in the history
  • Loading branch information
amwatson committed Oct 3, 2024
1 parent b7abefc commit 7cf1a53
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
android:layout_height="wrap_content"
android:background="@drawable/vr_toggle_background"
android:textColor="@color/vr_ribbon_button_text_color"
android:textOff="On"
android:textOn="Off" />
android:textOff="@string/toggle_on_text"
android:textOn="@string/toggle_off_text" />

<!-- Toggle horizontal movement -->
<TextView
Expand Down
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -543,4 +543,6 @@ Nachdem die Shader geladen wurden, werden sie auf dem Gerät gespeichert und ver
<string name="reset_header_text">Zurücksetzen</string>
<string name="reset_instruction_text">Drücken Sie diese Taste, um die Position zurückzusetzen.</string>
<string name="horizontal_header_text">Horizontale Bewegung</string>
<string name="toggle_off_text">Ausgeschaltet</string>
<string name="toggle_on_text">An</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -676,4 +676,6 @@ Después de que los shaders se carguen, se almacenan en el dispositivo, lo que e
<string name="reset_header_text">Reinicio</string>
<string name="reset_instruction_text">Presione este botón para restablecer la posición.</string>
<string name="horizontal_header_text">Movimiento Horizontal</string>
<string name="toggle_off_text">Apagado</string>
<string name="toggle_on_text">sí</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-fi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,6 @@ Shadereiden latautumisen jälkeen ne tallennetaan laitteeseen, mikä estää nä
<string name="reset_header_text">Nollaa</string>
<string name="reset_instruction_text">Paina tätä painiketta nollataksesi sijainti.</string>
<string name="horizontal_header_text">Vaakasuuntainen liike</string>
<string name="toggle_off_text">Pois</string>
<string name="toggle_on_text">Kytketty päälle</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -675,4 +675,6 @@ Une fois les shaders chargés, ils sont enregistrés sur l\'appareil, ce qui emp
<string name="reset_header_text">Réinitialisation</string>
<string name="reset_instruction_text">Appuyez sur ce bouton pour réinitialiser la position.</string>
<string name="horizontal_header_text">Déplacement horizontal</string>
<string name="toggle_off_text">Éteint</string>
<string name="toggle_on_text">Sur</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,6 @@ Después de que se carguen los sombreadores, estos se guardan en el dispositivo,
<string name="reset_header_text">Ripristino</string>
<string name="reset_instruction_text">Premere questo pulsante per ripristinare la posizione.</string>
<string name="horizontal_header_text">Movimento orizzontale</string>
<string name="toggle_off_text">Spento</string>
<string name="toggle_on_text">Attivo</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,6 @@
<string name="reset_header_text">リセット</string>
<string name="reset_instruction_text">このボタンを押して位置をリセットします。</string>
<string name="horizontal_header_text">水平移動</string>
<string name="toggle_off_text">非表示</string>
<string name="toggle_on_text">オン</string>
</resources>
4 changes: 3 additions & 1 deletion src/android/app/src/main/res/values-ko/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,13 @@
<string name="vertical_instruction_2_text">패널의 수직 위치를 조절하려면 모션 컨트롤러를 위로 또는 아래로 슬라이드하십시오.</string>
<string name="depth_header_text">깊이 조절 (Depth Adjustment)</string>
<string name="depth_top_panel_instruction_text">(상단 패널) 썸스틱을 앞으로 밀어서 더 깊게 연장하거나 뒤로 당겨서 더 가까이 가져오세요.</string>
<string name="depth_lower_panel_instruction_text">밑 패널) 패널 각도를 조정하려면 썸스틱을 움직이십시오.</string>
<string name="depth_lower_panel_instruction_text">(밑 패널) 패널 각도를 조정하려면 썸스틱을 움직이십시오.</string>
<string name="horizontal_instruction_toggle_text">토글을 사용하여 수평 이동을 활성화 또는 비활성화하세요. (Toggle 을 사용하여 수평 이동을 활성화 또는 비활성화하세요.)</string>
<string name="horizontal_instruction_slide_text">수평 이동이 활성화되어 있으면 왼쪽이나 오른쪽으로 슬라이드하여 수평을 조절하세요.</string>
<string name="reset_button_text">재설정</string>
<string name="reset_header_text">재설정</string>
<string name="reset_instruction_text">이 버튼을 눌러 위치를 재설정하세요.</string>
<string name="horizontal_header_text">수평 이동</string>
<string name="toggle_off_text">끄기</string>
<string name="toggle_on_text">켜짐</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-nb/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,6 @@
<string name="reset_header_text">Nullstill</string>
<string name="reset_instruction_text">Trykk på denne knappen for å tilbakestille posisjonen.</string>
<string name="horizontal_header_text">Horisontal bevegelse</string>
<string name="toggle_off_text">Av</string>
<string name="toggle_on_text">I gang</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -345,4 +345,6 @@ Após os shaders serem carregados, eles são armazenados no dispositivo, evitand
<string name="reset_header_text">Reiniciar</string>
<string name="reset_instruction_text">Pulse este botão para redefinir a posição.</string>
<string name="horizontal_header_text">Movimento Horizontal</string>
<string name="toggle_off_text">Desligado</string>
<string name="toggle_on_text">ativado</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -676,4 +676,6 @@
<string name="reset_header_text">Сброс</string>
<string name="reset_instruction_text">Нажмите эту кнопку, чтобы сбросить позицию.</string>
<string name="horizontal_header_text">Горизонтальное движение</string>
<string name="toggle_off_text">Выключено</string>
<string name="toggle_on_text">Вкл</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -674,4 +674,6 @@
<string name="reset_header_text">重置</string>
<string name="reset_instruction_text">按下这个按钮来重置位置。</string>
<string name="horizontal_header_text">水平移动</string>
<string name="toggle_off_text">关闭 (zh-CN)</string>
<string name="toggle_on_text">开启</string>
</resources>
2 changes: 2 additions & 0 deletions src/android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -703,4 +703,6 @@
<string name="reset_header_text">Reset</string>
<string name="reset_instruction_text">Press this button to reset position.</string>
<string name="horizontal_header_text">Horizontal Movement</string>
<string name="toggle_off_text">Off</string>
<string name="toggle_on_text">On</string>
</resources>

0 comments on commit 7cf1a53

Please sign in to comment.