config.yaml 4.55 KB
Newer Older
1 2
# Configuration for i18n workflow.

3
locales:
4
    - en  # English - Source Language
5
    # - am  # Amharic
6
    - ar  # Arabic
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    # - 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
24
    - es_419  # Spanish (Latin America)
25 26 27 28 29 30 31 32 33 34 35
    # - 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
36
    - fr  # French
37 38
    # - gl  # Galician
    # - gu  # Gujarati
Sarina Canelake committed
39
    - he  # Hebrew
40
    - hi  # Hindi
41 42 43 44 45 46 47 48 49
    # - 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
50
    - ko_KR  # Korean (Korea)
51 52 53 54 55 56 57 58 59 60
    # - 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
61
    - pt_BR  # Portuguese (Brazil)
62 63
    # - pt_PT  # Portuguese (Portugal)
    # - ro  # Romanian
Sarina Canelake committed
64
    - ru  # Russian
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
    # - 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
80
    - zh_CN  # Chinese (China)
81 82
    # - zh_HK  # Chinese (Hong Kong)
    # - zh_TW  # Chinese (Taiwan)
83 84


85 86 87 88
# The locales used for fake-accented English, for testing.
dummy_locales:
    - eo
    - fake2
89
    - rtl  # Fake testing language for Arabic
Ned Batchelder committed
90

91 92 93 94
# Directories we don't search for strings.
ignore_dirs:
    - common/static/xmodule/modules
    - common/static/xmodule/descriptors
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
    # Directories with no user-facing code.
    - '*/migrations'
    # Directories that are not our code.
    - node_modules
    # Directories containing files that can't have strings in them.
    - conf
    - docs
    - '*/fonts'
    - '*/img'
    - '*/images'
    - '*/sass'
    - '*/css'
    # Directories that only contain tests.
    - common/test
    - test_root
    - '*/terrain'
    - '*/spec'
    - '*/tests'
    - '*/features'
114 115 116
    # Directories full of auto-generated JS
    - lms/static/js/i18n
    - cms/static/js/i18n
117

118 119 120 121 122 123 124 125

# Third-party installed apps that we also extract strings from.  When adding a
# file here, also add it to the django.po merge files below, and to the
# .tx/config file so that it will be pushed to and pulled from transifex.
third_party:
    - wiki


Ned Batchelder committed
126 127 128 129 130 131 132 133 134 135 136 137
# 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.
138
    djangojs-partial.po:
Ned Batchelder committed
139 140 141 142 143
        djangojs-studio.po:
            - cms/*
    mako.po:
        mako-studio.po:
            - cms/*
144 145 146
    underscore.po:
        underscore-studio.po:
            - cms/*
147 148 149 150 151 152 153 154 155

# How should the generate step merge files?
generate_merge:
    django.po:
        - django-partial.po
        - django-studio.po
        - mako.po
        - mako-studio.po
        - messages.po
156
        - wiki.po
157
    djangojs.po:
158
        - djangojs-partial.po
159
        - djangojs-studio.po
160
        - underscore.po
161
        - underscore-studio.po