Skip to content

Commit

Permalink
French translations for control-C
Browse files Browse the repository at this point in the history
  • Loading branch information
phyver committed Aug 27, 2024
1 parent d300935 commit 7785859
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 50 deletions.
8 changes: 4 additions & 4 deletions missions/intermediate/05_control-C/charmiglio.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh

. gsh_gettext.sh

Expand All @@ -9,7 +9,7 @@ control_c_start() {
"" | *[!0-9]* )
echo
echo
echo "$(eval_gettext 'Found it! The special incantion is $n')"
echo "$(eval_gettext 'Found it! The special incantation is $n')"
;;
*)
echo
Expand All @@ -27,7 +27,7 @@ control_c_end() {
"" | *[!0-9]* )
echo
echo
echo "$(eval_gettext 'Found it! The special incantion is $n')"
echo "$(eval_gettext 'Found it! The special incantation is $n')"
;;
*)
echo "$((n-1))" > "$GSH_TMP/control-C"
Expand All @@ -47,7 +47,7 @@ mumble() {
d=0
while [ "$d" -le "$seconds" ]
do
d=$(($(date +%s) - now))
d=$(($(date +%s) - now + 1))
printf "$(gettext "Merlin mumbles ")" >&2
if [ "$sleep" ]
then
Expand Down
2 changes: 1 addition & 1 deletion missions/intermediate/05_control-C/goal/fr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pour le mettre dans une transe qui devrait lui permettre de
se souvenir d'une incantation spéciale pour créer des feux
d'artifice.

Le seul problème est qu'après quelques secondes en trance,
Le seul problème est qu'après quelques secondes en transe,
Merlin s'endort ! Vous devez donc l'interrompre dans ce cas
pour qu'il puisse ré-essayer.

Expand Down
22 changes: 0 additions & 22 deletions missions/intermediate/05_control-C/i18n/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,10 @@ msgstr "$MISSION_DIR/treasure-msg/en.txt"
msgid "Don't interrupt me when I'm in a trance!!!"
msgstr "Don't interrupt me when I'm in a trance!!!"

#, sh-format
msgid "FOUND: $n"
msgstr "FOUND: $n"

#, sh-format
msgid "Found it! The special incantation is $n"
msgstr "Found it! The special incantation is $n"

#, sh-format
msgid "Found it! The special incantion is $n"
msgstr "Found it! The special incantion is $n"

msgid "Let me think a little more!!!"
msgstr "Let me think a little more!!!"

msgid "Merlin mumbles "
msgstr "Merlin mumbles "

Expand All @@ -46,16 +35,5 @@ msgstr "Sorry, I fell asleep... Let's try again."
msgid "What's the fireworks incantation?"
msgstr "What's the fireworks incantation?"

msgid "What's the magic word?"
msgstr "What's the magic word?"

msgid "You need to interrupt Merlin before he falls asleep.\n"
"Refer to the goal for details."
msgstr "You need to interrupt Merlin before he falls asleep.\n"
"Refer to the goal for details."

msgid "You're right, that's not working"
msgstr "You're right, that's not working"

msgid "charmiglio"
msgstr "charmiglio"
42 changes: 42 additions & 0 deletions missions/intermediate/05_control-C/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

# path for the text file containing the goal
#, sh-format
msgid "$MISSION_DIR/goal/en.txt"
msgstr "$MISSION_DIR/goal/fr.txt"

# path for the text file containing the skip message
msgid "$MISSION_DIR/skip/en.txt"
msgstr ""

# path for the text file containing the treasure message
msgid "$MISSION_DIR/treasure-msg/en.txt"
msgstr ""

msgid "Don't interrupt me when I'm in a trance!!!"
msgstr "Ne m'interromps pas pendant ma transe !!!"

#, sh-format
msgid "Found it! The special incantation is $n"
msgstr "Trouvé ! L'incantation spéciale est $n"

msgid "Merlin mumbles "
msgstr "Merlin marmonne "

msgid "NOTE: you need to interrupt Merlin before he wakes up."
msgstr "NOTE : vous devez interrompre Merlin avant son réveil."

msgid "Sorry, I fell asleep... Let's try again."
msgstr "Désolé, je m'étais endormi... Essayons encore."

msgid "What's the fireworks incantation?"
msgstr "Quelle est l'incantation pour les feux d'artifice ?"

msgid "charmiglio"
msgstr "charmiglio"

#, fuzzy, sh-format
#~ msgid "Found it! The special incantion is $n"
#~ msgstr "Trouvé ! L'incantation spéciale est $n"
38 changes: 38 additions & 0 deletions missions/intermediate/05_control-C/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

# path for the text file containing the goal
#, sh-format
msgid "$MISSION_DIR/goal/en.txt"
msgstr "$MISSION_DIR/goal/it.txt"

# path for the text file containing the skip message
msgid "$MISSION_DIR/skip/en.txt"
msgstr ""

# path for the text file containing the treasure message
msgid "$MISSION_DIR/treasure-msg/en.txt"
msgstr ""

msgid "Don't interrupt me when I'm in a trance!!!"
msgstr ""

#, sh-format
msgid "Found it! The special incantation is $n"
msgstr ""

msgid "Merlin mumbles "
msgstr ""

msgid "NOTE: you need to interrupt Merlin before he wakes up."
msgstr ""

msgid "Sorry, I fell asleep... Let's try again."
msgstr ""

msgid "What's the fireworks incantation?"
msgstr ""

msgid "charmiglio"
msgstr ""
21 changes: 0 additions & 21 deletions missions/intermediate/05_control-C/i18n/template.pot
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,10 @@ msgstr ""
msgid "Don't interrupt me when I'm in a trance!!!"
msgstr ""

#, sh-format
msgid "FOUND: $n"
msgstr ""

#, sh-format
msgid "Found it! The special incantation is $n"
msgstr ""

#, sh-format
msgid "Found it! The special incantion is $n"
msgstr ""

msgid "Let me think a little more!!!"
msgstr ""

msgid "Merlin mumbles "
msgstr ""

Expand All @@ -45,15 +34,5 @@ msgstr ""
msgid "What's the fireworks incantation?"
msgstr ""

msgid "What's the magic word?"
msgstr ""

msgid "You need to interrupt Merlin before he falls asleep.\n"
"Refer to the goal for details."
msgstr ""

msgid "You're right, that's not working"
msgstr ""

msgid "charmiglio"
msgstr ""
3 changes: 1 addition & 2 deletions missions/intermediate/05_control-C/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ _mission_init() {
# nb of tries to make
echo $((3 + $(RANDOM) % 3)) > "$GSH_TMP/control-C"

cp "$MISSION_DIR/charmiglio.sh" "$GSH_BIN/$(gettext charmiglio)"
chmod +x "$GSH_BIN/$(gettext charmiglio)"
copy_bin "$MISSION_DIR/charmiglio.sh" "$GSH_BIN/$(gettext charmiglio)"
}
_mission_init

0 comments on commit 7785859

Please sign in to comment.