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

🧹 Weblate prefill #5787

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/adventures/so.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions content/cheatsheets/so.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
20 changes: 20 additions & 0 deletions content/client-messages/so.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CheckInternet: ''
Connection_error: ''
Empty_output: ''
Errors_found: ''
Execute_error: ''
Other_error: ''
Program_repair: ''
Program_too_long: ''
ServerError: ''
Transpile_error: ''
Transpile_success: ''
Transpile_warning: ''
Unsaved_Changes: ''
dice: ''
fortune: ''
haunted: ''
restaurant: ''
rock: ''
songs: ''
turtle: ''
1 change: 1 addition & 0 deletions content/keywords/so.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions content/pages/so.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions content/parsons/so.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions content/quizzes/so.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions content/slides/so.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions content/tutorials/so.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
54 changes: 54 additions & 0 deletions grammars/keywords-so.lark
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
_DEFINE: ("define" | "define") _SPACE?
_CALL: ("call" | "call") _SPACE?
_WITH: ("with" | "with") _SPACE?
_DEF: ("def" | "def") _SPACE?
_RETURN: ("return" | "return") _SPACE?
_PRINT: ("print" | "print") _SPACE?
_PLAY: ("play" | "play") _SPACE
_ASK: ("ask" | "ask")
_ECHO: ("echo" | "echo") _SPACE?
_FORWARD: ("forward" | "forward") _SPACE?
_TURN: ("turn" | "turn") _SPACE?
left: ("left" | "left") _SPACE?
right: ("right" | "right") _SPACE?
black: ("black" | "black") _SPACE?
blue: ("blue" | "blue") _SPACE?
brown: ("brown" | "brown") _SPACE?
gray: ("gray" | "gray") _SPACE?
green: ("green" | "green") _SPACE?
orange: ("orange" | "orange") _SPACE?
pink: ("pink" | "pink") _SPACE?
purple: ("purple" | "purple") _SPACE?
red: ("red" | "red") _SPACE?
white: ("white" | "white") _SPACE?
yellow: ("yellow" | "yellow") _SPACE?
_IS: _SPACE ("is" | "is") _SPACE
_STANDALONE_IS: ("is" | "is")
_SLEEP: ("sleep" | "sleep") _SPACE?
_ADD_LIST: ("add" | "add") _SPACE
_TO_LIST: _SPACE? ("to" | "to") _SPACE
_REMOVE: ("remove" | "remove") _SPACE
_FROM: _SPACE? ("from" | "from") _SPACE
_AT: _SPACE ("at" | "at") _SPACE
random: ("random" | "random") _SPACE?
_IN: _SPACE ("in" | "in") _SPACE
_NOT_IN: _SPACE ("not in" | "not in") _SPACE
_IF: ("if" | "if") _SPACE
_ELSE: "else" | "else"
_AND: _SPACE? ("and" | "and") _SPACE
_REPEAT: ("repeat" | "repeat") _SPACE
_TIMES: _SPACE ("times" | "times")
_FOR: ("for" | "for") _SPACE
_RANGE: ("range" | "range") _SPACE?
_TO: _SPACE ("to" | "to") _SPACE
_STEP: "step" | "step"
_ELIF: _SPACE? ("elif" | "elif") _SPACE
_INPUT: ("input" | "input")
_OR: _SPACE? ("or" | "or") _SPACE
_WHILE: ("while" | "while") _SPACE
_LENGTH: "length" | "length"
_COLOR : ("color" | "color") _SPACE?
_PRESSED: ("pressed" | "pressed") _SPACE?
clear: ("clear" | "clear") _SPACE?
TRUE: ("true" | "True" | "true" | "True") _SPACE?
FALSE: ("false" | "False" | "false" | "False") _SPACE?
2 changes: 1 addition & 1 deletion highlighting/generate-rules-highlighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_digits(keywords, keywords_ref):
key = f'd{d}'
if keywords_ref[key] not in digits:
digits.append(keywords_ref[key])
if keywords[key] not in digits:
if key in keywords and keywords[key] not in digits:
digits.append(keywords[key])

return "".join(digits)
Expand Down
3 changes: 3 additions & 0 deletions highlighting/highlighting-trad.json
Original file line number Diff line number Diff line change
Expand Up @@ -2536,6 +2536,9 @@
"yellow": "rumena|yellow",
"DIGIT": "0123456789"
},
"so": {
"DIGIT": "0123456789"
},
"sq": {
"False": "False",
"True": "True",
Expand Down
60 changes: 52 additions & 8 deletions static/js/appbundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -9085,7 +9085,7 @@ Read more: ${P}#error-${t4}`;
ro3.prototype.get = Fe2;
ro3.prototype.has = He;
ro3.prototype.set = io2;
const so2 = ro3;
const so3 = ro3;
function ao2(t4, e3) {
var n3 = -1, o3 = t4 == null ? 0 : t4.length;
while (++n3 < o3) {
Expand Down Expand Up @@ -9577,7 +9577,7 @@ Read more: ${P}#error-${t4}`;
s3 = Ws(t4, u3, a3);
}
}
r3 || (r3 = new so2());
r3 || (r3 = new so3());
var m3 = r3.get(t4);
if (m3) {
return m3;
Expand Down Expand Up @@ -10612,7 +10612,7 @@ Read more: ${P}#error-${t4}`;
return;
}
hl2(e3, function(r3, s3) {
i3 || (i3 = new so2());
i3 || (i3 = new so3());
if (st2(r3)) {
Al2(t4, e3, s3, n3, _l2, o3, i3);
} else {
Expand Down Expand Up @@ -16707,21 +16707,21 @@ Read more: ${P}#error-${t4}`;
d3 = false;
}
if (h4 && !d3) {
r3 || (r3 = new so2());
r3 || (r3 = new so3());
return s3 || Ti2(t4) ? Ng2(t4, e3, n3, o3, i3, r3) : ef(t4, e3, c3, n3, o3, i3, r3);
}
if (!(n3 & cf)) {
var m3 = d3 && mf.call(t4, "__wrapped__"), g3 = u3 && mf.call(e3, "__wrapped__");
if (m3 || g3) {
var f3 = m3 ? t4.value() : t4, p3 = g3 ? e3.value() : e3;
r3 || (r3 = new so2());
r3 || (r3 = new so3());
return i3(f3, p3, n3, o3, r3);
}
}
if (!h4) {
return false;
}
r3 || (r3 = new so2());
r3 || (r3 = new so3());
return af(t4, e3, n3, o3, i3, r3);
}
const ff = gf;
Expand Down Expand Up @@ -39587,7 +39587,7 @@ ${o3}` : i3;
return false;
}
} else {
var u3 = new so2();
var u3 = new so3();
if (o3) {
var h4 = o3(l3, d3, c3, t4, e3, u3);
}
Expand Down Expand Up @@ -62250,6 +62250,46 @@ ${o3}` : i3;
"turtle": "\u{1F422}",
"unsaved_class_changes": "There are unsaved changes, are you sure you want to leave this page?"
},
"so": {
"CheckInternet": "",
"Connection_error": "",
"Empty_output": "",
"Errors_found": "",
"Execute_error": "",
"Other_error": "",
"Program_repair": "",
"Program_too_long": "",
"ServerError": "",
"Transpile_error": "",
"Transpile_success": "",
"Transpile_warning": "",
"Unsaved_Changes": "",
"adventures_completed": "Adventures completed: {number_of_adventures}",
"adventures_restored": "The default adventures have been restored.",
"adventures_tried": "Adventures tried",
"copy_link_to_share": "Copy link to share",
"customization_deleted": "Customizations successfully deleted.",
"dice": "",
"directly_available": "Directly open",
"disabled": "Disabled",
"errors": "Errors",
"fortune": "",
"graph_title": "Errors per adventure completed on level {level}",
"haunted": "",
"level_title": "Level",
"multiple_keywords_warning": "You are trying to use the keyword {orig_keyword}, but this keyword might have several meanings. Please choose the one you're trying to use from this list and copy paste it in your code, curly braces included: {keyword_list}",
"number_of_errors": "Number of errors: {number_of_errors}",
"one_level_error": "You need to select at least one level.",
"restaurant": "",
"rock": "",
"select_all": "Select all",
"selected": "Selected",
"songs": "",
"successful_runs": "Successful runs: {successful_runs}",
"teacher_welcome": "Welcome to Hedy! Your are now the proud owner of a teachers account which allows you to create classes and invite students.",
"turtle": "",
"unsaved_class_changes": "There are unsaved changes, are you sure you want to leave this page?"
},
"sq": {
"CheckInternet": "Shikoni n\xEBse lidhja juaj e internetit po funksionon si\xE7 duhet.",
"Connection_error": "Nuk arrit\xEBm dot te serveri.",
Expand Down Expand Up @@ -99117,6 +99157,9 @@ def note_with_error(value, err):
yellow: "rumena|yellow",
DIGIT: "0123456789"
};
var so = {
DIGIT: "0123456789"
};
var sq = {
False: "False",
True: "True",
Expand Down Expand Up @@ -100046,6 +100089,7 @@ def note_with_error(value, err):
ro,
ru,
sl,
so,
sq,
sr,
sv,
Expand Down Expand Up @@ -124324,7 +124368,7 @@ def note_with_error(value, err):
var vs = `${M}-tips-inner-element`;
var qa = `${M}-middle-dot`;
var io = `${M}-hand-pointer`;
var so = `${M}-circle`;
var so2 = `${M}-circle`;
var Za = `${M}-modal`;
var pg = F() ? 100 : -100;
var _g = F() ? -100 : 100;
Expand Down
4 changes: 2 additions & 2 deletions static/js/appbundle.js.map

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions static/js/message-translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,46 @@ export const TRANSLATIONS: Record<string, Record<MessageKey, string>> = {
"turtle": "🐢",
"unsaved_class_changes": "There are unsaved changes, are you sure you want to leave this page?"
},
"so": {
"CheckInternet": "",
"Connection_error": "",
"Empty_output": "",
"Errors_found": "",
"Execute_error": "",
"Other_error": "",
"Program_repair": "",
"Program_too_long": "",
"ServerError": "",
"Transpile_error": "",
"Transpile_success": "",
"Transpile_warning": "",
"Unsaved_Changes": "",
"adventures_completed": "Adventures completed: {number_of_adventures}",
"adventures_restored": "The default adventures have been restored.",
"adventures_tried": "Adventures tried",
"copy_link_to_share": "Copy link to share",
"customization_deleted": "Customizations successfully deleted.",
"dice": "",
"directly_available": "Directly open",
"disabled": "Disabled",
"errors": "Errors",
"fortune": "",
"graph_title": "Errors per adventure completed on level {level}",
"haunted": "",
"level_title": "Level",
"multiple_keywords_warning": "You are trying to use the keyword {orig_keyword}, but this keyword might have several meanings. Please choose the one you're trying to use from this list and copy paste it in your code, curly braces included: {keyword_list}",
"number_of_errors": "Number of errors: {number_of_errors}",
"one_level_error": "You need to select at least one level.",
"restaurant": "",
"rock": "",
"select_all": "Select all",
"selected": "Selected",
"songs": "",
"successful_runs": "Successful runs: {successful_runs}",
"teacher_welcome": "Welcome to Hedy! Your are now the proud owner of a teachers account which allows you to create classes and invite students.",
"turtle": "",
"unsaved_class_changes": "There are unsaved changes, are you sure you want to leave this page?"
},
"sq": {
"CheckInternet": "Shikoni nëse lidhja juaj e internetit po funksionon siç duhet.",
"Connection_error": "Nuk arritëm dot te serveri.",
Expand Down
2 changes: 2 additions & 0 deletions static_babel_content.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@
"ro": "Rom\u00e2n\u0103",
"ru": "\u0420\u0443\u0441\u0441\u043a\u0438\u0439",
"sl": "Sloven\u0161\u010dina",
"so": "Soomaali",
"sq": "Shqip",
"sr": "\u0421\u0440\u043f\u0441\u043a\u0438",
"sv": "Svenska",
Expand Down Expand Up @@ -352,6 +353,7 @@
"ro": "ltr",
"ru": "ltr",
"sl": "ltr",
"so": "ltr",
"sq": "ltr",
"sr": "ltr",
"sv": "ltr",
Expand Down
Loading
Loading