forked from alliedmodders/sourcemod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring languages into the tree (alliedmodders#1625)
* translations: bring languages into tree * Update translation phrases changed since 2021 * Update packaging script to include all translations * Update languages.cfg * Add Latin American Spanish translations This is a copy of spanish for now. * Ignore "en" when looking for translation folders English is the default and doesn't use a subfolder. * Only add each translation folder once Korean "ko" is in there twice. * Compare language coverage to english All phrases are compared to the english baseline files and any differences are reported. The differences are pushed to a Github Project as well for an easier overview. Thank you to @nosoop for sharing the Python SMC parser! * Add link to README --------- Co-authored-by: Peace-Maker <[email protected]>
- Loading branch information
1 parent
d8fd60b
commit 48150e0
Showing
696 changed files
with
47,789 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Update translation project | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'translations/**' | ||
jobs: | ||
update_translations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v4 | ||
name: Setup Python 3.10 | ||
with: | ||
python-version: 3.10 | ||
|
||
- name: Install Python dependencies | ||
working-directory: tools/language_check | ||
run: | | ||
python -m pip install --upgrade -r requirements.txt | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PEM }} | ||
|
||
- name: Get project data | ||
working-directory: tools/language_check | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
ORGANIZATION: alliedmodders | ||
PROJECT_NUMBER: 1 | ||
run: | | ||
python ./compare_translation_phrases.py | ||
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 |
---|---|---|
@@ -1,4 +1,37 @@ | ||
"Languages" | ||
{ | ||
"en" "English" | ||
"en" "English" // English | ||
"ar" "Arabic" // Arabic | ||
"pt" "Brazilian" // Brazilian Portuguese | ||
"bg" "Bulgarian" // Bulgarian | ||
"cze" "Czech" // Czech | ||
"da" "Danish" // Danish | ||
"nl" "Dutch" // Dutch | ||
"fi" "Finnish" // Finnish | ||
"fr" "French" // French | ||
"de" "German" // German | ||
"el" "Greek" // Greek | ||
"he" "Hebrew" // Hebrew | ||
"hu" "Hungarian" // Hungarian | ||
"it" "Italian" // Italian | ||
"jp" "Japanese" // Japanese | ||
"ko" "KoreanA" // Korean | ||
"ko" "Korean" // Korean | ||
"las" "LatAm" // Latin American Spanish | ||
"lv" "Latvian" // Latvian | ||
"lt" "Lithuanian" // Lithuanian | ||
"no" "Norwegian" // Norwegian | ||
"pl" "Polish" // Polish | ||
"pt_p" "Portuguese" // Portuguese | ||
"ro" "Romanian" // Romanian | ||
"ru" "Russian" // Russian | ||
"chi" "SChinese" // Chinese (Simplified) | ||
"sk" "Slovak" // Slovak | ||
"es" "Spanish" // Spanish | ||
"sv" "Swedish" // Swedish | ||
"zho" "TChinese" // Chinese (Traditional) | ||
"th" "Thai" // Thai | ||
"tr" "Turkish" // Turkish | ||
"ua" "Ukrainian" // Ukrainian | ||
"vi" "Vietnamese" // Vietnamese | ||
} |
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.