-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add translations of es_419 and es_ES
- Loading branch information
Showing
18 changed files
with
699 additions
and
29 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 |
---|---|---|
|
@@ -54,7 +54,6 @@ coverage.xml | |
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
|
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,21 @@ | ||
PACKAGE_NAME := h5pxblock | ||
EXTRACT_DIR := $(PACKAGE_NAME)/locale/en/LC_MESSAGES | ||
EXTRACTED_DJANGO := $(EXTRACT_DIR)/django-partial.po | ||
EXTRACTED_DJANGOJS := $(EXTRACT_DIR)/djangojs-partial.po | ||
EXTRACTED_TEXT := $(EXTRACT_DIR)/text.po | ||
JS_TARGET := public/js/translations | ||
TRANSLATIONS_DIR := $(PACKAGE_NAME)/translations | ||
|
||
extract_translations: symlink_translations ## extract strings to be translated, outputting .po files | ||
cd $(PACKAGE_NAME) && i18n_tool extract | ||
mv $(EXTRACTED_DJANGO) $(EXTRACTED_TEXT) | ||
if [ -f "$(EXTRACTED_DJANGOJS)" ]; then cat $(EXTRACTED_DJANGOJS) >> $(EXTRACTED_TEXT); rm $(EXTRACTED_DJANGOJS); fi | ||
|
||
compile_translations: symlink_translations ## compile translation files, outputting .mo files for each supported language | ||
cd $(PACKAGE_NAME) && i18n_tool generate | ||
|
||
detect_changed_source_translations: | ||
cd $(PACKAGE_NAME) && i18n_tool changed | ||
|
||
symlink_translations: | ||
if [ ! -d "$(TRANSLATIONS_DIR)" ]; then ln -s locale/ $(TRANSLATIONS_DIR); fi |
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
Empty file.
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,93 @@ | ||
# Configuration for i18n workflow. | ||
|
||
locales: | ||
- en # English - Source Language | ||
# - am # Amharic | ||
- ar # Arabic | ||
# - az # Azerbaijani | ||
# - bg_BG # Bulgarian (Bulgaria) | ||
# - bn_BD # Bengali (Bangladesh) | ||
# - bn_IN # Bengali (India) | ||
# - bs # Bosnian | ||
# - ca # Catalan | ||
# - ca@valencia # Catalan (Valencia) | ||
# - cs # Czech | ||
# - cy # Welsh | ||
# - da # Danish | ||
# - de_DE # German (Germany) | ||
# - el # Greek | ||
# - en_GB # English (United Kingdom) | ||
# # Don't pull these until we figure out why pages randomly display in these locales, | ||
# # when the user's browser is in English and the user is not logged in. | ||
# #- en@lolcat # LOLCAT English | ||
# #- en@pirate # Pirate English | ||
- es_419 # Spanish (Latin America) | ||
# - es_AR # Spanish (Argentina) | ||
# - es_EC # Spanish (Ecuador) | ||
- es_ES # Spanish (Spain) | ||
# - es_MX # Spanish (Mexico) | ||
# - es_PE # Spanish (Peru) | ||
# - et_EE # Estonian (Estonia) | ||
# - eu_ES # Basque (Spain) | ||
# - fa # Persian | ||
# - fa_IR # Persian (Iran) | ||
# - fi_FI # Finnish (Finland) | ||
# - fil # Filipino | ||
- fr # French | ||
# - gl # Galician | ||
# - gu # Gujarati | ||
- he # Hebrew | ||
- hi # Hindi | ||
# - hr # Croatian | ||
# - hu # Hungarian | ||
# - hy_AM # Armenian (Armenia) | ||
# - id # Indonesian | ||
# - it_IT # Italian (Italy) | ||
# - ja_JP # Japanese (Japan) | ||
# - kk_KZ # Kazakh (Kazakhstan) | ||
# - km_KH # Khmer (Cambodia) | ||
# - kn # Kannada | ||
- ko_KR # Korean (Korea) | ||
# - lt_LT # Lithuanian (Lithuania) | ||
# - ml # Malayalam | ||
# - mn # Mongolian | ||
# - mr # Marathi | ||
# - ms # Malay | ||
# - nb # Norwegian Bokmål | ||
# - ne # Nepali | ||
# - nl_NL # Dutch (Netherlands) | ||
# - or # Oriya | ||
# - pl # Polish | ||
- pt_BR # Portuguese (Brazil) | ||
# - pt_PT # Portuguese (Portugal) | ||
# - ro # Romanian | ||
- ru # Russian | ||
# - si # Sinhala | ||
# - sk # Slovak | ||
# - sl # Slovenian | ||
# - sq # Albanian | ||
# - sr # Serbian | ||
# - sv # Swedish | ||
# - sw # Swahili | ||
# - ta # Tamil | ||
# - te # Telugu | ||
# - th # Thai | ||
# - tr_TR # Turkish (Turkey) | ||
# - uk # Ukranian | ||
# - ur # Urdu | ||
# - uz # Uzbek | ||
# - vi # Vietnamese | ||
- zh_CN # Chinese (China) | ||
# - zh_HK # Chinese (Hong Kong) | ||
# - zh_TW # Chinese (Taiwan) | ||
|
||
|
||
# The locales used for fake-accented English, for testing. | ||
dummy_locales: | ||
- eo | ||
- rtl # Fake testing language for Arabic | ||
|
||
# Directories we don't search for strings. | ||
ignore_dirs: | ||
- '*/css' | ||
- 'public/js/translations' |
Binary file not shown.
Oops, something went wrong.