Update credits again. I failed to notice not all languages were included.
- Remove not included languages from the installer. - Add credits for other languages, even if they are not included. Differential Revision: https://code.wildfiregames.com/D3568 This was SVN commit r24927.
This commit is contained in:
parent
98f2510632
commit
110402eae0
6
source/tools/dist/0ad.nsi
vendored
6
source/tools/dist/0ad.nsi
vendored
@ -90,21 +90,15 @@
|
||||
!insertmacro MUI_LANGUAGE "English" ;first language is the default language
|
||||
!insertmacro MUI_LANGUAGE "Asturian"
|
||||
!insertmacro MUI_LANGUAGE "Basque"
|
||||
!insertmacro MUI_LANGUAGE "Bulgarian"
|
||||
!insertmacro MUI_LANGUAGE "Catalan"
|
||||
!insertmacro MUI_LANGUAGE "Czech"
|
||||
!insertmacro MUI_LANGUAGE "Dutch"
|
||||
!insertmacro MUI_LANGUAGE "French"
|
||||
!insertmacro MUI_LANGUAGE "Galician"
|
||||
!insertmacro MUI_LANGUAGE "German"
|
||||
!insertmacro MUI_LANGUAGE "Greek"
|
||||
!insertmacro MUI_LANGUAGE "Hungarian"
|
||||
!insertmacro MUI_LANGUAGE "Indonesian"
|
||||
!insertmacro MUI_LANGUAGE "Italian"
|
||||
!insertmacro MUI_LANGUAGE "Malay"
|
||||
!insertmacro MUI_LANGUAGE "Norwegian"
|
||||
!insertmacro MUI_LANGUAGE "Polish"
|
||||
!insertmacro MUI_LANGUAGE "Portuguese"
|
||||
!insertmacro MUI_LANGUAGE "PortugueseBR"
|
||||
!insertmacro MUI_LANGUAGE "Russian"
|
||||
!insertmacro MUI_LANGUAGE "ScotsGaelic"
|
||||
|
4
source/tools/dist/build-archives.sh
vendored
4
source/tools/dist/build-archives.sh
vendored
@ -14,8 +14,10 @@ echo "Building archives"
|
||||
|
||||
echo "Filtering languages"
|
||||
# Included languages
|
||||
# CJK languages are excluded, as they are in mods.
|
||||
# Note: Needs to be edited manually at each release.
|
||||
# Keep in sync with source/tools/i18n/creditTranslators.py and with the installer languages in 0ad.nsi
|
||||
LANGS=("ast" "bg" "ca" "cs" "de" "el" "en_GB" "es" "eu" "fr" "gd" "gl" "hu" "id" "it" "ms" "nb" "nl" "pl" "pt_BR" "pt_PT" "ru" "sk" "sv" "tr" "uk")
|
||||
LANGS=("ast" "ca" "de" "el" "en_GB" "es" "eu" "fr" "gd" "hu" "id" "it" "nl" "pl" "pt_BR" "ru" "sk" "sv" "tr" "uk")
|
||||
|
||||
REGEX=$(printf "\|%s" "${LANGS[@]}")
|
||||
REGEX=".*/\("${REGEX:2}"\)\.[-A-Za-z0-9_.]\+\.po"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (C) 2020 Wildfire Games.
|
||||
# Copyright (C) 2021 Wildfire Games.
|
||||
# This file is part of 0 A.D.
|
||||
#
|
||||
# 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -31,34 +31,84 @@ once before updateTemplates.py.
|
||||
|
||||
import json, os, glob, re
|
||||
|
||||
# Credited languages - Keep in sync with source/tools/dist/remove-incomplete-translations.sh
|
||||
# We credit everyone that helps translating even if the translations don't
|
||||
# make it into the game.
|
||||
# Note: Needs to be edited manually when new languages are added on Transifex.
|
||||
langs = {
|
||||
'ast': 'Asturianu',
|
||||
'bg': 'Български',
|
||||
'ca': 'Català',
|
||||
'cs': 'Čeština',
|
||||
'de': 'Deutsch',
|
||||
'el': 'Ελληνικά',
|
||||
'en_GB': 'English (UK)',
|
||||
'es': 'Español',
|
||||
'eu': 'Euskara',
|
||||
'fr': 'Français',
|
||||
'gd': 'Gàidhlig',
|
||||
'gl': 'Galego',
|
||||
'hu': 'Magyar',
|
||||
'id': 'Bahasa Indonesia',
|
||||
'it': 'Italiano',
|
||||
'ms': 'Bahasa Melayu',
|
||||
'nb': 'Norsk bokmål',
|
||||
'nl': 'Nederlands',
|
||||
'pl': 'Polski',
|
||||
'pt_BR': 'Português (Brasil)',
|
||||
'pt_PT': 'Português (Portugal)',
|
||||
'ru': 'Русский',
|
||||
'sk': 'Slovenčina',
|
||||
'sv': 'Svenska',
|
||||
'tr': 'Türkçe',
|
||||
'uk': 'Українська'}
|
||||
'af': 'Afrikaans',
|
||||
'ar': 'Arabic',
|
||||
'ast': 'Asturian',
|
||||
'az': 'Azerbaijani',
|
||||
'bar': 'Bavarian',
|
||||
'be': 'Belarusian',
|
||||
'bg': 'Bulgarian',
|
||||
'bn': 'Bengali',
|
||||
'br': 'Breton',
|
||||
'ca': 'Catalan',
|
||||
'cs': 'Czech',
|
||||
'cy': 'Welsh',
|
||||
'da': 'Danish',
|
||||
'de': 'German',
|
||||
'el': 'Greek',
|
||||
'en_GB': 'English (United Kingdom)',
|
||||
'eo': 'Esperanto',
|
||||
'es': 'Spanish',
|
||||
'es_AR': 'Spanish (Argentina)',
|
||||
'es_CL': 'Spanish (Chile)',
|
||||
'es_MX': 'Spanish (Mexico)',
|
||||
'et': 'Estonian',
|
||||
'eu': 'Basque',
|
||||
'fa': 'Persian',
|
||||
'fi': 'Finnish',
|
||||
'fr': 'French',
|
||||
'fr_CA': 'French (Canada)',
|
||||
'frp': 'Franco-Provençal (Arpitan)',
|
||||
'ga': 'Irish',
|
||||
'gd': 'Gaelic: Scottish',
|
||||
'gl': 'Galician',
|
||||
'he': 'Hebrew',
|
||||
'hi': 'Hindi',
|
||||
'hr': 'Croatian',
|
||||
'hu': 'Hungarian',
|
||||
'hy': 'Armenian',
|
||||
'id': 'Indonesian',
|
||||
'it': 'Italian',
|
||||
'ja': 'Japanese',
|
||||
'jbo': 'Lojban',
|
||||
'ka': 'Georgian',
|
||||
'ko': 'Korean',
|
||||
'krl': 'Karelian',
|
||||
'ku': 'Kurdish',
|
||||
'la': 'Latin',
|
||||
'lt': 'Lithuanian',
|
||||
'lv': 'Latvian',
|
||||
'mk': 'Macedonian',
|
||||
'ml': 'Malayalam',
|
||||
'mr': 'Marathi',
|
||||
'ms': 'Malay',
|
||||
'nb': 'Norwegian Bokmål',
|
||||
'nl': 'Dutch',
|
||||
'pl': 'Polish',
|
||||
'pt_BR': 'Portuguese (Brazil)',
|
||||
'pt_PT': 'Portuguese (Portugal)',
|
||||
'ro': 'Romanian',
|
||||
'ru': 'Russian',
|
||||
'sk': 'Slovak',
|
||||
'sl': 'Slovenian',
|
||||
'sq': 'Albanian',
|
||||
'sr': 'Serbian',
|
||||
'sv': 'Swedish',
|
||||
'szl': 'Silesian',
|
||||
'ta_IN': 'Tamil (India)',
|
||||
'te': 'Telugu',
|
||||
'th': 'Thai',
|
||||
'tl': 'Tagalog',
|
||||
'tr': 'Turkish',
|
||||
'uk': 'Ukrainian',
|
||||
'uz': 'Uzbek',
|
||||
'vi': 'Vietnamese',
|
||||
'zh': 'Chinese',
|
||||
'zh_TW': 'Chinese (Taiwan)'}
|
||||
|
||||
root = '../../../'
|
||||
|
||||
@ -90,7 +140,7 @@ for lang in langs.keys():
|
||||
for location in poLocations:
|
||||
files = glob.glob(root + location + lang + '.*.po')
|
||||
for file in files:
|
||||
poFile = open(file.replace('\\', '/'))
|
||||
poFile = open(file.replace('\\', '/'), encoding='utf-8')
|
||||
reached = False
|
||||
for line in poFile:
|
||||
if reached:
|
||||
@ -116,6 +166,6 @@ for (langCode, langList) in sorted(langsLists.items()):
|
||||
newJSONData['Content'][-1]['List'].append({'name': name})
|
||||
|
||||
# Save the JSON data to the credits file
|
||||
creditsFile = open(root + creditsLocation, 'w')
|
||||
creditsFile = open(root + creditsLocation, 'w', encoding='utf-8')
|
||||
json.dump(newJSONData, creditsFile, indent=4)
|
||||
creditsFile.close()
|
||||
|
Loading…
Reference in New Issue
Block a user