Configurație¶
Toate setările sunt stocate în settings.py (așa cum este normal pentru Django).
Notă
After changing any of these settings, you need to restart Weblate — both WSGI and Celery processes.
În cazul în care este rulat ca mod_wsgi, trebuie să reporniți Apache pentru a reîncărca configurația.
Vezi și
Please also check Django’s documentation for parameters configuring Django itself.
ADMINS_CONTACT¶
Configures where contact form sends e-mails. If not configured,
e-mail addresses from ADMINS are used.
Configure this as a list of e-mail addresses:
ADMINS_CONTACT = ["admin@example.com", "support@example.com"]
Vezi și
ALLOWED_ASSET_DOMAINS¶
Added in version 5.14.
Configures which domains are allowed for fetching assets in Weblate.
This enhances security by preventing loading assets from untrusted sources. Assets are downloaded once by the Weblate server and stored locally, rather than being served directly from external domains to users.
The allowlist is applied to the initial URL and to every HTTP redirect target before Weblate follows it. Redirects to hosts outside of this allowlist are rejected.
It expects a list of host/domain names. You can use fully qualified names
(e.g www.example.com) or prepend with a period as a wildcard to match
all subdomains (e.g .example.com will match cdn.example.com or static.example.com).
Defaults to ["*"], which allows all domains.
Example
ALLOWED_ASSET_DOMAINS = [
# Allows only cdn.anotherdomain.org
"cdn.anotherdomain.org",
# Allows example.com and all its subdomains
".example.com",
]
This is currently used in the following places:
Screenshot uploads, see Screenshots and visual context
Remote HTML downloads for the CDN de localizare JavaScript add-on
ALLOWED_MACHINERY_DOMAINS¶
Configures which custom machinery domains are explicitly allowed in project-level machine translation configuration.
This setting applies only to machinery services and does not affect
ALLOWED_ASSET_DOMAINS.
It expects a list of host/domain names. You can use fully qualified names or prepend with a period as a wildcard to match all subdomains.
Defaults to [].
The allowlist affects project-managed machinery in two ways: it permits the configured endpoint during outbound validation, and it marks matching hosts as trusted when deciding whether remote provider error details or response bodies can be shown to the user. For direct connections, runtime checks still reject destinations that resolve to private or otherwise non-public addresses. When an HTTP(S) proxy is used, runtime validation falls back to hostname validation and does not perform the same local DNS or peer-IP checks.
ALLOWED_ASSET_SIZE¶
Added in version 5.14.
Configures size limit for fetching assets in Weblate. Defaults to 10 MB.
Vezi și
ASSET_PRIVATE_ALLOWLIST¶
Added in version 2025.5.
Defines hostnames or domains exempt from ASSET_RESTRICT_PRIVATE
for remote asset downloads that enforce private-target checks. Entries follow
Django host matching semantics, so values such as assets.internal.example
or .internal.example can be used.
This does not replace ALLOWED_ASSET_DOMAINS; remote assets must
still match the asset domain allowlist.
Default configuration:
ASSET_PRIVATE_ALLOWLIST = []
ASSET_RESTRICT_PRIVATE¶
Added in version 2025.5.
Reject remote asset URLs pointing to internal or non-public addresses unless
the target host is included in ASSET_PRIVATE_ALLOWLIST. On by
default.
When enabled, hostnames that cannot be resolved during validation are rejected
unless they are explicitly included in ASSET_PRIVATE_ALLOWLIST.
This currently applies to screenshot URL uploads and remote HTML downloads for
the CDN de localizare JavaScript add-on.
ALTCHA_COST¶
Added in version 5.18.
Argon2id time cost for the ALTCHA proof-of-work challenge. Defaults to 3.
Replaces ALTCHA_MAX_NUMBER, which applied to the removed ALTCHA widget v2.
ALTCHA_MEMORY_COST¶
Added in version 5.18.
Argon2id memory cost in KiB. Defaults to 65536.
ALTCHA_PARALLELISM¶
Added in version 5.18.
Argon2id parallelism factor. Defaults to 1.
Vezi și
ANONYMOUS_USER_NAME¶
Numele de utilizator al utilizatorilor care nu sunt conectați.
Vezi și
AUDITLOG_EXPIRY¶
The maximum number of days Weblate will keep audit logs containing information about the account activity.
Valoarea implicită este de 180 de zile.
AUTH_LOCK_ATTEMPTS¶
Numărul maxim de încercări de autentificare eșuate înainte de a se aplica limitarea vitezei.
Aceasta se aplică în prezent în următoarele locații:
Conectați-vă. Șterge parola contului, împiedicând utilizatorul să se conecteze fără a solicita o nouă parolă.
Password reset. Prevents new e-mails from being sent, avoiding spamming users with too many password-reset attempts.
Valoarea implicită este 10.
Vezi și
AUTO_UPDATE¶
Actualizează zilnic toate depozitele.
Sugestie
Util dacă nu folosiți Cârlige notificare pentru a actualiza automat depozitele Weblate.
Notă
Pe lângă selectarea șirurilor de caractere, există opțiuni de activare/dezactivare pentru compatibilitate retroactivă.
The options are:
"none"Nu există actualizări zilnice.
"remote"alsoFalseActualizați numai telecomenzile.
"full"alsoTrueActualizarea telecomenzilor și îmbinarea copiei de lucru.
Notă
Acest lucru necesită ca Sarcini de fundal folosind Celery să funcționeze și va intra în vigoare după ce va fi repornit.
AVATAR_URL_PREFIX¶
Prefix pentru construirea URL-urilor avatarurilor ca: ${{AVATAR_URL_PREFIX}/avatar/${MAIL_HASH}?${{PARAMS}}. Se știe că funcționează următoarele servicii:
- Gravatar (implicit), conform https://gravatar.com/
AVATAR_URL_PREFIX = 'https://www.gravatar.com/'- Libravatar, conform https://www.libravatar.org/
AVATAR_URL_PREFIX = 'https://www.libravatar.org/'
AUTH_TOKEN_VALID¶
Cât timp sunt valabile simbolul de autentificare și parola temporară din e-mailurile de resetare a parolei. Se setează în număr de secunde, implicit la 172800 (2 zile).
AUTH_PASSWORD_DAYS¶
How many days Weblate rejects reusing a previously used password for a user.
The checking is based on the audit log, AUDITLOG_EXPIRY needs to be
at least same as this.
Notă
Modificările de parole efectuate înainte de Weblate 2.15 nu vor fi luate în considerare în această politică.
Valoarea implicită este de 180 de zile.
AUTOFIX_LIST¶
Lista de corecții automate care trebuie aplicate la salvarea unui șir de caractere.
Notă
Provide a fully-qualified path to the Python class that implements the autofixer interface.
Available fixes are described at Reparații automate.
Puteți selecta pe care să le utilizați:
AUTOFIX_LIST = (
"weblate.trans.autofixes.whitespace.SameBookendingWhitespace",
"weblate.trans.autofixes.chars.ReplaceTrailingDotsWithEllipsis",
)
BACKGROUND_TASKS¶
Added in version 4.5.2.
Definește cât de des trebuie declanșate sarcinile de întreținere de lungă durată pentru o componentă.
În momentul de față acest lucru controlează:
Traducere automată add-on
Verificări și reparații recalculare
Opțiuni posibile:
monthly(aceasta este valoarea implicită)weeklydailynever
Notă
Creșterea frecvenței nu este recomandată atunci când Weblate conține mii de componente.
BASIC_LANGUAGES¶
Added in version 4.4.
List of languages to offer users for starting a new translation. When not specified, a built-in list is used (which includes all commonly used languages, but without country specific variants).
This only limits non privileged users to add unwanted languages. Project admins are still presented with the full selection of languages defined in Weblate.
Notă
This does not define new languages for Weblate — it only filters existing ones in the database.
Exemplu:
BASIC_LANGUAGES = {"cs", "it", "ja", "en"}
Vezi și
BORG_EXTRA_ARGS¶
Added in version 4.9.
Puteți trece argumente suplimentare la borg create atunci când sunt declanșate copiile de rezervă încorporate.
Exemplu:
BORG_EXTRA_ARGS = ["--exclude", "vcs/"]
CACHE_DIR¶
Added in version 4.16.
Directory where Weblate stores cache files. Defaults to cache subfolder
in DATA_DIR.
Change this to local or temporary filesystem if DATA_DIR is on a
network filesystem.
Weblate stores generated helper files here and executes some of them, so
CACHE_DIR has to be writable and mounted on a filesystem that allows
execution. Avoid using noexec mount options for this directory.
Containerul Docker utilizează un volum separat pentru acest lucru, vezi Volumele containerelor Docker.
De obicei, există următoarele subdirectoare:
sshGenerated helper files used for VCS access.
fontsfont-config cache for Gestionarea fonturilor.
avatarCached user avatars, see Avataruri.
staticLocația implicită pentru fișierele Django statice, specificată de
STATIC_ROOT. Vezi Servirea fișierelor statice.tesseractOCR trained data for Screenshots and visual context.
CSP_SCRIPT_SRC, CSP_IMG_SRC, CSP_CONNECT_SRC, CSP_STYLE_SRC, CSP_FONT_SRC, CSP_FORM_SRC¶
Customize the Content-Security-Policy header for Weblate. The header is automatically generated based on enabled integrations with third-party services (Matomo, Google Analytics, Sentry, …).
All these default to an empty list.
Exemplu:
# Enable Cloudflare Javascript optimizations
CSP_SCRIPT_SRC = ["ajax.cloudflare.com"]
CHECK_LIST¶
Lista controalelor de calitate care trebuie efectuate asupra unei traduceri.
Notă
Furnizați o cale complet calificată către clasa Python care implementează interfața de verificare.
Ajustați lista de controale pentru a le include pe cele relevante pentru dumneavoastră.
All built-in Controale de calitate are turned on by default, from where you can change these settings. By default they are commented out in Exemplu de configurare so that default values are used. New checks are then carried out for each new Weblate version.
Puteți dezactiva toate verificările:
CHECK_LIST = ()
Puteți porni doar câteva:
CHECK_LIST = (
"weblate.checks.chars.BeginNewlineCheck",
"weblate.checks.chars.EndNewlineCheck",
"weblate.checks.chars.MaxLengthCheck",
)
Notă
Changing this setting only affects newly changed translations. Existing checks
will still be stored in the database. To also apply changes to the stored translations, run
updatechecks.
COMMIT_PENDING_HOURS¶
Numărul de ore care trec între confirmarea modificărilor în așteptare prin intermediul sarcinii de fundal.
COMPONENT_ZIP_UPLOAD_MAX_SIZE¶
Added in version 5.17.1.
Configures the maximum size, in bytes, for uploaded component ZIP files. Defaults to 50 MB.
In Docker, configure this using the WEBLATE_COMPONENT_ZIP_UPLOAD_MAX_SIZE
environment variable.
Vezi și
CONTACT_FORM¶
Added in version 4.6.
Configures how e-mail from the contact form is being sent. Choose a configuration that matches the configuration of your mail server.
"reply-to"The sender is used as Reply-To, this is the default behaviour.
"from"The sender is used as From. Your mail server needs to allow sending such e-mails.
"disabled"Disables the contact form entirely.
Added in version 5.15.
Vezi și
DATA_DIR¶
Dosarul în care Weblate stochează toate datele. Acesta conține linkuri către depozitele VCS, un index fulltext și diverse fișiere de configurare pentru instrumente externe.
De obicei, există următoarele subdirectoare:
homeDirectorul principal utilizat pentru apelarea scripturilor.
sshChei SSH și configurare.
mediaLocația implicită pentru fișierele media Django, specificată de
MEDIA_ROOT. Conține capturi de ecran încărcate, vezi Screenshots and visual context.vcsVersion-control repositories for translations.
backupsDaily backup data. Please check Date descărcate pentru copii de rezervă for details.
fonts:Fonturi încărcate de utilizator, vezi Gestionarea fonturilor.
cacheVarious caches. Can be placed elsewhere using
CACHE_DIR.Containerul Docker utilizează un volum separat pentru acest lucru, vezi Volumele containerelor Docker.
Notă
This directory has to be writable by Weblate. Running it as WSGI means
the www-data user should have write access to it.
Cel mai simplu mod de a realiza acest lucru este de a transforma utilizatorul în proprietar al directorului:
sudo chown www-data:www-data -R $DATA_DIR
Valoarea implicită este /home/weblate/data, dar este de așteptat ca aceasta să fie configurată.
DATABASE_BACKUP¶
Dacă copiile de rezervă ale bazei de date trebuie să fie stocate ca text simplu, comprimate sau sărite. Valorile autorizate sunt:
"plain""compressed""none"
DEFAULT_ACCESS_CONTROL¶
The default access-control setting for new projects:
0Public
1Protected
100Private
200Custom
Utilizați Custom dacă gestionați ACL manual, ceea ce înseamnă că nu vă bazați pe gestionarea internă a Weblate.
Vezi și
DEFAULT_AUTO_WATCH¶
Added in version 4.5.
Configurează dacă Automatically watch projects on contribution trebuie activat pentru utilizatorii noi. Valoarea implicită este True.
Vezi și
DEFAULT_RESTRICTED_COMPONENT¶
Added in version 4.1.
Valoarea implicită pentru restricția componentelor.
DEFAULT_ADD_MESSAGE, DEFAULT_ADDON_MESSAGE, DEFAULT_COMMIT_MESSAGE, DEFAULT_DELETE_MESSAGE, DEFAULT_MERGE_MESSAGE¶
Mesaje de confirmare implicite pentru diferite operații, vă rugăm să verificați Configurația componentei pentru detalii.
DEFAULT_ADDONS¶
Default add-ons to install for every created component.
Notă
Această setare afectează numai componentele nou create.
Exemplu:
DEFAULT_ADDONS = {
# Add-on with no parameters
"weblate.flags.target_edit": {},
# Add-on with parameters
"weblate.autotranslate.autotranslate": {
"mode": "suggest",
"filter_type": "todo",
"auto_source": "mt",
"component": "",
"engines": ["weblate-translation-memory"],
"threshold": "80",
},
}
Vezi și
DEFAULT_COMMITER_EMAIL¶
Committer e-mail address, defaulting to noreply@weblate.org.
Vezi și
DEFAULT_COMMITER_NAME¶
Committer name, defaulting to Weblate.
Vezi și
DEFAULT_LANGUAGE¶
Added in version 4.3.2.
Limba sursă for any new components.
Valoarea implicită este en. Obiectul de limbă corespunzător trebuie să existe în baza de date.
Vezi și
DEFAULT_MERGE_STYLE¶
Stil îmbinare for any new components.
rebase - default
merge
DEFAULT_TRANSLATION_REVIEW¶
Added in version 5.16.
Configures the default value for Activează recenzii, turned off by default.
DEFAULT_SOURCE_REVIEW¶
Added in version 5.16.
Configures the default value for Activează revizuiri sursă, turned off by default.
DEFAULT_AUTOCLEAN_TM¶
Added in version 5.13.
Configures the default value of Autoclean translation memory.
DEFAULT_TRANSLATION_PROPAGATION¶
Setare implicită pentru propagarea traducerii, valoarea implicită este True.
DEFAULT_PULL_MESSAGE¶
Configurează titlul și mesajul implicite pentru cererile de extragere.
ENABLE_AVATARS¶
Whether to turn on Gravatar-based avatars for users. On by default.
Avatarurile sunt preluate și stocate în memoria cache pe server, ceea ce reduce riscul de scurgere a informațiilor private și accelerează experiența utilizatorului.
ENABLE_HOOKS¶
Whether to turn on anonymous remote hooks.
Vezi și
ENABLE_HTTPS¶
Schimbat în versiunea 5.7: Weblate now requires https for WebAuthn support.
Dacă să trimiteți linkuri către Weblate ca HTTPS sau HTTP. Această setare afectează e-mailurile trimise și URL-urile absolute generate.
In the default configuration this is also used for several Django settings related to HTTPS — it enables secure cookies, toggles HSTS or enables redirection to a HTTPS URL.
The HTTPS redirection might be problematic in some cases and you might hit
an issue with infinite redirection in case you are using a reverse proxy doing
an SSL termination which does not correctly pass protocol headers to Django.
Please tweak your reverse proxy configuration to emit X-Forwarded-Proto or
Forwarded headers or configure SECURE_PROXY_SSL_HEADER to
let Django correctly detect the SSL status.
In case this is disabled, Weblate will fail to start with an
otp_webauthn.E031 error. You can silence this error by adding it to
SILENCED_SYSTEM_CHECKS, but still WebAuthn will not work for
sites without HTTPS.
ENABLE_SHARING¶
Turn on/off the Community menu so users can share translation progress on social networks.
EXTRA_HTML_HEAD¶
Added in version 4.15.
Insert additional markup into the HTML header. Can be used for verification of site ownership, for example:
EXTRA_HTML_HEAD = '<link href="https://fosstodon.org/@weblate" rel="me">'
Atenționare
No sanitization is performed on the string. It is inserted as-is into the HTML header.
GET_HELP_URL¶
Added in version 4.5.2.
URL-ul unde poate fi găsit suport pentru instanța Weblate.
GITEA_CREDENTIALS¶
Added in version 4.12.
Lista de acreditări pentru serverele Gitea.
GITEA_CREDENTIALS = {
"try.gitea.io": {
"username": "weblate",
"token": "your-api-token",
},
}
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
GITLAB_CREDENTIALS¶
Added in version 4.3.
Lista pentru acreditările pentru serverele GitLab.
GITLAB_CREDENTIALS = {
"gitlab.com": {
"username": "weblate",
"token": "your-api-token",
},
}
Notă
The personal access token needs the api scope to be able to use the API.
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
GITHUB_CREDENTIALS¶
Added in version 4.3.
Lista pentru acreditările pentru serverele GitHub.
GITHUB_CREDENTIALS = {
"api.github.com": {
"username": "weblate",
"token": "your-api-token",
},
}
Notă
It is possible to use both fine-grained personal access tokens and classic personal access tokens. The fine-grained tokens are limited to a single organization, so it won’t work if you want Weblate to fork a repository outside the organization (typically to the user namespace).
To clone, push and create pull requests, the read and write access to Contents and Pull requests is required.
Administration might also be necessary for forking a repository if you intend to use forking and the original repository is not public.
Sugestie
Use api.github.com as an API host for https://github.com/.
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
BITBUCKETSERVER_CREDENTIALS¶
Added in version 4.16.
List for credentials for Bitbucket Data Center.
BITBUCKETSERVER_CREDENTIALS = {
"git.self-hosted.com": {
"username": "weblate",
"token": "http-access-token",
},
}
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
BITBUCKETCLOUD_CREDENTIALS¶
Added in version 5.8.
List for credentials for Bitbucket Cloud servers.
BITBUCKETCLOUD_CREDENTIALS = {
"bitbucket.org": {
"username": "your-email",
"workspace": "your-workspace-slug",
"token": "your-api-token",
},
}
The configuration dictionary consists of credentials defined for each API host.
The API host might be different from what you use in the web browser, for
example GitHub API is accessed as api.github.com.
The following configuration is available for each host:
usernameAPI user.
workspaceThe user workspace slug.
tokenThe API token with pullrequest:write permission.
Additional settings not described here can be found at Configuring version control credentials.
AZURE_DEVOPS_CREDENTIALS¶
Added in version 5.2.
List for credentials for Azure DevOps servers.
AZURE_DEVOPS_CREDENTIALS = {
"dev.azure.com": {
"username": "project-name",
"token": "your-api-token",
"organization": "organization-name",
},
}
The configuration dictionary consists of credentials defined for each API host.
The API host might be different from what you use in the web browser, for
example GitHub API is accessed as api.github.com.
The following configuration is available for each host:
usernameThe name of the Azure DevOps project. This is not the repository name.
organizationThe name of the organization of the project.
workItemIdsAn optional list of work items IDs from your organization. When provided new pull requests will have these attached.
tokenAPI token for the API user, required.
Additional settings not described here can be found at Configuring version control credentials.
GOOGLE_ANALYTICS_ID¶
Google Analytics ID to turn on monitoring of Weblate using Google Universal Analytics.
Notă
Google Analytics 4 integration is currently not available for Weblate, please see https://github.com/WeblateOrg/weblate/issues/14015.
HIDE_REPO_CREDENTIALS¶
Ascundeți acreditările de depozit din interfața web. În cazul în care aveți un URL de depozit cu utilizator și parolă, Weblate îl va ascunde atunci când informațiile aferente sunt afișate utilizatorilor.
De exemplu, în loc de https://user:password@git.example.com/repo.git, va apărea doar https://git.example.com/repo.git. În mod similar, încearcă să curețe și mesajele de eroare VCS.
Notă
On by default.
VERSION_DISPLAY¶
Added in version 5.17.
Controls how prominently Weblate exposes its own version.
Supported values are:
showShow the version in shared UI such as the footer and expose it in
GET /api/metrics/.softHide the version from prominent shared UI, while keeping it discoverable on the About page and in
GET /api/metrics/.hideHide the version from shared UI and
GET /api/metrics/. This also makes anonymous documentation links point to the latest documentation instead of the version matching the installed release.
Hiding the version is a recommended security practice in some corporations, but it does not prevent an attacker from inferring the version by probing behavior.
Notă
The default is show.
HIDE_VERSION¶
Added in version 4.3.1.
Învechit începând cu versiunea 5.17.
Compatibility alias for VERSION_DISPLAY. Set this to True to
get the same behavior as VERSION_DISPLAY = "hide".
IP_BEHIND_REVERSE_PROXY¶
Indică dacă Weblate rulează în spatele unui proxy invers.
Dacă este setat la True, Weblate obține adresa IP dintr-un antet definit de IP_PROXY_HEADER.
Atenționare
Asigurați-vă că utilizați într-adevăr un proxy invers și că acesta setează acest antet, altfel utilizatorii vor putea falsifica adresa IP.
Notă
Acest lucru nu este activat în mod implicit.
IP_PROXY_HEADER¶
Indică antetul din care Weblate ar trebui să obțină adresa IP atunci când IP_BEHIND_REVERSE_PROXY este activat.
Valoarea implicită este HTTP_X_FORWARDED_FOR.
IP_PROXY_OFFSET¶
Schimbat în versiunea 5.0.1: The default changed from 1 to -1.
Indică ce parte din IP_PROXY_HEADER este utilizată ca adresă IP a clientului.
Depending on your setup, this header might consist of several IP addresses,
(for example X-Forwarded-For: client-ip, proxy-a, proxy-b) and you can configure
which address from the header is used as client IP address here.
Atenționare
Setting this affects the security of your installation. You should only configure it to use trusted proxies for determining the IP address. Please check <https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-For#security_and_privacy_concerns> for more details.
Defaults to -1.
LEGAL_TOS_DATE¶
Added in version 4.15.
Notă
You need Legal module installed to make this work.
Date of last update of terms of service documents. Whenever the date changes, users are required to agree with the updated terms of service.
from datetime import date
LEGAL_TOS_DATE = date(2022, 2, 2)
LEGAL_URL¶
URL-ul unde instanța Weblate își afișează documentele legale.
Sugestie
Useful if you host your legal documents outside Weblate for embedding them inside Weblate. Please check Legal module for details.
Exemplu:
LEGAL_URL = "https://weblate.org/terms/"
Vezi și
LICENSE_EXTRA¶
Licențe suplimentare de inclus în opțiunile de licență.
Notă
Each license definition should be a tuple of its short name, a long name, a URL and a boolean, indicating whether it is a libre license.
De exemplu:
LICENSE_EXTRA = [
(
"AGPL-3.0",
"GNU Affero General Public License v3.0",
"https://www.gnu.org/licenses/agpl-3.0-standalone.html",
True,
),
]
LICENSE_FILTER¶
Schimbat în versiunea 4.3: Setarea acestei valori la o valoare goală dezactivează acum alerta de licență.
Filtrați lista de licențe care trebuie afișate. Aceasta dezactivează, de asemenea, alerta de licență atunci când este setată la gol.
Notă
Acest filtru utilizează denumirile scurte ale licențelor.
De exemplu:
LICENSE_FILTER = {"AGPL-3.0", "GPL-3.0-or-later"}
Următoarele dezactivează alerta de licență:
LICENSE_FILTER = set()
LICENSE_REQUIRED¶
Definește dacă atributul license din Configurația componentei este necesar.
Notă
Acest lucru este dezactivat în mod implicit.
LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH¶
Dacă lungimea unei anumite traduceri trebuie limitată. Restricția este lungimea șirului sursă × 10 caractere.
Sugestie
Setați această opțiune la False pentru a permite traduceri mai lungi (până la 10,000 de caractere), indiferent de lungimea șirului sursă.
Notă
Valoarea implicită este True.
LOCALIZE_CDN_URL și LOCALIZE_CDN_PATH¶
These settings configure the CDN add-ons, including
CDN de localizare JavaScript and Translation files CDN.
LOCALIZE_CDN_URL defines root URL where the localization CDN is
available and LOCALIZE_CDN_PATH defines path where Weblate should
store generated files which will be served at the LOCALIZE_CDN_URL.
The files are served by your web server or CDN, not by Weblate; see
Localizare CDN for secure serving guidance.
Sugestie
Pe Hosted Weblate, acesta folosește https://weblate-cdn.com/.
MATOMO_SITE_ID¶
ID of the site in Matomo (formerly Piwik) you want to use for tracking Weblate.
Notă
Această integrare nu este compatibilă cu Matomo Tag Manager.
Vezi și
MATOMO_URL¶
URL-ul complet (inclusiv bara oblică finală) al unei instalații Matomo (fostă Piwik) pe care doriți să o utilizați pentru a urmări utilizarea Weblate. Vă rugăm să consultați <https://matomo.org/> pentru mai multe detalii.
Sugestie
Această integrare nu este compatibilă cu Matomo Tag Manager.
De exemplu:
MATOMO_SITE_ID = 1
MATOMO_URL = "https://example.matomo.cloud/"
Vezi și
NEARBY_MESSAGES¶
Număr de șiruri din apropiere care trebuie afișate în fiecare direcție în editorul complet.
This is just a default value, users can adjust this in Profil utilizator.
DEFAULT_PAGE_LIMIT¶
Added in version 4.7.
Numărul implicit de elemente care trebuie afișate atunci când este activă paginarea.
PAGURE_CREDENTIALS¶
Added in version 4.3.2.
Lista pentru acreditările pentru serverele Pagure.
PAGURE_CREDENTIALS = {
"pagure.io": {
"username": "weblate",
"token": "your-api-token",
},
}
The configuration dictionary consists of credentials defined for each API host. The layout is same for almost all version control integrations and is described at Configuring version control credentials.
Vezi și
PASSWORD_MINIMAL_STRENGTH¶
Added in version 5.10.2.
Minimal password score as evaluated by the zxcvbn password strength estimator.
Defaults to 0, which means strength checking is disabled.
PASSWORD_RESET_URL¶
Added in version 5.17.
URL for password reset when authentication is handled by an external identity provider, such as LDAP, SAML, or OAuth.
When set, Forgot your password? on the sign-in page links to this URL instead of Weblate’s built-in password reset page.
PRIVACY_URL¶
Added in version 4.8.1.
URL-ul în care instanța Weblate își afișează politica de confidențialitate.
Sugestie
Utile dacă vă găzduiți documentele juridice în afara Weblate pentru a le încorpora în Weblate, vă rugăm să verificați Legal module pentru detalii.
Exemplu:
PRIVACY_URL = "https://weblate.org/terms/"
Vezi și
PRIVATE_COMMIT_EMAIL_OPT_IN¶
Added in version 4.15.
Configures whether the private commit e-mail is opt-in or opt-out (by default it is opt-in).
Sugestie
This setting only applies to users which have not explicitly chosen a commit e-mail.
Vezi și
PRIVATE_COMMIT_EMAIL_TEMPLATE¶
Added in version 4.15.
Template to generate a private commit e-mail for a user. Defaults to "{username}@users.noreply.{site_domain}".
It can contain {user_id}, {username}, {site_title}, and {site_domain}.
Set to blank string to disable.
Notă
Using a different commit e-mail is opt-in for users unless configured by
PRIVATE_COMMIT_EMAIL_OPT_IN. Users can configure their commit e-mail in
the Profil.
PRIVATE_COMMIT_NAME_OPT_IN¶
Added in version 5.16.
Configures whether the private commit name is opt-in or opt-out (by default it is opt-in).
Sugestie
This setting only applies to users which have not explicitly chosen a commit name.
Vezi și
PRIVATE_COMMIT_NAME_TEMPLATE¶
Added in version 5.16.
Template to generate a private commit name for a user. Defaults to "{site_title} user {user_id}".
It can contain {user_id}, {username}, {site_title}, and {site_domain}.
Set to blank string to disable.
Notă
Using a different commit name is opt-in for users unless configured by
PRIVATE_COMMIT_NAME_OPT_IN. Users can configure their commit name in
the Profil.
PROJECT_BACKUP_KEEP_COUNT¶
Added in version 4.14.
Defines how many backups per project are kept on the server. Defaults to 3.
PROJECT_BACKUP_KEEP_DAYS¶
Added in version 4.14.
Definește cât timp vor fi păstrate pe server copiile de rezervă ale proiectului. Valoarea implicită este de 30 de zile.
PROJECT_BACKUP_UPLOAD_MAX_SIZE¶
Added in version 5.17.1.
Configures the maximum size, in bytes, for uploaded project backup ZIP files. Defaults to 536870912 bytes (512 MiB).
In Docker, configure this using the WEBLATE_PROJECT_BACKUP_UPLOAD_MAX_SIZE
environment variable. Docker setups can also be constrained by
CLIENT_MAX_BODY_SIZE; other deployments can be constrained by their
reverse proxy request body-size limit.
PROJECT_BACKUP_IMPORT_MAX_MEMBERS¶
Added in version 5.17.
Defines the maximum number of ZIP entries allowed when importing a project backup.
This is a safeguard against malformed or intentionally fragmented archives. Defaults to 100000 entries.
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MAX_MEMBERS environment variable.
PROJECT_BACKUP_IMPORT_MAX_TOTAL_UNCOMPRESSED_SIZE¶
Added in version 5.17.1.
Defines the maximum total uncompressed size, in bytes, for ZIP entries in an imported project backup. Defaults to 536870912 bytes (512 MiB).
This limits archives that are small when uploaded but expand to much more data during validation or restore.
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MAX_TOTAL_UNCOMPRESSED_SIZE environment
variable.
PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_SIZE¶
Added in version 5.17.
Defines the maximum uncompressed size, in bytes, for a single highly compressed ZIP entry in an imported project backup.
This limit is only applied to entries that are large enough and compress enough to look suspicious. Large low-compression files are intentionally allowed here and are expected to be constrained by the HTTP upload limit. Defaults to 262144000 bytes (250 MiB).
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_SIZE environment
variable.
PROJECT_BACKUP_IMPORT_MIN_RATIO_SIZE¶
Added in version 5.17.
Defines the minimum uncompressed size, in bytes, at which Weblate starts considering the ZIP compression ratio during project backup import.
Smaller files are ignored for the compression-ratio-based validation to avoid rejecting reasonably sized files that compress well. Defaults to 1048576 bytes (1 MiB).
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MIN_RATIO_SIZE environment variable.
PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_RATIO¶
Added in version 5.17.
Defines the maximum allowed ratio between the uncompressed and compressed size for a large ZIP entry during project backup import.
This is used together with
PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_SIZE and
PROJECT_BACKUP_IMPORT_MIN_RATIO_SIZE to detect suspiciously
compressed entries while still allowing large repository pack files and other
low-compression content. Defaults to 250.
In Docker, configure this using the
WEBLATE_PROJECT_BACKUP_IMPORT_MAX_COMPRESSED_ENTRY_RATIO environment
variable.
PROJECT_NAME_RESTRICT_RE¶
Added in version 4.15.
Defines a regular expression to restrict project naming. Any matching names will be rejected.
Vezi și
PROJECT_WEB_RESTRICT_HOST¶
Added in version 4.16.2.
Reject using certain hosts in project website. Any subdomain is matched, so
including example.com will block test.example.com as well. The list
should contain lower case strings only, the parsed domain is lower cased before
matching.
Default configuration:
PROJECT_WEB_RESTRICT_HOST = {"localhost"}
PROJECT_WEB_RESTRICT_ALLOWLIST¶
Added in version 5.17.
Defines a set of project slugs exempt from
PROJECT_WEB_RESTRICT_HOST, PROJECT_WEB_RESTRICT_NUMERIC,
PROJECT_WEB_RESTRICT_PRIVATE, and
PROJECT_WEB_RESTRICT_RE when validating the project website.
Project slugs are matched case-insensitively.
Avertisment
This exemption weakens outbound URL protections for matching projects,
including the private-target restriction enforced by
PROJECT_WEB_RESTRICT_PRIVATE. Use it only for trusted,
administrator-managed projects where bypassing these checks is intentional.
Default configuration:
PROJECT_WEB_RESTRICT_ALLOWLIST = set()
PROJECT_WEB_RESTRICT_NUMERIC¶
Added in version 4.16.2.
Reject using numeric IP address in project website. On by default.
PROJECT_WEB_RESTRICT_PRIVATE¶
Added in version 5.17.
Reject using project website and repository browser URLs pointing to internal or non-public addresses. On by default.
PROJECT_WEB_RESTRICT_RE¶
Added in version 4.15.
Defines a regular expression to limit what can be entered as Site web proiect. Any matching URLs will be rejected.
WEBHOOK_PRIVATE_ALLOWLIST¶
Added in version 5.17.
Defines hostnames or domains exempt from WEBHOOK_RESTRICT_PRIVATE
for outbound webhook delivery. Entries follow Django host matching semantics,
so values such as hooks.internal.example or .internal.example can be
used.
Default configuration:
WEBHOOK_PRIVATE_ALLOWLIST = []
Vezi și
WEBHOOK_RESTRICT_PRIVATE¶
Added in version 5.17.
Reject webhook URLs pointing to internal or non-public addresses unless the
target host is included in WEBHOOK_PRIVATE_ALLOWLIST. On by default.
When enabled, hostnames that cannot be resolved during validation are rejected
unless they are explicitly included in WEBHOOK_PRIVATE_ALLOWLIST.
Vezi și
PUBLIC_ENGAGE¶
Added in version 5.16.2.
Allows public engage page even with REQUIRE_LOGIN.
RATELIMIT_NOTIFICATION_LIMITS¶
Added in version 5.14.
Limits how many notifications for a single user will be sent out.
The default setting is:
# Multi-level rate limiting for email notifications
# Each tuple contains (max_emails, time_window_seconds)
RATELIMIT_NOTIFICATION_LIMITS = [
# Prevent burst sends - 3 emails per 2 minutes
(3, 120),
# Equalize to avoid getting blocked for too long - 10 emails per hour
(10, 3600),
# Daily limit: 50 emails per day
(50, 86400),
]
RATELIMIT_ATTEMPTS¶
Numărul maxim de încercări de autentificare înainte de a se aplica limitarea vitezei.
Valoarea implicită este 5.
RATELIMIT_WINDOW¶
Cât timp este acceptată autentificarea după ce se aplică limitarea ratei.
An amount of seconds, defaulting to 300 (5 minutes).
RATELIMIT_LOCKOUT¶
Cât timp este blocată autentificarea după ce se aplică limitarea ratei.
Un număr de secunde, în mod implicit 600 (10 minute).
REGISTRATION_ALLOW_BACKENDS¶
Added in version 4.1.
Lista de backend-uri de autentificare care permit înregistrarea. Acest lucru limitează doar înregistrările noi, utilizatorii pot în continuare să se autentifice și să adauge autentificare utilizând toate backend-urile de autentificare configurate.
It is recommended to keep REGISTRATION_OPEN on while limiting
registration backends, otherwise users will be able to register, but Weblate
will not show links to register in the user interface.
Exemplu:
REGISTRATION_ALLOW_BACKENDS = ["azuread-oauth2", "azuread-tenant-oauth2"]
Sugestie
The backend names match names used in the URL for authentication.
Vezi și
REGISTRATION_CAPTCHA¶
Whether registration of new accounts is protected by a CAPTCHA. Defaults to enabled.
If turned on, a CAPTCHA is added to all pages where a user enters their e-mail address:
Înregistrarea unui cont nou.
Recuperarea parolei.
Adăugarea de e-mail la un cont.
Formular de contact pentru utilizatorii care nu sunt conectați.
The protection currently consists of following steps:
Mathematical captcha to be solved by the user.
Proof of work challenge calculated by the browser. The difficulty can be adjusted using
ALTCHA_COST,ALTCHA_MEMORY_COST, andALTCHA_PARALLELISM.
REGISTRATION_EMAIL_MATCH¶
Vă permite să filtrați adresele de e-mail care se pot înregistra.
Valoarea implicită este .*, ceea ce permite înregistrarea oricărei adrese de e-mail.
Îl puteți utiliza pentru a restricționa înregistrarea la un singur domeniu de e-mail:
REGISTRATION_EMAIL_MATCH = r"^.*@weblate\.org$"
REGISTRATION_ALLOW_DISPOSABLE_EMAILS¶
Added in version 5.16.1.
Allow registration with disposable e-mail domains. When enabled, the
disposable domain blocklist is bypassed. Default is False.
REGISTRATION_OPEN¶
Whether registration of new accounts is currently permitted. Defaults to enabled.
This setting affects built-in authentication by e-mail address or through the
Python Social Auth (you can allow certain back-ends using
REGISTRATION_ALLOW_BACKENDS).
Notă
În cazul în care se utilizează metode de autentificare de la terți, cum ar fi Autentificare LDAP, se ascunde doar formularul de înregistrare, dar utilizatorii noi ar putea fi în continuare capabili să se conecteze și să creeze conturi.
REGISTRATION_REBIND¶
Added in version 4.16.
Allow rebinding authentication backends for existing users. Turn this on when migrating between authentication providers.
Notă
Off by default to not allow adding other authentication backends to an existing account. Rebinding can lead to account compromise when using more third-party authentication backends.
REPOSITORY_ALERT_THRESHOLD¶
Added in version 4.0.2.
Pragul de declanșare a unei alerte pentru depozitele depășite sau cele care conțin prea multe modificări. Valoarea implicită este 25.
REQUIRE_LOGIN¶
Added in version 4.1.
This enables django.contrib.auth.middleware.LoginRequiredMiddleware
and configures REST framework to require authentication for all API endpoints.
Schimbat în versiunea 5.15: Weblate now relies on Django built-in middleware.
Notă
Acest lucru este implementat în Exemplu de configurare. Pentru Docker, utilizați WEBLATE_REQUIRE_LOGIN.
SENTRY_DSN¶
Sentry DSN de utilizat pentru Collecting error reports and monitoring performance.
Vezi și
SENTRY_ENVIRONMENT¶
Configures environment for Sentry. Defaults to devel.
SENTRY_MONITOR_BEAT_TASKS¶
Added in version 5.13.
Configure whether to monitor Celery Beat tasks with Sentry. Defaults to True.
SENTRY_PROFILES_SAMPLE_RATE¶
Configure sampling rate for performance monitoring. Set to 1 to trace all events, 0 (the default) disables tracing.
Vezi și
SENTRY_SEND_PII¶
Allow Sentry to collect certain personally identifiable information. Turned off by default.
Schimbat în versiunea 5.7: This is turned off by default now, used to be turned on by default.
SENTRY_TRACES_SAMPLE_RATE¶
Configure sampling rate for profiling monitoring. Set to 1 to trace all events, 0 (the default) disables tracing.
Vezi și
SIMPLIFY_LANGUAGES¶
Utilizați coduri lingvistice simple pentru combinațiile implicite de limbă/țară. De exemplu, o traducere fr_FR va utiliza codul de limbă fr. Acesta este, de obicei, comportamentul dorit, deoarece simplifică listarea limbilor pentru aceste combinații implicite.
Dezactivați această opțiune dacă doriți să aveți traduceri diferite pentru fiecare variantă.
SITE_DOMAIN¶
Configures site domain. Necessary to produce correct absolute links in many scopes (for example activation e-mails, notifications or RSS feeds).
If Weblate is running on a non-standard port, include it here as well.
Exemple:
# Production site with domain name
SITE_DOMAIN = "weblate.example.com"
# Local development with IP address and port
SITE_DOMAIN = "127.0.0.1:8000"
Notă
This setting should only contain the domain name. For configuring protocol,
(turning on and enforcing HTTPS) use ENABLE_HTTPS and for changing
the URL, use URL_PREFIX.
Sugestie
Pe un container Docker, domeniul site-ului este configurat prin WEBLATE_ALLOWED_HOSTS.
SITE_TITLE¶
Titlul site-ului care va fi folosit pentru site-ul web și pentru e-mailurile trimise.
SPECIAL_CHARS¶
Caractere suplimentare de inclus în tastatura vizuală, Tastatura vizuală.
Valoarea implicită este:
SPECIAL_CHARS = ("\t", "\n", "\u00a0", "…")
SINGLE_PROJECT¶
Redirects users directly to a project or component instead of showing
the dashboard. You can either set it to True so it only works
if there is actually only single project in Weblate. Alternatively, set
the project slug, and it will redirect unconditionally to this project.
Exemplu:
SINGLE_PROJECT = "test"
SSH_EXTRA_ARGS¶
Added in version 4.9.
Allows adding custom parameters when Weblate is invoking SSH. Useful when connecting to servers using legacy encryption or other non-standard features.
For example when SSH connection in Weblate fails with Unable to negotiate with legacyhost: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1, you can turn that on using:
SSH_EXTRA_ARGS = "-oKexAlgorithms=+diffie-hellman-group1-sha1"
Sugestie
The string is evaluated by the shell, so ensure any whitespace and special characters is quoted.
Vezi și
STATUS_URL¶
URL-ul unde instanța Weblate își raportează starea.
SUPPORT_STATUS_CHECK¶
Added in version 5.5.
Disables semiannual support status check and redirecting superusers upon login to the donation page in case there is no active support subscription.
Sugestie
Improve your Weblate experience by purchasing a support subscription and boosting Weblate progress instead of turning this off.
TRANSLATION_UPLOAD_MAX_SIZE¶
Added in version 5.17.1.
Configures the maximum size, in bytes, for uploaded translation files. Defaults to 50 MB.
In Docker, configure this using the WEBLATE_TRANSLATION_UPLOAD_MAX_SIZE
environment variable.
UNUSED_ALERT_DAYS¶
Added in version 4.17.
Configures when the Component seems unused alert is triggered.
Defaults to 365 days, set to 0 to turn it off.
UPDATE_LANGUAGES¶
Added in version 4.3.2.
Controls whether languages database should be updated when running database
migration and is on by default. This setting has no effect on invocation
of setuplang.
Atenționare
The languages display might become inconsistent with this. Weblate language definitions expand over time and it will not display language code for the defined languages.
URL_PREFIX¶
Această setare vă permite să rulați Weblate sub o anumită cale (în caz contrar, se bazează pe rularea de la rădăcina serverului web).
Notă
Pentru a utiliza această setare, trebuie, de asemenea, să vă configurați serverul pentru a elimina acest prefix. De exemplu, în cazul WSGI, acest lucru poate fi realizat prin setarea WSGIScriptAlias.
Sugestie
Prefixul trebuie să înceapă cu un /.
Exemplu:
URL_PREFIX = "/translations"
Notă
Această setare nu funcționează cu serverul încorporat în Django, va trebui să ajustați urls.py pentru a conține acest prefix.
VCS_ALLOW_HOSTS¶
Added in version 5.15.
A set of hosts to allow when configuring VCS URL. Defaults to an empty set, which does no filtering at all.
When VCS_RESTRICT_PRIVATE is enabled, matching hosts are also exempt
from the private-target restriction.
VCS_ALLOW_SCHEMES¶
Added in version 5.15.
A set of URL schemes to allow when configuring VCS URL. Only https and
ssh are allowed by default.
VCS_RESTRICT_PRIVATE¶
Added in version 5.17.
Reject VCS repository URLs pointing to internal or non-public addresses unless
the target host is included in VCS_ALLOW_HOSTS. On by default.
When enabled, hostnames that cannot be resolved during validation are rejected
unless they are explicitly included in VCS_ALLOW_HOSTS.
VCS_API_DELAY¶
Added in version 4.15.1.
Configures minimal delay in seconds between third-party API calls in GitHub solicitări de tracțiune, Cereri de fuziune GitLab, Gitea cereri de pull, Cereri de fuziune Pagure, and Azure DevOps pull requests.
This rate-limits API calls from Weblate to these services to avoid overloading them.
If you are being limited by secondary rate-limiter at GitHub, increasing this might help.
The default value is 10.
VCS_API_TIMEOUT¶
Added in version 5.15.
Configures timeout in seconds for third-party API calls such as forking or creating merge requests in GitHub solicitări de tracțiune, Cereri de fuziune GitLab, Gitea cereri de pull, Cereri de fuziune Pagure, and Azure DevOps pull requests.
The default value is 10.
VCS_BACKENDS¶
Configurarea backend-urilor VCS disponibile.
Notă
Weblate încearcă să utilizeze toate back-end-urile acceptate pentru care aveți instrumentele necesare.
Sugestie
Puteți limita opțiunile sau puteți adăuga back-end-uri VCS personalizate utilizând această opțiune.
VCS_BACKENDS = ("weblate.vcs.git.GitRepository",)
Vezi și
VCS_CLONE_DEPTH¶
Configurează cât de profundă trebuie să fie clonarea depozitelor Weblate.
Notă
În prezent, acest lucru este suportat doar în Git. În mod implicit, Weblate face clone superficiale ale depozitelor pentru a face clonarea mai rapidă și pentru a economisi spațiu pe disc. În funcție de utilizarea dumneavoastră (de exemplu, atunci când folosiți Suplimente personalizate), este posibil să doriți să măriți adâncimea sau să dezactivați complet clonele superficiale prin setarea acestei valori la 0.
Sugestie
În cazul în care primiți o eroare fatal: eroare de protocol: expected old/new/ref, got 'shallow <commit hash>' atunci când împingeți de pe Weblate, dezactivați complet clonele superficiale prin setarea:
VCS_CLONE_DEPTH = 0
WEBLATE_ADDONS¶
Lista de add-on-uri disponibile pentru utilizare. Pentru a le utiliza, acestea trebuie să fie activate pentru o anumită componentă de traducere. În mod implicit, aceasta include toate addon-urile încorporate; atunci când extindeți lista, probabil că veți dori să le păstrați activate pe cele existente, de exemplu:
WEBLATE_ADDONS = (
# Built-in add-ons
"weblate.addons.gettext.GenerateMoAddon",
"weblate.addons.gettext.UpdateLinguasAddon",
"weblate.addons.gettext.UpdateConfigureAddon",
"weblate.addons.gettext.MsgmergeAddon",
"weblate.addons.gettext.GettextAuthorComments",
"weblate.addons.cleanup.CleanupAddon",
"weblate.addons.consistency.LanguageConsistencyAddon",
"weblate.addons.discovery.DiscoveryAddon",
"weblate.addons.flags.SourceEditAddon",
"weblate.addons.flags.TargetEditAddon",
"weblate.addons.flags.SameEditAddon",
"weblate.addons.flags.BulkEditAddon",
"weblate.addons.generate.GenerateFileAddon",
"weblate.addons.properties.PropertiesSortAddon",
"weblate.addons.git.GitSquashAddon",
"weblate.addons.removal.RemoveComments",
"weblate.addons.removal.RemoveSuggestions",
"weblate.addons.resx.ResxUpdateAddon",
"weblate.addons.autotranslate.AutoTranslateAddon",
"weblate.addons.cdn.CDNJSAddon",
# Add-on you want to include
"weblate.addons.example.ExampleAddon",
)
Notă
Removing the add-on from the list does not uninstall it from the components. Weblate will crash in that case. Please uninstall the add-on from all components prior to removing it from this list.
ADDON_ACTIVITY_LOG_EXPIRY¶
Added in version 5.6.
Configures how long activity logs for add-ons are kept. Defaults to 180 days.
WEBLATE_EXPORTERS¶
Added in version 4.2.
Lista exportatorilor disponibili care oferă posibilitatea de a descărca traduceri sau glosare în diferite formate de fișiere.
Vezi și
WEBLATE_FORMATS¶
Lista de formate de fișiere disponibile pentru utilizare.
Notă
Lista implicită conține deja formatele comune.
Vezi și
WEBLATE_MACHINERY¶
Added in version 4.13.
Lista serviciilor de mașini disponibile pentru utilizare.
WEBLATE_GPG_IDENTITY¶
Identitate utilizată de Weblate pentru a semna angajamentele Git, de exemplu:
WEBLATE_GPG_IDENTITY = "Weblate <weblate@example.com>"
Se caută în brelocul de chei Weblate GPG o cheie corespunzătoare (home/.gnupg în DATA_DIR). Dacă nu este găsită, se generează o cheie, vă rugăm să verificați Semnarea comenzilor Git cu GnuPG pentru mai multe detalii.
Vezi și
WEBSITE_REQUIRED¶
Defines whether Site web proiect has to be specified when creating a project. On by default, as that suits public server setups.
WEBSITE_ALERTS_ENABLED¶
Added in version 5.17.
Default: True
Defines whether Weblate should check project website availability and show alerts for unreachable project websites.
When set to False, Weblate will skip website availability checks and
will not generate project website alerts. This is useful when:
Your websites are behind firewalls that block Weblate’s requests
You want to avoid 403/503-type errors from bot protection
Project website availability is not a concern for your installation
Vezi și
Configuring version control credentials¶
Sugestie
This section describes VCS credential variables as
GITHUB_CREDENTIALS, GITLAB_CREDENTIALS,
GITEA_CREDENTIALS, PAGURE_CREDENTIALS,
BITBUCKETSERVER_CREDENTIALS.
The configuration dictionary consists of credentials defined for each API host.
The API host might be different from what you use in the web browser, for
example GitHub API is accessed as api.github.com.
The credentials can also be overridden in URL de încărcare depozitar or Depozitar cod sursă (if push URL is not configured), these take precedence over the ones specified in the configuration file.
The following configuration is available for each host:
usernameAPI user, required.
tokenAPI token for the API user, required.
schemeAdded in version 4.18.
Scheme override. Weblate attempts to parse scheme from the repository URL and falls backs to
https. If you are running the API server internally, you might want to usehttpinstead, but consider security.
Sugestie
In the Docker container, the credentials can be configured using environment variables, see Code hosting sites credentials.