Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order i18n yml hashes #13982

Merged
merged 2 commits into from Mar 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/i18n/sync-codeorg-in
Expand Up @@ -21,8 +21,8 @@ end
def copy_to_yml(label, data, allow_full_length=false)
args = allow_full_length ? {line_width: -1} : {}
File.open("dashboard/config/locales/#{label}.en.yml", "w+") do |f|
f.write(({ "en" => { "data" => { label => data }}}).to_yaml(**args))
File.write(f, File.read(f))
data = ({ "en" => { "data" => { label => data }}}).to_yaml(**args)
f.write(data)
end
end

Expand Down Expand Up @@ -63,7 +63,7 @@ def localize_level_content
authored_hint_pattern = /^\s*"authored_hints": "(.*?)",?\n$/
callout_pattern = /^\s*"callout_json": "(.*?)",?\n$/

Dir.glob("dashboard/config/scripts/levels/*.level").each do |file|
Dir.glob("dashboard/config/scripts/levels/*.level").sort.each do |file|
level = File.basename(file, ".*") + "_instruction"
markdown_level = File.basename(file, ".*") + "_markdown_instruction"
failure_message_override_level = File.basename(file, ".*") + "_failure_message_override"
Expand Down
644 changes: 322 additions & 322 deletions dashboard/config/locales/authored_hints.en.yml

Large diffs are not rendered by default.

1,006 changes: 503 additions & 503 deletions dashboard/config/locales/callouts.en.yml

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions dashboard/config/locales/failure_message_overrides.en.yml
Expand Up @@ -40,14 +40,9 @@ en:
should get to their flags in the same number of moves!"
Course 4 Playlab For Loops 5b_failure_message_override: "Remember, both characters
need to stop in the same place."
courseE_playLab_scaffold3_failure_message_override: "You must add two or more
new actors to your game and program them to move."
Eval Strings Images .2_failure_message_override: "Make sure you append the
string \"Universe\" to make the code create \"Hello, Universe\""
grade4_scaffolded_project3_failure_message_override: "You must add two or more
new actors that move to your game."
Kiki_StarWars_Test_5_failure_message_override: "Game over!"
kikiTesta_failure_message_override: "Congratulations! You gathered X coins!"
MC HOC 2016 Level 1_failure_message_override: "To go on, you’ll need to collect
wool. To collect the wool, use the arrow keys to walk to the sheep and then
press the spacebar or click the game to shear the sheep. And, don’t forget
Expand Down Expand Up @@ -80,22 +75,27 @@ en:
MC HOC 2016 New Drop_failure_message_override: "Use the arrow keys to walk
to the sheep and press space bar or click the game board to use the sheep.
And, don’t forget to add the 'Drop' block to your code."
MC HOC 2016 New pn_failure_message_override: "To go on, you’ll need to collect
wool. To collect the wool, use the arrow keys to walk to the sheep and then
press the spacebar or click the game to shear the sheep. And, don’t forget
to add the “Drop Wool” block to your code."
MC HOC 2016 New Spawn_failure_message_override: "Place `spawn sheep` under
`when run`."
MC HOC 2016 New Walk_failure_message_override: "To open the door, press the
space bar or touch the game board while facing it. Walk inside to continue."
MC HOC 2016 New pn_failure_message_override: "To go on, you’ll need to collect
wool. To collect the wool, use the arrow keys to walk to the sheep and then
press the spacebar or click the game to shear the sheep. And, don’t forget
to add the “Drop Wool” block to your code."
MC HOC 2016 SCORE LEVEL_failure_message_override: "If you're having trouble
tagging 5 Golems, try changing the score to 2 per tag."
MC HOC 2016 Village Test_failure_message_override: "You need to make the Iron
Golem chase and attack the zombies to win."
WhileAdventure_failure_message_override: "Congratulations! You gathered X
coins!"
courseE_playLab_scaffold3_failure_message_override: "You must add two or more
new actors to your game and program them to move."
grade4_scaffolded_project3_failure_message_override: "You must add two or more
new actors that move to your game."
kikiTesta_failure_message_override: "Congratulations! You gathered X coins!"
sample1_failure_message_override: "Congratulations! You gathered X coins!"
sample4_failure_message_override: "Congratulations! You gathered X coins!"
sample6_failure_message_override: "Not quite. Keep trying! [Move to Play
Zone]"
sample8_failure_message_override: "Congratulations! You gathered X coins!"
WhileAdventure_failure_message_override: "Congratulations! You gathered X
coins!"
9,682 changes: 4,841 additions & 4,841 deletions dashboard/config/locales/instructions.en.yml

Large diffs are not rendered by default.

32,596 changes: 16,298 additions & 16,298 deletions dashboard/config/locales/markdown_instructions.en.yml

Large diffs are not rendered by default.

644 changes: 322 additions & 322 deletions i18n/locales/source/dashboard/authored_hints.yml

Large diffs are not rendered by default.

1,006 changes: 503 additions & 503 deletions i18n/locales/source/dashboard/callouts.yml

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions i18n/locales/source/dashboard/failure_message_overrides.yml
Expand Up @@ -40,14 +40,9 @@ en:
should get to their flags in the same number of moves!"
Course 4 Playlab For Loops 5b_failure_message_override: "Remember, both characters
need to stop in the same place."
courseE_playLab_scaffold3_failure_message_override: "You must add two or more
new actors to your game and program them to move."
Eval Strings Images .2_failure_message_override: "Make sure you append the
string \"Universe\" to make the code create \"Hello, Universe\""
grade4_scaffolded_project3_failure_message_override: "You must add two or more
new actors that move to your game."
Kiki_StarWars_Test_5_failure_message_override: "Game over!"
kikiTesta_failure_message_override: "Congratulations! You gathered X coins!"
MC HOC 2016 Level 1_failure_message_override: "To go on, you’ll need to collect
wool. To collect the wool, use the arrow keys to walk to the sheep and then
press the spacebar or click the game to shear the sheep. And, don’t forget
Expand Down Expand Up @@ -80,22 +75,27 @@ en:
MC HOC 2016 New Drop_failure_message_override: "Use the arrow keys to walk
to the sheep and press space bar or click the game board to use the sheep.
And, don’t forget to add the 'Drop' block to your code."
MC HOC 2016 New pn_failure_message_override: "To go on, you’ll need to collect
wool. To collect the wool, use the arrow keys to walk to the sheep and then
press the spacebar or click the game to shear the sheep. And, don’t forget
to add the “Drop Wool” block to your code."
MC HOC 2016 New Spawn_failure_message_override: "Place `spawn sheep` under
`when run`."
MC HOC 2016 New Walk_failure_message_override: "To open the door, press the
space bar or touch the game board while facing it. Walk inside to continue."
MC HOC 2016 New pn_failure_message_override: "To go on, you’ll need to collect
wool. To collect the wool, use the arrow keys to walk to the sheep and then
press the spacebar or click the game to shear the sheep. And, don’t forget
to add the “Drop Wool” block to your code."
MC HOC 2016 SCORE LEVEL_failure_message_override: "If you're having trouble
tagging 5 Golems, try changing the score to 2 per tag."
MC HOC 2016 Village Test_failure_message_override: "You need to make the Iron
Golem chase and attack the zombies to win."
WhileAdventure_failure_message_override: "Congratulations! You gathered X
coins!"
courseE_playLab_scaffold3_failure_message_override: "You must add two or more
new actors to your game and program them to move."
grade4_scaffolded_project3_failure_message_override: "You must add two or more
new actors that move to your game."
kikiTesta_failure_message_override: "Congratulations! You gathered X coins!"
sample1_failure_message_override: "Congratulations! You gathered X coins!"
sample4_failure_message_override: "Congratulations! You gathered X coins!"
sample6_failure_message_override: "Not quite. Keep trying! [Move to Play
Zone]"
sample8_failure_message_override: "Congratulations! You gathered X coins!"
WhileAdventure_failure_message_override: "Congratulations! You gathered X
coins!"