Skip to content

Commit

Permalink
feat!: remove Transifex calls for FC-0012 - OEP-58
Browse files Browse the repository at this point in the history
  • Loading branch information
shadinaif committed Feb 19, 2024
1 parent b6366b6 commit 02c50f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 224 deletions.
69 changes: 0 additions & 69 deletions .tx/config

This file was deleted.

26 changes: 2 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,8 @@ technical-docs: ## build the technical docs
guides: swagger ## build the developer guide docs
cd docs/guides; make clean html

# (IS_OPENEDX_TRANSLATIONS_WORKFLOW) is set to "yes" in the `extract-translation-source-files` GitHub actions
# workflow on the `openedx-translations` repository. See (extract translation source files) step here:
# https://github.com/openedx/openedx-translations/blob/main/.github/workflows/extract-translation-source-files.yml
# Related doc: https://docs.openedx.org/en/latest/developers/how-tos/enable-translations-new-repo.html
ifeq ($(IS_OPENEDX_TRANSLATIONS_WORKFLOW),yes)
extract_translations: ## extract localizable strings from sources
i18n_tool extract --no-segment -v
cd conf/locale/en/LC_MESSAGES && msgcat djangojs.po underscore.po -o djangojs.po
cd conf/locale/en/LC_MESSAGES && msgcat django.po wiki.po edx_proctoring_proctortrack.po mako.po -o django.po
cd conf/locale/en/LC_MESSAGES && rm wiki.po edx_proctoring_proctortrack.po mako.po underscore.po
else
extract_translations: ## extract localizable strings from sources
i18n_tool extract -v;
endif
i18n_tool extract

push_translations: ## push source strings to Transifex for translation
i18n_tool transifex push
Expand All @@ -72,21 +60,11 @@ pull_xblock_translations: ## pull xblock translations via atlas

pull_translations: ## pull translations from Transifex
git clean -fdX conf/locale
ifeq ($(OPENEDX_ATLAS_PULL),)
i18n_tool transifex pull
i18n_tool extract
i18n_tool dummy
i18n_tool generate --verbose 1
git clean -fdX conf/locale/rtl
git clean -fdX conf/locale/eo
i18n_tool validate --verbose
else
make pull_xblock_translations
make pull_plugin_translations
find conf/locale -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
atlas pull $(ATLAS_OPTIONS) translations/edx-platform/conf/locale:conf/locale
i18n_tool generate
endif
python manage.py compilemessages
paver i18n_compilejs


Expand Down
131 changes: 0 additions & 131 deletions conf/locale/config.yaml
Original file line number Diff line number Diff line change
@@ -1,95 +1,7 @@
# Configuration for i18n workflow.

# This will copy each source language to a new directory at the end of the i18n generate step
# which allows us to migrate to a new locale code without re-creating the Transifex project.
edx_lang_map:
zh_CN: zh_HANS

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)
- ka # Georgian
# - kk_KZ # Kazakh (Kazakhstan)
# - km_KH # Khmer (Cambodia)
# - kn # Kannada
- ko_KR # Korean (Korea)
- lt_LT # Lithuanian (Lithuania)
- lv # Latvian
# - 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
- sw_KE # Swahili (Kenya)

# - 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:
Expand Down Expand Up @@ -140,46 +52,3 @@ ignore_dirs:
third_party:
- wiki
- edx_proctoring_proctortrack


# How should .po files be segmented? See i18n/segment.py for details. Strings
# that are only found in a particular segment are segregated into that .po file
# so that translators can focus on separate parts of the product.
#
# We segregate Studio so we can provide new languages for LMS without having to
# also translate the Studio strings. LMS needs the strings from lms/* and
# common/*, so those will stay in the main .po file.
segment:
django-partial.po: # This .po file..
django-studio.po: # produces this .po file..
- cms/* # by segregating strings from these files.
# Anything that doesn't match a pattern stays in the original file.
djangojs-partial.po:
djangojs-studio.po:
- cms/*
djangojs-account-settings-view.po:
- lms/static/js/student_account/views/account_settings_view.js
# Segregating student account settings view strings, so that beta language message
# can be translated for wide set of partially supported languages.
mako.po:
mako-studio.po:
- cms/*
underscore.po:
underscore-studio.po:
- cms/*

# How should the generate step merge files?
generate_merge:
django.po:
- django-partial.po
- django-studio.po
- mako.po
- mako-studio.po
- wiki.po
- edx_proctoring_proctortrack.po
djangojs.po:
- djangojs-partial.po
- djangojs-studio.po
- djangojs-account-settings-view.po
- underscore.po
- underscore-studio.po

0 comments on commit 02c50f7

Please sign in to comment.