-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
gettext
for JS translation
JS translations will not be shown fetched without directing (gettext) to the correct javascript file Refs: FC-0012 OEP-58
- Loading branch information
Showing
17 changed files
with
346 additions
and
104 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,12 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
from django.core.management import execute_from_command_line | ||
|
||
if __name__ == "__main__": | ||
os.environ.setdefault( | ||
"DJANGO_SETTINGS_MODULE", | ||
"translation_settings" | ||
) | ||
|
||
execute_from_command_line(sys.argv) |
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
|
||
locales: | ||
- en # English - Source Language | ||
|
||
ignore_dirs: | ||
- public |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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,54 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"POT-Creation-Date: 2016-05-27 11:04+0500\n" | ||
"PO-Revision-Date: 2016-05-27 11:04+0500\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"Language: en\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: recommender.py | ||
msgid "The resource you are attempting to provide already exists" | ||
msgstr "" | ||
|
||
#: recommender.py | ||
msgid "" | ||
"The resource you are attempting to provide has been disallowed by the staff. " | ||
"Reason: " | ||
msgstr "" | ||
|
||
#: recommender.py | ||
msgid "The selected resource does not exist" | ||
msgstr "" | ||
|
||
#: recommender.py | ||
msgid "Size of uploaded file exceeds threshold" | ||
msgstr "" | ||
|
||
#: recommender.py | ||
msgid "The configuration of pyfs is not properly set" | ||
msgstr "" | ||
|
||
#: recommender.py:729 | ||
msgid "Endorse resource without permission" | ||
msgstr "" | ||
|
||
#: recommender.py | ||
msgid "You don't have the permission to remove this resource" | ||
msgstr "" | ||
|
||
#: recommender.py | ||
msgid "Only staff can import resources" | ||
msgstr "" | ||
|
||
#: recommender.py | ||
msgid "Please submit the JSON file obtained with the download resources button" | ||
msgstr "" | ||
|
||
#: recommender.py | ||
msgid "Tried to access flagged resources without staff permission" | ||
msgstr "" |
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -8,3 +8,4 @@ mako | |
simplejson | ||
webob | ||
web_fragments | ||
edx-i18n-tools |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.