Skip to content

Commit

Permalink
[tui] Add Yes and No translations
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 20, 2023
1 parent 88461b4 commit 4cfa883
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion tui/locales/en-us/misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

CANCEL_BUTTON="Cancel"
OK_BUTTON="Next"
YES_BUTTON="Yes"
NO_BUTTON="No"

export CANCEL_BUTTON OK_BUTTON
export CANCEL_BUTTON OK_BUTTON YES_BUTTON NO_BUTTON
2 changes: 1 addition & 1 deletion tui/locales/en-us/summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ You are almost done, here is a summary of choices you made to install Open Voice
- Version: $CHANNEL
- Profile: $PROFILE
- GUI: $FEATURE_GUI
- Skills $FEATURE_SKILLS
- Skills $FEATURE_SKILLS
- Tuning: $TUNING
The choices made during the Open Voice OS installation process have been carefully considered to tailor our system to your unique needs and preferences.
Expand Down
4 changes: 3 additions & 1 deletion tui/locales/fr-fr/misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

CANCEL_BUTTON="Annuler"
OK_BUTTON="Suivant"
YES_BUTTON="Oui"
NO_BUTTON="Non"

export CANCEL_BUTTON OK_BUTTON INSTALL_SUCCESS INSTALL_FAILED ANSIBLE_START
export CANCEL_BUTTON OK_BUTTON YES_BUTTON NO_BUTTON
2 changes: 1 addition & 1 deletion tui/locales/fr-fr/summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Vous y êtes presque! Voici un résumé des choix que vous avez effectués pour
- Canal de déployment: $CHANNEL
- Profil d'installation: $PROFILE
- Interface graphique: $FEATURE_GUI
- Compétences par défaut $FEATURE_SKILLS
- Compétences par défaut $FEATURE_SKILLS
- Réglages Raspberry Pi: $TUNING
Les choix effectués lors du processus d'installation d'Open Voice OS ont été soigneusement étudiés pour adapter notre système à vos besoins et préférences.
Expand Down
2 changes: 1 addition & 1 deletion tui/summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# shellcheck source=locales/en-us/summary.sh
source "tui/locales/$LOCALE/summary.sh"

whiptail --yesno --defaultno --no-button "$CANCEL_BUTTON" --yes-button "$OK_BUTTON" --title "$TITLE" "$CONTENT" 25 80
whiptail --yesno --defaultno --no-button "$NO_BUTTON" --yes-button "$YES_BUTTON" --title "$TITLE" "$CONTENT" 25 80

exit_status=$?
if [ "$exit_status" -eq 1 ]; then
Expand Down
2 changes: 1 addition & 1 deletion tui/telemetry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export SHARE_TELEMETRY="true"
# shellcheck source=locales/en-us/telemetry.sh
source "tui/locales/$LOCALE/telemetry.sh"

whiptail --yesno --no-button "$CANCEL_BUTTON" --yes-button "$OK_BUTTON" --title "$TITLE" "$CONTENT" 25 80
whiptail --yesno --no-button "$NO_BUTTON" --yes-button "$YES_BUTTON" --title "$TITLE" "$CONTENT" 25 80

exit_status=$?
if [ "$exit_status" -eq 1 ]; then
Expand Down
2 changes: 1 addition & 1 deletion tui/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source "tui/locales/$LOCALE/misc.sh"
# shellcheck source=locales/en-us/uninstall.sh
source "tui/locales/$LOCALE/uninstall.sh"

whiptail --yesno --defaultno --no-button "$CANCEL_BUTTON" --yes-button "$OK_BUTTON" --title "$TITLE" "$CONTENT" 25 80
whiptail --yesno --defaultno --no-button "$NO_BUTTON" --yes-button "$YES_BUTTON" --title "$TITLE" "$CONTENT" 25 80

exit_status=$?
if [ "$exit_status" -eq 1 ]; then
Expand Down

0 comments on commit 4cfa883

Please sign in to comment.