diff --git a/README.md b/README.md index 6a50815..243dccf 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Weblate is a libre web-based translation tool with tight version control integration. It provides two user interfaces, propagation of translations across components, quality checks and automatic linking to source files. -**Shipped version:** 4.4 +**Shipped version:** 4.5.1 ## Screenshots diff --git a/conf/settings.py b/conf/settings.py index c446497..5689750 100644 --- a/conf/settings.py +++ b/conf/settings.py @@ -12,7 +12,7 @@ ################################################################################ ################################################################################ # -# Copyright © 2012 - 2020 Michal Čihař +# Copyright © 2012 - 2021 Michal Čihař # # This file is part of Weblate # @@ -132,6 +132,7 @@ LANGUAGES = ( ("sl", "Slovenščina"), ("sq", "Shqip"), ("sr", "Српски"), + ("sr-latn", "Srpski"), ("sv", "Svenska"), ("tr", "Türkçe"), ("uk", "Українська"), @@ -152,6 +153,9 @@ USE_L10N = True # If you set this to False, Django will not use timezone-aware datetimes. USE_TZ = True +# Type of automatic primary key, introduced in Django 3.2 +DEFAULT_AUTO_FIELD = "django.db.models.AutoField" + # URL prefix to use, please see documentation for more details URL_PREFIX = "__PATHURL__" @@ -376,6 +380,7 @@ INSTALLED_APPS = [ "weblate.utils", "weblate.vcs", "weblate.wladmin", + "weblate.metrics", "weblate", # Optional: Git exporter "weblate.gitexport", @@ -699,6 +704,7 @@ CRISPY_TEMPLATE_PACK = "bootstrap3" # "weblate.checks.format.CFormatCheck", # "weblate.checks.format.PerlFormatCheck", # "weblate.checks.format.JavaScriptFormatCheck", +# "weblate.checks.format.LuaFormatCheck", # "weblate.checks.format.CSharpFormatCheck", # "weblate.checks.format.JavaFormatCheck", # "weblate.checks.format.JavaMessageFormatCheck", @@ -734,6 +740,7 @@ CRISPY_TEMPLATE_PACK = "bootstrap3" # "weblate.checks.source.MultipleFailingCheck", # "weblate.checks.source.LongUntranslatedCheck", # "weblate.checks.format.MultipleUnnamedFormatsCheck", +# "weblate.checks.glossary.GlossaryCheck", # ) # List of automatic fixups @@ -746,6 +753,7 @@ CRISPY_TEMPLATE_PACK = "bootstrap3" # List of enabled addons # WEBLATE_ADDONS = ( +# "weblate.addons.autotranslate.AutoTranslateAddon", # "weblate.addons.gettext.GenerateMoAddon", # "weblate.addons.gettext.UpdateLinguasAddon", # "weblate.addons.gettext.UpdateConfigureAddon", @@ -753,13 +761,16 @@ CRISPY_TEMPLATE_PACK = "bootstrap3" # "weblate.addons.gettext.GettextCustomizeAddon", # "weblate.addons.gettext.GettextAuthorComments", # "weblate.addons.cleanup.CleanupAddon", +# "weblate.addons.cleanup.RemoveBlankAddon", # "weblate.addons.consistency.LangaugeConsistencyAddon", # "weblate.addons.discovery.DiscoveryAddon", +# "weblate.addons.autotranslate.AutoTranslateAddon", # "weblate.addons.flags.SourceEditAddon", # "weblate.addons.flags.TargetEditAddon", # "weblate.addons.flags.SameEditAddon", # "weblate.addons.flags.BulkEditAddon", # "weblate.addons.generate.GenerateFileAddon", +# "weblate.addons.generate.PseudolocaleAddon", # "weblate.addons.json.JSONCustomizeAddon", # "weblate.addons.properties.PropertiesSortAddon", # "weblate.addons.git.GitSquashAddon", @@ -768,7 +779,6 @@ CRISPY_TEMPLATE_PACK = "bootstrap3" # "weblate.addons.resx.ResxUpdateAddon", # "weblate.addons.yaml.YAMLCustomizeAddon", # "weblate.addons.cdn.CDNJSAddon", -# "weblate.addons.autotranslate.AutoTranslateAddon", # ) # E-mail address that error messages come from. @@ -792,6 +802,7 @@ CACHES = { "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", "PARSER_CLASS": "redis.connection.HiredisParser", + # If you set password here, adjust CELERY_BROKER_URL as well "PASSWORD": None, "CONNECTION_POOL_KWARGS": {}, }, diff --git a/manifest.json b/manifest.json index 133dcdc..41e51e0 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "A translation platform using Git and Python", "fr": "Une plateforme de traduction utilisant Git et Python" }, - "version": "4.4~ynh1", + "version": "4.5.1~ynh1", "url": "https://weblate.org", "license": "AGPL-3.0", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 064e65e..68ad43d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -12,7 +12,7 @@ pkg_dependencies="libxml2-dev libxslt-dev libfreetype6-dev libjpeg-dev libz-dev libpq-dev libglib2.0-dev mailutils python-celery-common hub" # Weblate's version for PIP and settings file -weblate_version="4.4" +weblate_version="4.5.1" debian_maj_version=$(sed 's/\..*//' /etc/debian_version)