Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
165 changes: 165 additions & 0 deletions problem_builder/public/js/translations/ko_KR/textjs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@

(function(global){
var ProblemBuilderXBlockI18N = {
init: function() {


(function(globals) {

var django = globals.django || (globals.django = {});


django.pluralidx = function(n) {
var v=(n != 1);
if (typeof(v) == 'boolean') {
return v ? 1 : 0;
} else {
return v;
}
};


/* gettext library */

django.catalog = django.catalog || {};

var newcatalog = {
"All": "\ubaa8\ub450",
"Data export failed. Reason: <%= error %>": "\ub370\uc774\ud130 \ub0b4\ubcf4\ub0b4\uae30\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. \uc774\uc720: <%= error %>",
"Results retrieved on <%= creation_time %> (<%= seconds %> second).": [
"<%= creation_time %>(<%= seconds %>\ucd08)\uc5d0 \uac00\uc838\uc628 \uacb0\uacfc\uc785\ub2c8\ub2e4.",
"<%= creation_time %>(<%= seconds %>\ucd08)\uc5d0 \uac00\uc838\uc628 \uacb0\uacfc\uc785\ub2c8\ub2e4."
],
"The report is currently being generated\u2026": "\ud604\uc7ac \ubcf4\uace0\uc11c\ub97c \uc0dd\uc131\ud558\ub294 \uc911...",
"You have used {num_used} of 1 submission.": [
"\uc81c\ucd9c \ud69f\uc218 1\ubc88 \uc911 {num_used}\ubc88\uc744 \uc0ac\uc6a9\ud558\uc168\uc2b5\ub2c8\ub2e4.",
"\ucd5c\ub300 \uc81c\ucd9c \ud69f\uc218 {max_attempts}\ubc88 \uc911 {num_used}\ubc88\uc744 \uc0ac\uc6a9\ud558\uc168\uc2b5\ub2c8\ub2e4."
]
};
for (var key in newcatalog) {
django.catalog[key] = newcatalog[key];
}


if (!django.jsi18n_initialized) {
django.gettext = function(msgid) {
var value = django.catalog[msgid];
if (typeof(value) == 'undefined') {
return msgid;
} else {
return (typeof(value) == 'string') ? value : value[0];
}
};

django.ngettext = function(singular, plural, count) {
var value = django.catalog[singular];
if (typeof(value) == 'undefined') {
return (count == 1) ? singular : plural;
} else {
return value.constructor === Array ? value[django.pluralidx(count)] : value;
}
};

django.gettext_noop = function(msgid) { return msgid; };

django.pgettext = function(context, msgid) {
var value = django.gettext(context + '\x04' + msgid);
if (value.indexOf('\x04') != -1) {
value = msgid;
}
return value;
};

django.npgettext = function(context, singular, plural, count) {
var value = django.ngettext(context + '\x04' + singular, context + '\x04' + plural, count);
if (value.indexOf('\x04') != -1) {
value = django.ngettext(singular, plural, count);
}
return value;
};

django.interpolate = function(fmt, obj, named) {
if (named) {
return fmt.replace(/%\(\w+\)s/g, function(match){return String(obj[match.slice(2,-2)])});
} else {
return fmt.replace(/%s/g, function(match){return String(obj.shift())});
}
};


/* formatting library */

django.formats = {
"DATETIME_FORMAT": "Y\ub144 n\uc6d4 j\uc77c g:i A",
"DATETIME_INPUT_FORMATS": [
"%Y-%m-%d %H:%M:%S",
"%Y-%m-%d %H:%M:%S.%f",
"%Y-%m-%d %H:%M",
"%Y-%m-%d",
"%m/%d/%Y %H:%M:%S",
"%m/%d/%Y %H:%M:%S.%f",
"%m/%d/%Y %H:%M",
"%m/%d/%Y",
"%m/%d/%y %H:%M:%S",
"%m/%d/%y %H:%M:%S.%f",
"%m/%d/%y %H:%M",
"%m/%d/%y",
"%Y\ub144 %m\uc6d4 %d\uc77c %H\uc2dc %M\ubd84 %S\ucd08",
"%Y\ub144 %m\uc6d4 %d\uc77c %H\uc2dc %M\ubd84"
],
"DATE_FORMAT": "Y\ub144 n\uc6d4 j\uc77c",
"DATE_INPUT_FORMATS": [
"%Y-%m-%d",
"%m/%d/%Y",
"%m/%d/%y",
"%Y\ub144 %m\uc6d4 %d\uc77c"
],
"DECIMAL_SEPARATOR": ".",
"FIRST_DAY_OF_WEEK": 0,
"MONTH_DAY_FORMAT": "n\uc6d4 j\uc77c",
"NUMBER_GROUPING": 3,
"SHORT_DATETIME_FORMAT": "Y-n-j H:i",
"SHORT_DATE_FORMAT": "Y-n-j.",
"THOUSAND_SEPARATOR": ",",
"TIME_FORMAT": "A g:i",
"TIME_INPUT_FORMATS": [
"%H:%M:%S",
"%H:%M:%S.%f",
"%H:%M",
"%H\uc2dc %M\ubd84 %S\ucd08",
"%H\uc2dc %M\ubd84"
],
"YEAR_MONTH_FORMAT": "Y\ub144 n\uc6d4"
};

django.get_format = function(format_type) {
var value = django.formats[format_type];
if (typeof(value) == 'undefined') {
return format_type;
} else {
return value;
}
};

/* add to global namespace */
globals.pluralidx = django.pluralidx;
globals.gettext = django.gettext;
globals.ngettext = django.ngettext;
globals.gettext_noop = django.gettext_noop;
globals.pgettext = django.pgettext;
globals.npgettext = django.npgettext;
globals.interpolate = django.interpolate;
globals.get_format = django.get_format;

django.jsi18n_initialized = true;
}

}(this));


}
};
ProblemBuilderXBlockI18N.init();
global.ProblemBuilderXBlockI18N = ProblemBuilderXBlockI18N;
}(this));

Comment thread
taniwha marked this conversation as resolved.
1 change: 1 addition & 0 deletions problem_builder/translations/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ locales:
- de_DE # German
- ja_JP # Japanese
- pl_PL # Polish
- ko_KR #Korean
# Add languages here as needed

# The locales used for fake-accented English, for testing.
Expand Down
Binary file not shown.
Loading