-
Notifications
You must be signed in to change notification settings - Fork 59
MCKIN-17533 korean Translations added #283
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1eacbf0
Merge pull request #1 from open-craft/master
musmanmalik 3f0be60
Merge pull request #2 from open-craft/master
musmanmalik 164ff3e
Merge pull request #3 from open-craft/master
musmanmalik 1ee0cd1
Merge pull request #4 from open-craft/master
musmanmalik 7be12e0
Korean translations added
musmanmalik f9f4303
extra directory removed
musmanmalik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.