Eklentiler¶
Eklentiler, çeviri iş akışını özelleştirmesi ve kendiliğinden yapılması için yöntemler sağlar. Yöneticiler, her bir çeviri bileşenine İşlemler ↓ Eklentiler menüsünden eklentiler ekleyip yönetebilir. Eklentiler Yönetim arayüzü bölümünden de site genelinde kurulabilir.
İpucu
Eklentileri API, DEFAULT_ADDONS ya da install_addon kullanarak da yapılandırabilirsiniz.
El ile tetiklenmeyi yeğleyen eklentiler, eklenti yönetiminden veya API ile çalıştırılabilir. Sonuçlar eklentinin etkinlik günlüğüne kaydedilir.
Add-ons that expose a component API show its base URL on the add-on’s API tab, alongside a link to the API root.
Add-ons can show Integration instructions above their settings. These explain how to connect your application or service to the add-on. Add-ons without configurable settings, such as Çeviri dosyaları CDN, show instructions without a settings form. Generated URLs and integration snippets are available after installation.
Add-ons are persistent administrative configuration. They run with their service identity in the scope where they are installed, rather than repeatedly using the permissions of the administrator who configured them. This ensures that equally authorized administrators see and save the same configuration, and that saving an unrelated change does not silently alter the add-on’s input scope. Removing or disabling the configuring administrator does not disable the add-on.
Project and category add-ons therefore include compatible restricted components in that scope. A component add-on can use inputs outside its destination component when documented by that add-on. Automatic translation determines its source components as follows:
Direct automatic-translation actions use the acting user’s component access.
A saved automatic-translation add-on uses its persistent administrative scope. Compatible components in the target project are eligible, including restricted components.
Components in another project are eligible when that project contributes to shared translation memory. This includes restricted components even though they do not create shared translation-memory entries; the add-on reads the explicitly selected component as an administrative input instead.
Restricted components remain filtered from ordinary listings and direct access for users without an explicit grant or Edit project settings permission. Grant add-on management permissions only to users trusted with the add-on’s complete input and effect scope. See Takımların kapsamı and Kısıtlı erişim.
Repository add-ons, including Bileşen keşfi, can be installed only on the component that owns the repository. Linked components show installed repository add-ons as inherited. Their available add-on list links to the owning component’s add-ons when you can manage it; otherwise the entry is unavailable.
Eklentileri tetikleyen olaylar¶
Eklenti kurulumu¶
Eklenti kurulurken tetiklenir.
Bileşen güncellemesi¶
Bir bileşende aşağıdaki gibi bir değişiklik olduğunda tetiklenir:
Depodaki dizgeler değiştirildiğinde.
Bir dizge eklendiğinde.
Yeni bir çeviri eklendi.
Günlük¶
Günlük olarak tetiklenir, ancak eklentiler genellikle BACKGROUND_TASKS seçeneğine bağlı olarak günlük yükü bileşenler arasında paylaştırır.
Değişiklik etkinliği¶
Bir değişiklik etkinliğinin kaydedilmesinden sonra tetiklenir.
El ile tetikleme¶
Bir eklenti, eklenti yönetiminden veya API üzerinden el ile çalıştırıldığında tetiklenir.
Depo ekleme sonrası¶
Yeni çeviri eklendikten ve işlendikten hemen sonra tetiklenir.
Depo işleme sonrası¶
Değişiklikler işlendikten hemen sonra tetiklenir.
Depo itme sonrası¶
Depo yukarı akışa itildikten hemen sonra tetiklenir.
Depo kaldırma sonrası¶
Bir çevirinin kaldırılmasından hemen sonra tetiklenir.
Depo güncelleme sonrası¶
Yukarı akış deposundan yeni değişiklikler her çekildiğinde tetiklenir.
Depo işleme öncesi¶
Değişiklikler işlenmeden hemen önce tetiklenir.
Depo itme öncesi¶
Depo yukarı akışa itilmeden hemen önce tetiklenir.
Depo güncelleme öncesi¶
Deponun güncellenmesi denenmeden hemen önce tetiklenir.
Birim kaydetme sonrası¶
Dizgenin kaydedilmesinden hemen sonra tetiklenir.
Birim eşitleme sonrası¶
Dizgenin sürüm denetimi sistemi ile eşitlenmesinden sonra tetiklenir.
Birim oluşturma öncesi¶
Yeni oluşturulan dizge kaydedildikten hemen sonra tetiklenir.
Hazır eklentiler¶
AI quality evaluation¶
- Eklenti kimliği:
weblate.ai.quality- Yapılandırma:
serviceEvaluation service
Kullanılabilecek seçenekler:¶ anthropicAnthropic
openaiOpenAI
mistralMistral
ollamaOllama
azure-openaiAzure OpenAI
qSorgu
intervalEvaluation frequency
Kullanılabilecek seçenekler:¶ disabledDisabled
dailyGünlük
weeklyHaftalık
monthlyAylık
on_changeEvaluate translation changes
on_updateEvaluate repository updates
- Tetikleyiciler:
Eklenti kurulumu, Bileşen güncellemesi, Günlük, Değişiklik etkinliği, El ile tetikleme
Evaluates existing translations using an LLM and records quality checks.
This add-on evaluates existing translations using an LLM service configured under Kendiliğinden öneriler. It does not generate suggestions or change translations. Choose an Evaluation service from the configured LLM services; credentials and project overrides are reused.
The Query selects strings using the normal search syntax. By default, translated strings are selected. Source strings, read-only strings, and glossary entries are excluded. Each request includes all translation plural forms, source text, language information, string context, glossary terms, placeholders, and configured translation instructions. This data is sent to the selected provider.
Requests group strings from the same translation in file order, using the service’s automatic translation batch size (currently 20 strings for built-in LLM services). All plural forms of a string stay together. Related strings share context, allowing the evaluator to check meaning and terminology across the batch. Batching reduces the number of provider requests for scheduled, manual, and change-triggered runs; it does not skip unchanged strings.
Evaluation frequency defaults to weekly. Daily and monthly schedules are also available; disabled turns off scheduled evaluation. Background processing must be enabled. A successful full run starts the next interval. Manual runs bypass the interval. Enable Evaluate translation changes or Evaluate repository updates to additionally evaluate after those events. Installation does not immediately contact the provider. Each run can incur provider costs, including reevaluation of unchanged translations.
Evaluation runs in background tasks, with results and failure counts recorded in the existing add-on activity log. Failed requests retain existing valid findings and are tried again only by a subsequent run. Evaluation shares the service’s automatic translation cooldown: rate-limit responses activate it, and batches are skipped while it is active. More specific installations take precedence: component, nearest category, project, then site-wide.
Findings appear as standard checks for accuracy, fluency, terminology, style, and
formatting. Each finding includes a minor, major, or critical severity and an
explanation. Multiple findings in one category share a check, so ignoring that
check ignores the whole category for the string. Existing search filters and API
search work, for example check:ai_accuracy. Translation flags such as
ignore-ai-accuracy disable a category; ignore-all-checks disables all checks.
Changing the source or translation removes outdated findings. Results received after any source or translation in their batch changes are discarded for the whole batch. A failed or malformed response also leaves existing findings for the whole batch unchanged; other batches can still complete. Incomplete runs do not advance the scheduled evaluation date. Reevaluation of unchanged content preserves ignored categories, and a successful evaluation removes categories that no longer have findings. Removing or reconfiguring the add-on clears its findings. Evaluator metadata is internal and cannot be edited through the API; the add-on configuration uses the existing Eklentiler permissions and validation.
Automation¶
Added in version 2026.10.
- Eklenti kimliği:
weblate.automation.automation- Yapılandırma:
workflowİş akışı
Enter an automation definition as YAML or JSON.
- Tetikleyiciler:
Bileşen güncellemesi, Günlük, Değişiklik etkinliği, El ile tetikleme, Depo işleme sonrası, Depo itme sonrası, Depo güncelleme sonrası
Runs ordered translation operations with conditions and branches.
Install this add-on on a component, category, project, or site. Inherited instances run separately for each component. Multiple instances can be installed. Configuring, previewing, and running an automation requires the usual add-on management permission. Saving its configuration does not execute it.
Enter YAML or JSON in Workflow. Use Preview without changes to validate it and inspect planned actions, then Run now for real execution. Results appear in the add-on activity log.
Ayrıca bakınız
Workflow definition for the script definition and reference.
Cookbook for complete examples.
Apply translation memory before machine translation for translation memory before machine translation.
Kendiliğinden çeviri¶
- Eklenti kimliği:
weblate.autotranslate.autotranslate- Yapılandırma:
modeKendiliğinden çeviri kipi
Kullanılabilecek seçenekler:¶ suggestÖneri olarak ekle
translateÇeviri olarak ekle
fuzzy“Düzenlenmesi gerekli” olarak ekle
approvedOnaylanmış çeviri olarak eklensin
qSorgu
Lütfen tüm dizgeleri çevirdiğinizde var olan tüm çevirileri yok sayılacağını unutmayın.
auto_sourceKendiliğinden yapılmış çevirilerin kaynağı
Kullanılabilecek seçenekler:¶ othersDiğer çeviri bileşenleri
mtMakine çevirisi
componentBileşen
Enter a source component ID. With 30 or more eligible source components, a project/component path is also accepted. In that case, component and project operations also accept a component slug from the target project. Leave blank to use eligible components from each target component’s project.
enginesTranslation services
thresholdSkor eşiği
- Tetikleyiciler:
Eklenti kurulumu, Bileşen güncellemesi, Günlük, Değişiklik etkinliği
Makine çevirisini ya da diğer bileşenleri kullanarak dizgeleri kendiliğinden çevirir.
To control translation order, use the Automation add-on with a separate action for each pass. Follow the Apply translation memory before machine translation cookbook example to apply local translation memory first and send only the remaining strings to a machine translation service. Selecting multiple engines here uses Makine çevirisi ve çeviri belleği hizmetlerinin önceliği; installation order of separate add-ons does not define an execution sequence.
JavaScript yerelleştirme CDN¶
Added in version 4.2.
- Eklenti kimliği:
weblate.cdn.cdnjs- Yapılandırma:
thresholdÇeviri eşiği
Çevirinin katılması için ulaşılması gereken çevrilmiş dizge yüzdesi.
css_selectorCSS seçici
Yerelleştirilebilir ögeleri algılamak için CSS seçici.
cookie_nameDil tanımlama bilgisinin adı
Dil seçiminin kaydedildiği tanımlama bilgisinin adı.
filesDizgeleri HTML dosyalarından ayıklama
Geçerli depoda ya da uzak adreslerde çevrilebilir dizgeler için işlenecek dosya adlarının listesi.
- Tetikleyiciler:
Eklenti kurulumu, Günlük, Depo işleme sonrası, Depo kaldırma sonrası, Depo güncelleme sonrası
JavaScript ya da HTML yerelleştirmesinde kullanılmak üzere içerik dağıtım ağına çevirileri yayınlar.
Durağan HTML sayfalarını yerelleştirmek veya JavaScript kodunda yerelleştirmeyi yüklemek için kullanılabilir.
Generates a unique URL for your component you can include in HTML pages to localize them. See Weblate içerik aktarım ağını kullanarak HTML ve JavaScript çevirmek for more details. Available languages and translation files are listed in the CDN manifest.
Not
Bu eklenti için, Weblate sunucusunda ek yapılandırma gerekir. LOCALIZE_CDN_PATH, oluşturulan dosyaların nereye yazılacağını (bir dosya sisteminde) ayarlar ve LOCALIZE_CDN_URL, bunların nereden sunulacağını (adres) belirler. Dosyalar Weblate tarafından sunulmaz ve dışarıdan ayarlanması gerekir (genellikle bir CDN içerik dağıtımı ağı hizmeti kullanılarak).
Bu eklenti Hosted Weblate üzerinde yapılandırılmıştır ve dosyaları https://weblate-cdn.com/ adresinden sunar.
Çeviri dosyaları CDN¶
Added in version 2026.5.
- Eklenti kimliği:
weblate.cdn.files- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Eklenti kurulumu, Bileşen güncellemesi, Depo işleme sonrası, Depo kaldırma sonrası, Depo güncelleme sonrası
Çeviri dosyalarını içerik dağıtım ağına yayınlar.
Publishes translation files without converting them to another format. Files
are written below the add-on specific CDN directory and served from
LOCALIZE_CDN_URL/<add-on UUID>/. Single-file translations use the language
code and original file extension, for example cs.json or de.po.
Multi-file translations are served below the language code using paths relative
to the translation directory. Monolingual components include the source
language file, while bilingual components publish only target-language files.
See Yerelleştirme CDN for secure serving guidance.
Available languages and translation files are listed in the CDN manifest.
Kotlin SDK CDN¶
Added in version 2026.10.
- Eklenti kimliği:
weblate.cdn.kotlin- Yapılandırma:
maximum_ageMaximum build age (days)
Retires builds this many days after their first registration. Re-registering a build does not extend its age.
maximum_versionsMaximum retained versions
Limits retained builds across all package names. A build is retired when either this limit or the maximum age is reached.
- Tetikleyiciler:
Eklenti kurulumu, Bileşen güncellemesi, Günlük, Depo işleme sonrası, Depo kaldırma sonrası, Depo güncelleme sonrası
Publishes Android string and plural resources for registered Kotlin SDK builds.
Uyarı
The Kotlin SDK is available as an alpha release. No compatibility is guaranteed until the final Kotlin SDK is released. Endpoints, build metadata, CDN manifests, and generated resource formats may change without backward compatibility.
Install Kotlin SDK CDN on an Android string-resource component to
publish translations for builds registered by the Kotlin SDK. Configure
LOCALIZE_CDN_URL and LOCALIZE_CDN_PATH first. CDN output is
public, including translations from private components. Manifests expose the
application package name and version code. ARSC files expose published resource
names and their submitted IDs alongside translated text. Do not treat the
uploaded resource mapping as confidential; enable publication only when this
disclosure is intended. Registration and status API access remains permission-controlled.
Installation offers to install Çeviri dosyaları CDN by default so the SDK can also consume the original Android XML files. Existing Translation files CDN installations are reused. For existing Kotlin SDK installations, use Install Translation files CDN on the configuration page, then return to copy the updated Gradle configuration. Original files are also published publicly, including those from private components.
Copy the Gradle plugin configuration from the add-on configuration page. It
includes the Weblate server URL, separate translationFiles and kotlinSdk
public CDN URLs, project slug, and component
path (with any category path URL-encoded). Replace the placeholder with a
project-scoped API token whose permissions allow editing the component. Project
administrators can create one in the project’s API access tab; see
Her proje için erişim kodları.
Keep that token in the build environment, not in the application. The add-on’s
API tab shows the API base URL; submit build metadata to its builds/
endpoint. See
Kotlin SDK builds for the request and response format.
For Gradle plugin and library setup, see Kotlin SDK for Android.
The add-on matches resource names and types from registered builds to current component translations. Strings, plurals, and Android styled text are supported. String arrays and resource references are not generated. Untranslated entries, read-only entries, and incomplete plural resources are omitted; applications retain their bundled values. Unsupported styling fails publication; the previous successful publication remains available.
Resource IDs must describe the final installed build. Uploading an identical mapping again is harmless; a different mapping for the same package and version is rejected. Old builds receive current translations by name, including after source text or formatting arguments change. Maintainers are responsible for compatibility with older application code.
Lifecycle settings¶
Maximum build age (days) defaults to 365 and accepts 1 through 730, measured from the first registration. Repeated uploads do not extend it.
Maximum retained versions defaults to 20 and accepts 1 through 100, counted across all package names. One additional unpublished replacement is allowed. New registrations can retire older unpublished replacements. Published builds are retired for this limit only after a replacement is published. Failed replacements preserve existing publications; maximum-age expiry still applies independently.
Either limit retires a build and immediately clears its metadata. Lightweight retired records are deleted on cleanup after 24 hours and successful manifest removal; their package/version identifiers can then be registered again. Failed or interrupted manifest removals are retried hourly. Until removal succeeds, the registration and its referenced artifacts are retained, and the files may remain publicly accessible. Resource mappings are immutable only while their registration records remain.
Each add-on permits at most 1000 registration records, including retired records. New registrations exceeding this limit return HTTP 409 until cleanup frees capacity; identical retries remain accepted. Metadata is bounded by the 5 MiB upload limit and maximum retained version count plus one replacement, without a separate byte quota. Limits are enforced during registration and scheduled cleanup.
Superseded artifacts are deleted on cleanup after a fixed 24-hour window. All artifact files, including superseded files and incomplete publication output, count towards hard limits of 5 GiB and 10000 files per add-on. The larger artifact allowance accommodates translated text and multiple locales; it does not guarantee capacity for every locale or build combination. Shared artifacts count only once. Publications exceeding either limit fail before writing new artifacts and preserve the previous manifest. Neither the window nor these limits are configurable. Limit manifest caching as described below.
Compilation stages one locale at a time on disk. A per-locale conservative encoded text and styling estimate exceeding 64 MiB fails publication.
Preparation additionally requires up to 5 GiB of temporary disk space per
publication job, separate from the published artifact allowance. Temporary
files contain staged ARSC output, shared by versions with identical resource mappings.
They are stored below LOCALIZE_CDN_PATH. Configure the server to
deny access to .kotlin-sdk-staging as described in
Yerelleştirme CDN before enabling this add-on.
Manifest replacement follows the database commit. Failed or interrupted writes are retried by subsequent publication jobs, with artifacts for both the old and pending manifest protected until replacement succeeds.
Uninstalling the add-on attempts to remove its published files from the CDN origin immediately. Failed or interrupted removals are retried hourly; files may remain publicly accessible until cleanup succeeds. Removal does not revoke copies already cached or downloaded by clients.
Publication and cleanup run asynchronously after build registration, component updates, translation commits and removals, and during daily add-on processing. Failures appear in the add-on activity log and registration status. Previous successful publications remain available when replacement generation fails. If the component stops using the Android resource format, hourly maintenance retires its publications. The normal artifact retention window still applies.
CDN client contract¶
Each build has a stable manifest at
<CDN base>/<packageName>/<versionCode>/manifest.json. The version 1 manifest
contains schemaVersion, packageName, versionCode, and locales.
Locale keys are Weblate language codes. Each locale contains a relative url,
sha256, and byte size for its ARSC artifact. Resolve relative URLs against
the manifest URL. Artifact contents do not change after publication.
The manifest has a JSON Schema.
Configure the CDN origin to cache manifests for at most one hour (for example,
Cache-Control: public, max-age=3600), and artifact files with
Cache-Control: public, max-age=31536000, immutable. Artifact files may use
application/octet-stream. Configure these headers on the CDN server.
Translation updates and retirements can take up to one hour to reach clients.
Use Cache-Control: no-cache when immediate revalidation is preferred.
The fixed 24-hour artifact retention window exceeds the manifest cache lifetime.
The Kotlin SDK should validate artifact length and hash, cache successful downloads locally, and load them with Android’s resources-loader API on API 30 or newer. A missing manifest, missing locale, or download failure must preserve bundled resources. Retired manifests return 404 at the origin; cached copies can remain usable until they expire. Hashes detect corrupted or mismatched content; authentication relies on HTTPS and the configured CDN.
Boş dizgeleri silme¶
Added in version 4.4.
- Eklenti kimliği:
weblate.cleanup.blank- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Eklenti kurulumu, Depo işleme sonrası, Depo güncelleme sonrası
Çeviri dosyalarından çevirisi olmayan dizgeleri kaldırır.
Çeviri dosyalarında boş dizgelerin görünmemesi için bunu kullanın (yerelleştirme kitaplığınızın kaynak dizgeyi kullanmak yerine boş dizgeler görüntülemesi gibi durumlarda).
Çeviri dosyalarını temizleme¶
- Eklenti kimliği:
weblate.cleanup.generic- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Eklenti kurulumu, Depo güncelleme sonrası, Depo işleme öncesi
Tüm çeviri dosyalarını tek dilli temel dosyayla eşleşecek şekilde günceller. Bu işlem çoğu dosya biçiminde temel dosyada artık bulunmayan eski çeviri anahtarlarını kaldırır.
Çeviri dizgelerinin yanı sıra ek içerik barındıran biçimler için (HTML dosyaları, Windows RC dosyaları veya OpenDocument biçimi gibi) bu işlem çeviri dosyasını temel dosyayla eşitler.
For a one-time cleanup of a single translation file, use Cleanup unused in Depo bakımı on that translation instead of installing the add-on.
Eksik dilleri ekleme¶
- Eklenti kimliği:
weblate.consistency.languages- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Tasarı içindeki tüm bileşenler için tutarlı bir dil kümesinin kullanılmasını sağlar.
Not
Diğer projelerden paylaşılan bileşenler bu kapsamda değerlendirilmemiştir.
Eksik diller her 24 saatte bir ve Weblate üzerine yeni diller eklendiğinde denetlenir.
Diğerlerinden farklı olarak, bu eklenti tüm projeyi etkiler.
İpucu
Yeni eklenen dizgeler Kendiliğinden çeviri ile kendiliğinden çevrilir.
Bileşen keşfi¶
- Eklenti kimliği:
weblate.discovery.discovery- Yapılandırma:
File matching
matchÇeviri dosyalarıyla eşleştirilecek kurallı ifade
The regular expression must define a named group for component. Also define a named group for language when matching translation files. When the file mask is set, omit language and match the monolingual base or new base file instead.
file_formatDosya biçimi
language_regexDil süzgeci
Dosya maskesi taranırken çeviri dosyalarını süzmek için kullanılan kurallı ifade.
Component naming and file templates
name_templateBileşen adını özelleştirme
Django kalıbı sözdizimini kullanın. Bu kalıpta {{ bileşen }} bulunmalıdır.
base_file_templateTek dil temel dosyası adını tanımlayın
İki dilli çeviri dosyaları için boş bırakın. Ayarlandığında, bu kalıpta {{ bileşen }} bulunmalıdır.
new_base_templateYeni çeviriler için temel dosyayı tanımlama
Yeni çeviriler oluşturmak için kullanılan dosyanın adı. Gettext için .pot dosyasını seçin. Bu kalıpta {{ bileşen }} bulunmalıdır.
intermediate_templateAra dil dosyası
Ara çeviri dosyasının dosya adı. Çoğu durumda bu, geliştiriciler tarafından sağlanan bir çeviri dosyasıdır ve gerçek kaynak dizgeleri oluştururken kullanılır. Bu kalıpta {{ bileşen }} bulunmalıdır.
filemask_templateDefine the file mask
Leave empty to match translation files directly. When set, discovery matches the monolingual base or new base file and uses this template as the file mask. Include a language wildcard and {{ component }}, for example locale//{{ component }}.po or docs/{{ component }}_.md.
Component lifecycle
copy_addonsAna bileşendeki eklentileri yeni oluşturulanlara kopyalama
removeVar olmayan dosyalar için bileşenleri kaldırma
- Tetikleyiciler:
Sürüm denetim sistemindeki dosya değişikliklerine göre tasarı bileşenlerini kendiliğinden ekler ya da siler.
The matching is done using regular expressions enabling complex configuration, but some knowledge is required to do so. Usually the regular expression to match translation files has to contain two named groups to match component and language. When creating components from a monolingual base or new base file, omit the language group and match that source file instead. All named groups in the regular expression can be used as variables in the template fields.
Keşif gereksinimleri¶
Bir bileşenin başarılı bir şekilde keşfedilmesi için yapılandırma şunların tümünü yapmalıdır:
The regular expression must define a
componentnamed group. Matching translation files also requires alanguagenamed group.Her bileşen için dosyaları adlandırmak veya bulmak için kullanılan kalıp alanlarında
{{ bileşen }}bulunmalıdır. Böylece oluşturulan değer aslında keşfedilen her bileşen için değişir.For monolingual formats, the component must contain a file matching
base_file_templateand at least one translation file matchingmatch, unless you set the file mask (see below).
Discovering components without translation files¶
Set Define the file mask to discover components from a monolingual base or new base file alone, even when no translation files exist yet. In that mode:
Configure Regular expression to match translation files against to match the monolingual base or new base file, and omit the
languagegroup. Keep full control over thecomponentcapture, for examplelocale/(?P<component>[^/]+)\.potordocs/(?P<component>[^/_]+)\.md.Fill Define the file mask with a path that includes both a language wildcard and
{{ component }}, for examplelocale/*/{{ component }}.poordocs/{{ component }}_*.md.Keep using the other filename templates with any named groups from the match expression.
Çalışan örnek: news_<dil>.md¶
Bu, yaygın bir dosya adı temelli dil değişkeni düzenidir:
docs/news_en.mddocs/news_cs.mddocs/guide_en.md
Başlangıç noktası için Dosya adı temelli dil çeşitleri hazır ayarını kullanın. Ardından eşleşen dosya biçimini seçin ve doldurulmuş değerleri gözden geçirin.
- Kurallı ifade:
(?:(?P<path>.*/))?(?P<component>.+?)_(?P<language>[A-Za-z]{2,3}(?:[_-][A-Za-z0-9]+)*)\.(?P<extension>[^/.]+)- Bileşen adı:
{{ component }}- Keşfedilen dosya maskeleri:
docs/news_*.mddocs/guide_*.md
Bu örnekte, {{ bileşen }} dil son ekinden önce temel adına çözümlenir. Bu nedenle docs/news_en.md, docs/news_pt_BR.md ve docs/news_pt-BR.md dosyalarının tümü news bileşeni haline gelir.
Django kalıbındaki markup kodlarını tüm dosya adı alanlarında kullanabilirsiniz. Örneğin:
{{ component }}Bileşen adı
bileşeneşleşme grubundan ayrıştırıldı{{ component|title }}İlk harfi büyük bileşenin dosya adıyla eşleşir
{{ path }}: {{ component }}Kurallı ifadedeki özel grup ile eşleşir
Kaydet üzerine tıkladığınızda, yapılandırmanın gereksinimlerinize uyup uymadığını denetleyebileceğiniz biçimde eşleşen bileşenlerin ön izlemesi sunulur:
Bileşen keşfi örnekleri¶
Yukarıdaki çalışan örnek, en yaygın dosya adı temelli değişken düzenini kapsar. Aşağıdaki örnekler, eşleştirebileceğiniz diğer depo yapılarını göstermektedir.
Her dil için ayrı klasör¶
Her dil için bileşenlerin çeviri dosyalarını içeren ayrı bir klasör kullanılır.
- Kurallı ifade:
(?P<language>[^/.]*)/(?P<component>[^/]*)\.po- Eşleşen dosyalar:
cs/application.pocs/website.pode/application.pode/website.po
Gettext yerelleri yerleşimi¶
Gettext PO dosyalarını kaydetmek için alışılmış yapı.
- Kurallı ifade:
locale/(?P<language>[^/.]*)/LC_MESSAGES/(?P<component>[^/]*)\.po- Eşleşen dosyalar:
locale/cs/LC_MESSAGES/application.polocale/cs/LC_MESSAGES/website.polocale/de/LC_MESSAGES/application.polocale/de/LC_MESSAGES/website.po
Karmaşık dosya adları¶
Dosya adında hem bileşen hem de dil adını kullanmak.
- Kurallı ifade:
src/locale/(?P<component>[^/]*)\.(?P<language>[^/.]*)\.po- Eşleşen dosyalar:
src/locale/application.cs.posrc/locale/website.cs.posrc/locale/application.de.posrc/locale/website.de.po
Yinelenen dil kodu¶
Yol ve dosya adında dili kullanmak.
- Kurallı ifade:
locale/(?P<language>[^/.]*)/(?P<component>[^/]*)/(?P=language)\.po- Eşleşen dosyalar:
locale/cs/application/cs.polocale/cs/website/cs.polocale/de/application/de.polocale/de/website/de.po
Android dizgeleri ayrılsın¶
Android kaynak dizgeleri, birkaç dosyaya ayrılmış.
- Kurallı ifade:
res/values-(?P<language>[^/.]*)/strings-(?P<component>[^/]*)\.xml- Eşleşen dosyalar:
res/values-cs/strings-about.xmlres/values-cs/strings-help.xmlres/values-de/strings-about.xmlres/values-de/strings-help.xml
Birkaç yolu eşleştirmek¶
Java öznitelikleri çevirileri ile birkaç modüllü Maven projesi.
- Kurallı ifade:
(?P<originalHierarchy>.+/)(?P<component>[^/]*)/src/main/resources/ApplicationResources_(?P<language>[^/.]*)\.properties- Bileşen adı:
{{ originalHierarchy }}: {{ component }}- Eşleşen dosyalar:
parent/module1/submodule/src/main/resources/ApplicationResources_fr.propertiesparent/module1/submodule/src/main/resources/ApplicationResource_es.propertiesparent/module2/src/main/resources/ApplicationResource_de.propertiesparent/module2/src/main/resources/ApplicationResource_ro.properties
İpucu
Bileşen bulma eklentisi İç Weblate adresleri kullanır. Sürüm denetimi sistemi kurulumunu birden çok bileşen arasında paylaşmanın kullanışlı bir yoludur. Bağlı bileşenler, ilgili her bir bileşenin Kaynak kod deposu alanına (İşlemler ↓ Ayarlar ↓ Sürüm denetimi sistemi) weblate://project/main-component doldurularak kurulan ana bileşenin yerel deposunu kullanır. Böylece yapılandırma ve sistem kaynakları açısından da zaman kazanılır.
İpucu
Yeni bileşende Eksik dilleri ekleme ile çevrilebilecek dillerin tam kümesinin bulunduğundan emin olun.
Ayrıca bakınız
Fedora Messaging¶
Added in version 5.15.
- Eklenti kimliği:
weblate.fedora_messaging.publish- Yapılandırma:
Broker connection
amqp_urlAMQP broker URL
The AMQP broker URL to connect to.
topic_prefixTopic prefix
Optional prefix to prepend to generated message topics.
Timeouts and retries
publish_timeoutYayınlama zaman aşımı
How many seconds to wait for the broker delivery acknowledgement.
connection_attemptsConnection attempts
How many times to try connecting to the broker.
retry_delayRetry delay
How many seconds to wait between connection attempts.
TLS credentials
ca_certCA certificate bundle (PEM)
Paste only PEM certificate blocks, each starting with “—–BEGIN CERTIFICATE—–” and ending with “—–END CERTIFICATE—–“.
client_keyClient private key (PEM)
Paste a single unencrypted PEM private key block. Encrypted private keys are not supported.
client_certClient certificate (PEM)
Sadece “—–BEGIN CERTIFICATE—–” ile başlayan sertfika parçasını yapıştır; “openssl x509 -text” den çıkan çıktıyı yapıştırma.
Event selection
event_filterChange events to trigger
Choose which change events should trigger this add-on. Change events to trigger
eventsSelected change events
- Tetikleyiciler:
Fedora Messaging uyumlu bir AMQP değişimine bildirimler gönderir.
Fedora Messaging, Weblate üzerinde yapılan tüm değişiklikleri ileten AMQP temelli bir yayınlayıcıdır. Bunu kullanarak Weblate üzerindeki değişikliklere ek hizmetler bağlayabilirsiniz.
Configure the broker with a plain amqp:// or amqps:// URL, including
its virtual host. URL query strings and fragments are not supported. Use the
add-on’s connection attempts, retry delay, and publish timeout fields instead.
The publish timeout covers connection attempts, retry delays, and broker
confirmation. Publishing resolves DNS when opening a connection and reuses the
existing connection without further DNS lookups. Resolved addresses and the
connected peer are checked against the configured private-network restrictions.
Synchronous DNS resolution cannot be interrupted by the publish timeout and
can exceed it when the system resolver is slow or unavailable. Rejected
messages are not retried.
Weblate reuses a publisher connection in each worker process, with AMQP heartbeats disabled. Failed connections are discarded and recreated on the next attempt. A lost broker confirmation can cause duplicate delivery; consumers can identify retries by their unchanged message ID.
İleti konusu¶
All messages have topic
weblate.<action>.<project>.<category...>.<component>.<translation>.
When configured, topic_prefix is prepended to this topic using a single dot
separator, for example org.fedoraproject.weblate.project_backed_up.website.
The action is lowercase textual representation of action with underscores
instead of space, for example resource_updated; see Selected change events
for all action identifiers. The remaining parts match Weblate object path
segments.
For example, a project backup event for the website project uses
weblate.project_backed_up.website. A translation change in the website
project, frontend component, and Czech translation uses
weblate.translation_changed.website.frontend.cs. The same change in the
frontend component inside the parent and child categories uses
weblate.translation_changed.website.parent.child.frontend.cs.
İleti gövdesi¶
Gövde aşağıdaki alanlardan oluşur (etkinlik için uygun oldukları göz önüne alındığında):
change_idDeğişikliğin sayısal kimliği
actionDeğişikliğin ayrıntılı adı.
timestampISO biçiminde zaman damgası
targetDeğişikliğin yeni değeri (örneğin dizgenin yeni çevirisi)
oldDeğişikliğin eski değeri (örneğin dizgenin önceki çevirisi)
sourceKaynak dizge.
urlİlgili nesneyi görüntüleyecek mutlak adres.
authorYazar kullanıcı adı (örneğin önerileri kabul ederken kullanıcıdan farklı olabilir)
userİşlemi yapan kullanıcı adı
projectProjenin adres son eki
componentBileşenin adres son eki
translationÇeviri dili kodu
İleti üst bilgileri¶
Yönlendirme için de kullanabileceğiniz ek üst bilgiler bulunur:
actionDeğişikliğin ayrıntılı adı.
projectProjenin adres son eki
componentBileşenin adres son eki
Örnek iletiler¶
Depo birleştirme etkinliği:
{
"id": 1,
"action": "Merged repository",
"timestamp": "2017-06-15T11:30:47.325000+00:00",
"url": "http://example.com/projects/test/test/",
"component": "test"
}
Yeni kaynak dizge etkinliği:
{
"id": 2,
"action": "New source string",
"timestamp": "2017-06-15T11:30:47.372000+00:00",
"url": "http://example.com/translate/test/test/cs/?checksum=6412684aaf018e8e",
"component": "test",
"translation": "cs",
"source": ["Hello, world!\n"]
}
Kaynak güncellendi etkinliği:
{
"id": 6,
"action": "Resource update",
"timestamp": "2017-06-15T11:30:47.410000+00:00",
"url": "http://example.com/projects/test/test/cs/",
"project": "test",
"component": "test",
"translation": "cs"
}
{
"id": 7,
"action": "Resource update",
"timestamp": "2017-06-15T11:30:47.510000+00:00",
"url": "http://example.com/projects/test/test/de/",
"project": "test",
"component": "test",
"translation": "de"
}
{
"id": 8,
"action": "Resource update",
"timestamp": "2017-06-15T11:30:47.595000+00:00",
"url": "http://example.com/projects/test/test/it/",
"project": "test",
"component": "test",
"translation": "it"
}
Proje silindi etkinliği:
{
"id": 9,
"action": "Removed project",
"timestamp": "2019-10-17T15:57:08.559420+00:00",
"target": "test",
"user": "testuser"
}
Yeni katılımcı etkinliği:
{
"id": 11,
"action": "New contributor",
"timestamp": "2019-10-17T15:57:08.759960+00:00",
"url": "http://example.com/translate/test/test/cs/?checksum=6412684aaf018e8e",
"author": "testuser",
"user": "testuser",
"project": "test",
"component": "test",
"translation": "cs",
"source": ["Hello, world!\n"]
}
Yeni çeviri etkinliği:
{
"id": 12,
"action": "New translation",
"timestamp": "2019-10-17T15:57:08.772591+00:00",
"url": "http://example.com/translate/test/test/cs/?checksum=6412684aaf018e8e",
"target": ["Ahoj svete!\n"],
"author": "testuser",
"user": "testuser",
"project": "test",
"component": "test",
"translation": "cs",
"source": ["Hello, world!\n"]
}
Ayrıca bakınız
Toplu düzenleme¶
- Eklenti kimliği:
weblate.flags.bulk- Yapılandırma:
qSorgu
search_typeArama türü
Kullanılabilecek seçenekler:¶ textMetin
regexKurallı ifade
searchArama dizgesi
Case-sensitive text or regular expression to replace in matching strings. Leave empty to disable replacement.
replacementDeğiştirilecek dizge
Leave empty to remove matching text. In regular expression mode, use 1 for the first captured group. Named group references are also supported.
stateAyarlanacak durum
Kullanılabilecek seçenekler:¶ -1Değiştirilmesin
0Boş
10Düzenlenmesi gerekli
11Düzenlenmesi gerekli (Yeniden yazılmalı)
12Düzenlenmesi gerekli (Denetlenmesi gerekli)
20Çevrilmiş
30Onaylanmış
Source flags
Flags are set on the source strings corresponding to your filter results and apply to their translations in every language.
add_flagsAdd flags
remove_flagsRemove flags
Translation flags
Flags apply only to translations matching your filter. Source strings are excluded.
add_translation_flagsAdd flags
remove_translation_flagsRemove flags
Only flags set directly on these translations are removed. Inherited flags remain in effect.
Labels
Labels apply to the source strings corresponding to your filter results and are shared across all languages.
add_labelsAdd labels
remove_labelsRemove labels
- Tetikleyiciler:
Bulk edit text, flags, labels, or states of strings.
Uses the operations described in Toplu düzenleme, including literal or regular expression replacement and clearing translations. Runs process all eligible matching strings without interactive preview. See Toplu düzenleme for replacement syntax and string state values.
Örnekler:
Arama sorgusu |
|
|---|---|
Labels: Add labels |
son |
Arama sorgusu |
|
|---|---|
Translation flags: Add flags |
|
Arama sorgusu |
|
|---|---|
Translation flags: Add flags |
|
Değiştirilmemiş çevirileri “Yeniden yazılmalı” olarak imleme¶
- Eklenti kimliği:
weblate.flags.same_edit- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Sürüm denetimi sisteminden yeni bir çevrilebilir dizge içe aktarıldığında ve bir kaynak dizgeyle eşleştiğinde, Weblate üzerinde yeniden yazılmalı olarak imlenir. Özellikle çevrilmemiş dizgeler için kaynak dizgeleri içeren dosya biçimleri için kullanışlıdır.
İpucu
Ayrıca, Çeviri imleri için strict-same imini ekleyerek Çeviri değiştirilmemiş kalite denetimini sıkılaştırmak isteyebilirsiniz.
Ayrıca bakınız
Yeni kaynak dizgeleri “Denetlenmesi gerekli” olarak imleme¶
- Eklenti kimliği:
weblate.flags.source_edit- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Sürüm denetimi sisteminden yeni bir kaynak dizge içe her aktarıldığında, Weblate üzerinde denetlenmesi gerekli olarak imlenir. Böylece geliştiriciler tarafından yazılan kaynak dizgeleri kolayca süzebilir ve düzenleyebilirsiniz.
Ayrıca bakınız
Yeni çevirileri “Yeniden yazılmalı” olarak imleme¶
- Eklenti kimliği:
weblate.flags.target_edit- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Sürüm denetimi sisteminden yeni bir çevrilebilir dizge içeri her aktarıldığında, Weblate üzerinde yeniden yazılmalı olarak imlenir. Böylece geliştiricilerin oluşturduğu çevirileri kolayca süzebilir ve düzenleyebilirsiniz.
Ayrıca bakınız
Depodan güncellenmiş çevirileri “Yeniden yazılmalı” olarak imle¶
- Eklenti kimliği:
weblate.flags.target_repo_update- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Sürüm denetimi sisteminden bir dizge çevirisi değiştirildiğinde, Weblate üzerinde yeniden yazılmalı olarak imlenir. Özellikle çeviri dosyaları sık sık el ile veya bir dış hizmet tarafından güncelleniyorsa kullanışlıdır.
Ayrıca bakınız
Salt okunur dizgeleri kaynak ile doldurma¶
Added in version 4.18.
- Eklenti kimliği:
weblate.generate.fill_read_only- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Salt okunur dizgelerin çevirilerini kaynak dizgeler ile doldurur.
İstatistik oluşturma¶
- Eklenti kimliği:
weblate.generate.generate- Yapılandırma:
scopeOutput scope
Kullanılabilecek seçenekler:¶ translationOne file per translation
componentOne file per component
filenameOluşturulacak dosyanın adı
templateOluşturulacak dosyanın içeriği
- Tetikleyiciler:
Eklenti kurulumu, Bileşen güncellemesi, Depo ekleme sonrası, Depo kaldırma sonrası, Depo işleme öncesi
Çeviri durumu ile ilgili ayrıntılı bilgiler içeren bir dosya oluşturur.
Hem dosya adında hem de içerikte bir Django kalıbı kullanabilirsiniz. Markup ile ilgili ayrıntılı bilgi almak için Kalıp kodlaması bölümüne bakabilirsiniz.
Örneğin, her çeviri için bir özet dosyası oluşturma:
- Oluşturulacak dosyanın adı
locale/{{ language_code }}.json- İçerik
{ "language": "{{ language_code }}", "strings": "{{ stats.all }}", "translated": "{{ stats.translated }}", "last_changed": "{{ stats.last_changed }}", "last_author": "{{ stats.last_author }}", }
Component-wide output¶
Set Output scope to One file per component to maintain one locale list or statistics file for the entire component. The default, One file per translation, preserves existing configurations.
Component output is generated on installation and configuration changes. It is updated when translations are committed, languages are added or removed, and component files are reloaded. Language metadata changes are included on the next such update or when the add-on is reconfigured. Unchanged output does not create a new commit.
Both modes support component and project variables in filenames and content.
In component mode, the content additionally receives translations, ordered
by repository language code. Each item provides:
language_code: the language code used in the repository.language_name: the English language name.language_native_name: the name translated into its own language using Weblate’s catalogs, with an English fallback when unavailable.language_direction:ltrorrtl.filenameandurl: the translation filename and Weblate URL.is_source: whether this is the component’s source translation.stats: the same statistics available in translation mode.
The source translation is included. Templates can exclude it using
{% if not item.is_source %}. Statistics use Weblate’s completion semantics.
Custom language names are retained; there is no external locale-data lookup.
For example, generate locales.json for a website:
[
{% for item in translations %}
{
"code": {{ item.language_code|json }},
"file": {{ item.filename|json }},
"name": {{ item.language_native_name|json }},
"dir": {{ item.language_direction|json }}
}{% if not forloop.last %},{% endif %}
{% endfor %}
]
Or generate languages.py for an application:
names = {
{% for item in translations %}
{{ item.language_code|python }}: {{ item.language_native_name|python }},
{% endfor %}
}
completeness = {
{% for item in translations %}
{{ item.language_code|python }}: {{ item.stats.translated_percent|python }},
{% endfor %}
}
The json and python filters serialize complete values, including string
quotes and escaping. Do not add quotes around their output. They also support
lists and dictionaries; {{ translations|json }} exports all available data.
Dates and times are serialized as ISO-formatted strings.
Ayrıca bakınız
Çeviriyi kaynak dizgeyle önceden doldurma¶
Added in version 4.11.
- Eklenti kimliği:
weblate.generate.prefill- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Çeviri dizgelerini kaynak dizgeler ile doldurur.
Bileşendeki tüm çevrilmemiş dizgeler kaynak dizgeyle doldurulur ve düzenlenmesi gerekli olarak imlenir. Çeviri dosyalarında boş dizge kabul edilmediğinde bunu kullanın. .. AUTOGENERATED START: weblate.generate.pseudolocale .. Bu bölüm ./manage.py list_addons tarafından kendiliğinden oluşturulur. El ile düzenlemeyin.
Sözde yerel oluşturma¶
Added in version 4.5.
- Eklenti kimliği:
weblate.generate.pseudolocale- Yapılandırma:
Source and target
sourceKaynak dizgeler
include_readonlySalt okunur dizgeleri katma
targetHedef çeviri
Bu çevirideki tüm dizgelerin üzerine yazılacak
Prepended text
prefixBaşa eklenmiş sabit yazı
var_prefixBaşa eklenmiş değişken yazı
Appended text
suffixSona eklenmiş sabit yazı
var_suffixSona eklenmiş değişken yazı
Text expansion
var_multiplierDeğişken yazı çarpanı
Kaynak dizgenin uzunluğuna bağlı olarak değişken yazının kaç kez yineleneceği.
- Tetikleyiciler:
Kaynak dizgelere kendiliğinden ön ek ve son ek ekleyerek çeviri oluşturur.
Sözde yereller, yerelleştirme için hazırlanmamış dizgeleri bulmaya yarar. Böylece, uygulamayı sözde yerel dilde çalıştırırken değiştirilmemiş dizgelerin bulunmasını kolaylaştırmak için tüm çevrilebilir kaynak dizgeleri değiştirilir.
Yerelleştirilmiş karşılıkları yerleşime uymayabilecek dizgeler de bulunabilir.
Değişken bölümlerin kullanılması, yerelleştirmeden sonra kullanıcı arabirimine sığmayabilecek dizgelerin bulunmasını sağlar. İçerik kaynak dizge uzunluğuna göre genişletilir. Değişken yazılar, içeriğin uzunluğunun çarpanla çarpılmasıyla yinelenir. Örneğin, Merhaba dünya ve _ değişken yazısı ile değişken çarpanı 1 olduğunda Merhaba dünya___________ olur. Yazı kaynak dizgedeki her karakter için bir kez yinelenir.
Dizgeler şu model kullanılarak oluşturulacak:
Başa eklenmiş sabit yazı Başa eklenmiş değişken yazı Kaynak dizge Sona eklenmiş değişken yazı Sona eklenmiş sabit yazı
İpucu
Deneme için gerçek dilleri kullanabilirsiniz. Bunun yanında Weblate üzerinde en_XA ve ar_XB gibi bu iş için ayrılmış sahte ayarlar vardır.
İpucu
Bu eklentiyi, var olan bir dilin ya da benzer bir dilin yeni bir yerel ayarına çeviri başlatmak için kullanabilirsiniz. Çeviriyi bileşene ekledikten sonra, eklentiyi izleyin. Örnek: fr diliniz varsa ve fr_CA çevirisini başlatmak istiyorsanız, kaynak olarak fr, hedef olarak fr_CA ayarlayın ve ön ek ile son eki boş bırakın.
Kopyalamadan sonra yapılan çevirilerin Weblate tarafından değiştirilmesini önlemek için yeni çeviriyi doldurduktan sonra eklentiyi kaldırın.
“configure” dosyasındaki ALL_LINGUAS değişkeni güncelleme¶
- Eklenti kimliği:
weblate.gettext.configure- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Eklenti kurulumu, Günlük, Depo ekleme sonrası, Depo kaldırma sonrası
Bir çeviri eklendiğinde veya kaldırıldığında “configure”, “configure.in” veya “configure.ac” dosyalarındaki ALL_LINGUAS değişkenini günceller.
Bir çeviri eklendiğinde veya kaldırıldığında, configure, configure.in veya herhangi bir configure.ac dosyasındaki ALL_LINGUAS değişkenini günceller.
Gettext çıktısını özelleştirme¶
Removed in version 5.13: Dosya biçimi parametreleri ile değiştirildi.
Update gettext template (Django)¶
Added in version 5.17.
- Eklenti kimliği:
weblate.gettext.django- Yapılandırma:
intervalGüncelleme sıklığı
Bileşen yenilendiğinde eklentinin POT dosyasının ne sıklıkta güncellemesi gerektiği.
Kullanılabilecek seçenekler:¶ dailyGünlük
weeklyHaftalık
monthlyAylık
normalize_headerPOT üst bilgisini normalleştirme
Gettext üst bilgilerini günceller ve yer belirtici POT yorumlarını değiştirir.
location_modeKaynak konumları
Choose how extraction writes source locations to the POT file. Use this to keep locations in the template while omitting them from translated PO files.
Kullanılabilecek seçenekler:¶ fileDosya biçimi ayarlarını kullan
keepKonumları POT dosyasına ayıkla
omitKonumlar ayıklanmasın
- Tetikleyiciler:
Hazır Django makemessages komutunu kullanarak gettext kalıbını günceller.
This add-on updates the template configured in Yeni çeviriler kalıbı. It is available for gettext PO components, and the component must define a template for new translations.
The selected update frequency applies to automatic runs after repository refreshes. Installing or reconfiguring the add-on runs it immediately, and manual runs from add-on management or the API also bypass the frequency schedule. After a successful update, Weblate commits the changed template and reloads source strings.
The template update does not update translation PO files by itself. Keep PO dosyalarını POT ile eşleştirerek güncelleme (msgmerge) installed when translation files should follow template changes automatically. The install form for this add-on can install that add-on, but existing add-on settings do not show that installation option again.
Django requirements¶
This add-on requires xgettext and msguniq. It runs Weblate’s internal extraction wrapper for Django messages instead of invoking a project’s manage.py makemessages, so it does not load project Django settings or applications.
The template for new translations must use the django or djangojs
domain. Supported template names are django.pot, djangojs.pot,
django.po, and djangojs.po. Weblate infers the source directory
from the template path and skips repository locale directories while extracting.
LINGUAS dosyasını güncelleme¶
- Eklenti kimliği:
weblate.gettext.linguas- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Eklenti kurulumu, Günlük, Depo ekleme sonrası, Depo kaldırma sonrası
Yeni bir çeviri eklendiğinde ya da kaldırıldığında LINGUAS dosyası güncellenir.
POT dosyasını güncelle (Meson)¶
Added in version 5.17.
- Eklenti kimliği:
weblate.gettext.meson- Yapılandırma:
Update behavior
intervalGüncelleme sıklığı
Bileşen yenilendiğinde eklentinin POT dosyasının ne sıklıkta güncellemesi gerektiği.
Kullanılabilecek seçenekler:¶ dailyGünlük
weeklyHaftalık
monthlyAylık
normalize_headerPOT üst bilgisini normalleştirme
Gettext üst bilgilerini günceller ve yer belirtici POT yorumlarını değiştirir.
location_modeKaynak konumları
Choose how extraction writes source locations to the POT file. Use this to keep locations in the template while omitting them from translated PO files.
Kullanılabilecek seçenekler:¶ fileDosya biçimi ayarlarını kullan
keepKonumları POT dosyasına ayıkla
omitKonumlar ayıklanmasın
Meson preset
presetMeson hazır ayarı
Meson gettext bütünleştirmesiyle eşleşen hazır xgettext değişkeni hazır ayarı. GLib hazır ayarı, Meson gettext yardımcısı tarafından kullanılan anahtar sözcük ve biçim-im seçeneklerini ekler.
Kullanılabilecek seçenekler:¶ glibGLib
Comment extraction
comment_modeKod yorumları
Hiç bir xgettext yorumu ayıklanmayacak, tüm yorumlar ayıklanacak veya yalnızca belirli bir etiketle imlenmiş yorumlar ayıklanacak olarak seçin.
Kullanılabilecek seçenekler:¶ offYorumlar ayıklanmasın
allTüm yorumlar ayıklansın
taggedBelirli bir etiketteki yorumlar ayıklansın
comment_tagYorum etiketi
Etiketli yorum kipini kullanırken yorum ayıklaması için xgettext üzerine aktarılan etiket.
Keywords
keywordAdditional keywords
Newline-separated extra keywords passed to xgettext using –keyword.
keyword_exclusiveUse keywords exclusively
When enabled, passes
--keywordwithout a value to xgettext before the additional keyword, disabling all default keywords so that only the keyword specified above is recognized.Checks and ITS data
checksxgettext denetimleri
Ayıklanan iletileri etkinleştirmek için ek xgettext doğrulama denetimleri.
Kullanılabilecek seçenekler:¶ ellipsis-unicodeellipsis-unicode
space-ellipsisspace-ellipsis
quote-unicodequote-unicode
bullet-unicodebullet-unicode
data_dirsITS data directories
Newline-separated repository-relative directories containing an its subdirectory, for example po for po/its. Earlier directories override later directories and bundled rules.
- Tetikleyiciler:
Meson gettext kurallarını kullanarak gettext kalıbını günceller.
This add-on updates the template configured in Yeni çeviriler kalıbı. It is available for gettext PO components, and the component must define a template for new translations.
The selected update frequency applies to automatic runs after repository refreshes. Installing or reconfiguring the add-on runs it immediately, and manual runs from add-on management or the API also bypass the frequency schedule. After a successful update, Weblate commits the changed template and reloads source strings.
The template update does not update translation PO files by itself. Keep PO dosyalarını POT ile eşleştirerek güncelleme (msgmerge) installed when translation files should follow template changes automatically. The install form for this add-on can install that add-on, but existing add-on settings do not show that installation option again.
Meson requirements¶
This add-on requires xgettext; it does not invoke Meson. It follows
Meson gettext conventions by reading POTFILES or POTFILES.in
from the gettext directory and passing the GLib keyword and format-flag preset
to xgettext.
The gettext directory is the directory containing the template configured in
Yeni çeviriler kalıbı. It must contain meson.build and
POTFILES or POTFILES.in. A Meson project meson.build
must be present in that directory or one of its parent directories. If both
POTFILES and POTFILES.in exist, POTFILES is used.
An adjacent POTFILES.skip excludes listed source files from extraction.
Configure this add-on from the existing Meson gettext setup. In most Meson
projects, the gettext directory is po/, the template is named after the
gettext domain, and po/meson.build calls Meson’s gettext helper. Use the
same template path in Yeni çeviriler kalıbı, for example
po/example.pot, and keep POTFILES or POTFILES.in next to
that meson.build file.
Weblate does not read the source file list from meson.build. It uses
POTFILES or POTFILES.in, matching Meson’s gettext convention.
When the Meson project uses a non-default gettext directory or domain, mirror
that layout in the component template path.
MO dosyaları üretme¶
- Eklenti kimliği:
weblate.gettext.mo- Yapılandırma:
pathOluşturulan MO dosyasının yolu
Belirtilmemişse, PO dosyasının konumu kullanılır.
fuzzyDüzenlenmesi gereken dizgeler katılsın
Düzenlenmesi gereken (belirsiz) dizgeler genellikle çeviri olarak kullanılmaya hazır değildir.
- Tetikleyiciler:
PO dosyası her değiştirildiğinde MO dosyası kendiliğinden oluşturulur.
Oluşturulan MO dosyasının konumu özelleştirilebilir ve bunun için Kalıp kodlaması alanı kullanılır.
Not
Bir çeviri silinirse, PO dosyası depodan silinir, ancak bu eklenti tarafından oluşturulmuş MO dosyası silinmez. MO dosyası yukarı akıştan el ile kaldırılmalıdır.
PO dosyalarını POT ile eşleştirerek güncelleme (msgmerge)¶
5.13 sürümünde değişti: Ayarlar yapılandırması Dosya biçimi parametreleri konumuna taşındı.
- Eklenti kimliği:
weblate.gettext.msgmerge- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Tüm PO dosyalarını (“Dosya maskesi” tarafından yapılandırıldığı gibi) msgmerge kullanarak POT dosyasıyla eşleşecek şekilde günceller (“Yeni çeviriler kalıbı” tarafından yapılandırıldığı gibi).
Bu eklenti, POT (kalıb) dosyasının yeni dizgelerle ya da var olan dizgelerdeki değişikliklerle güncellendiği gettext PO dosyalarıyla çalışırken çok önemlidir. POT dosyası depoda güncellendiğinde, bu eklenti bu değişiklikleri otomatik olarak tüm dil PO dosyalarıyla birleştirerek şunları sağlar:
Yeni çevrilebilir dizgeler tüm dillerde görüntülenir
Kaldırılmış dizgeler kullanılmıyor olarak işaretlenir
Değiştirilmiş dizgeler gözden geçirilmesi gerekli olarak işaretlenir (bulanık)
Most msgmerge command-line options can be set up through file format parameters
configuration. Enable the po_remove_obsolete parameter to remove obsolete
#~ entries when PO files are saved.
POT dosyasını güncelle (Sphinx)¶
Added in version 5.17.
- Eklenti kimliği:
weblate.gettext.sphinx- Yapılandırma:
intervalGüncelleme sıklığı
Bileşen yenilendiğinde eklentinin POT dosyasının ne sıklıkta güncellemesi gerektiği.
Kullanılabilecek seçenekler:¶ dailyGünlük
weeklyHaftalık
monthlyAylık
normalize_headerPOT üst bilgisini normalleştirme
Gettext üst bilgilerini günceller ve yer belirtici POT yorumlarını değiştirir.
location_modeKaynak konumları
Choose how extraction writes source locations to the POT file. Use this to keep locations in the template while omitting them from translated PO files.
Kullanılabilecek seçenekler:¶ fileDosya biçimi ayarlarını kullan
keepKonumları POT dosyasına ayıkla
omitKonumlar ayıklanmasın
filter_modeSüzme
İsteğe bağlı olarak Sphinx ayıklamasından sonra çevrilmeye uygun olmayan dizgeleri kaldırır.
Kullanılabilecek seçenekler:¶ noneYok
weblate_docsWeblate belgeleri
- Tetikleyiciler:
Tasarı yapılandırmasını yüklemeden Sphinx gettext oluşturucusunu kullanarak gettext şablonunu günceller.
This add-on updates the template configured in Yeni çeviriler kalıbı. It is available for gettext PO components, and the component must define a template for new translations.
The selected update frequency applies to automatic runs after repository refreshes. Installing or reconfiguring the add-on runs it immediately, and manual runs from add-on management or the API also bypass the frequency schedule. After a successful update, Weblate commits the changed template and reloads source strings.
The template update does not update translation PO files by itself. Keep PO dosyalarını POT ile eşleştirerek güncelleme (msgmerge) installed when translation files should follow template changes automatically. The install form for this add-on can install that add-on, but existing add-on settings do not show that installation option again.
Sphinx requirements¶
This add-on requires sphinx-build, provided by the sphinx
installation extra. The template for new translations must be a .pot
file below a locales directory. The directory before locales is
used as the Sphinx source directory and must contain conf.py.
Extraction uses Weblate’s bundled Sphinx configuration and does not load the project configuration. Weblate runs the Sphinx gettext builder, normalizes source references to paths relative to the source directory, and copies the generated template back to the configured template path.
POT dosyasını güncelle (xgettext)¶
Added in version 5.17.
- Eklenti kimliği:
weblate.gettext.xgettext- Yapılandırma:
Update behavior
intervalGüncelleme sıklığı
Bileşen yenilendiğinde eklentinin POT dosyasının ne sıklıkta güncellemesi gerektiği.
Kullanılabilecek seçenekler:¶ dailyGünlük
weeklyHaftalık
monthlyAylık
normalize_headerPOT üst bilgisini normalleştirme
Gettext üst bilgilerini günceller ve yer belirtici POT yorumlarını değiştirir.
location_modeKaynak konumları
Choose how extraction writes source locations to the POT file. Use this to keep locations in the template while omitting them from translated PO files.
Kullanılabilecek seçenekler:¶ fileDosya biçimi ayarlarını kullan
keepKonumları POT dosyasına ayıkla
omitKonumlar ayıklanmasın
Input files
input_modeGiriş kaynağı
xgettext tarafından kaynak dosyalarının glob modellerinden mi yoksa bir POTFILES/POTFILES.in bildiriminden mi okunacağını seçin.
Kullanılabilecek seçenekler:¶ patternsKaynak dosya modelleri
potfilesPOTFILES envanteri
languagexgettext dili
Programming language passed to xgettext, for example Python or C. Leave blank to let xgettext guess the language from file extensions.
source_patternsKaynak dosya modelleri
xgettext ile ayıklanacak dosyalar için yeni satır ile ayrılmış depoya göre glob modelleri.
potfiles_pathPOTFILES yolu
POTFILES veya POTFILES.in dosyasına depoya göre yol. Kayıtlar depo kök klasörüne göre çözümlenir. Envanterin yanında varsa, POTFILES.skip listelenen dosyaları ayıklamaya katmaz.
Comment extraction
comment_modeKod yorumları
Hiç bir xgettext yorumu ayıklanmayacak, tüm yorumlar ayıklanacak veya yalnızca belirli bir etiketle imlenmiş yorumlar ayıklanacak olarak seçin.
Kullanılabilecek seçenekler:¶ offYorumlar ayıklanmasın
allTüm yorumlar ayıklansın
taggedBelirli bir etiketteki yorumlar ayıklansın
comment_tagYorum etiketi
Etiketli yorum kipini kullanırken yorum ayıklaması için xgettext üzerine aktarılan etiket.
Keywords
keywordAdditional keywords
Newline-separated extra keywords passed to xgettext using –keyword.
keyword_exclusiveUse keywords exclusively
When enabled, passes
--keywordwithout a value to xgettext before the additional keyword, disabling all default keywords so that only the keyword specified above is recognized.Checks and ITS data
checksxgettext denetimleri
Ayıklanan iletileri etkinleştirmek için ek xgettext doğrulama denetimleri.
Kullanılabilecek seçenekler:¶ ellipsis-unicodeellipsis-unicode
space-ellipsisspace-ellipsis
quote-unicodequote-unicode
bullet-unicodebullet-unicode
data_dirsITS data directories
Newline-separated repository-relative directories containing an its subdirectory, for example po for po/its. Earlier directories override later directories and bundled rules.
- Tetikleyiciler:
Seçilmiş kaynak dosyalarda xgettext kullanarak gettext kalıbını günceller.
This add-on updates the template configured in Yeni çeviriler kalıbı. It is available for gettext PO components, and the component must define a template for new translations.
The selected update frequency applies to automatic runs after repository refreshes. Installing or reconfiguring the add-on runs it immediately, and manual runs from add-on management or the API also bypass the frequency schedule. After a successful update, Weblate commits the changed template and reloads source strings.
The template update does not update translation PO files by itself. Keep PO dosyalarını POT ile eşleştirerek güncelleme (msgmerge) installed when translation files should follow template changes automatically. The install form for this add-on can install that add-on, but existing add-on settings do not show that installation option again.
xgettext requirements¶
This add-on requires xgettext. Configure either source file patterns
or a POTFILES / POTFILES.in manifest. Source file patterns are
repository-relative glob patterns and only matching repository files are passed
to xgettext.
Entries in POTFILES or POTFILES.in are resolved relative to the
repository root. They must be relative paths, stay inside the repository, and
point to existing files. Blank lines and lines starting with # are ignored.
If a POTFILES.skip file exists next to the manifest, its entries are
excluded from extraction.
Automatic repository refresh runs are skipped unless the changed files match the configured source patterns, match files listed in the manifest, change a watched manifest, or change the add-on configuration.
Start from the build-system extraction setup when configuring this add-on.
Autotools projects usually keep gettext inputs in po/POTFILES.in and
options such as the gettext domain and xgettext flags in
po/Makevars or related Makefile.am files. Use manifest mode
with the same POTFILES.in when its entries are plain repository-relative
source paths, and copy relevant extraction behavior into the add-on settings,
for example the language, comment extraction, checks, and additional keyword.
For other build systems, use the source list or extraction command they already
run as the source of truth. CMake, custom Makefiles, npm scripts, or project
specific extraction scripts often call xgettext directly or generate
an intermediate file list. Configure source patterns for simple layouts, or use
manifest mode when the project maintains a plain file list. If a build-system
manifest contains transformations or prefixes that are not file paths, convert
it to plain repository-relative paths before using it as POTFILES.
Mixed source formats and ITS rules¶
Leave xgettext language blank to extract messages from different
formats into the same POT. Include all inputs in the source patterns or
POTFILES, for example:
common/messages.py
qt/application.desktop
qt/application.policy
data/application.metainfo.xml
Desktop entries use the native xgettext parser. Weblate bundles ITS rules for Polkit policies, AppStream/MetaInfo, GSettings, GTK Builder, and Shared MIME Info. These rules are included in the Weblate package, including Docker installations; no additional system packages are required for these formats. The POT dosyasını güncelle (Meson) add-on uses the same rules.
Extraction follows upstream gettext and ITS behavior. In particular, desktop
extraction includes keys such as Name, GenericName, and Comment;
Polkit rules select description and message elements without filtering
by gettext-domain. Use untranslated policy sources: upstream Polkit rules
also select elements carrying xml:lang.
For custom XML formats or overrides, configure ITS data directories.
Enter one repository-relative directory per line, in priority order. Each must
contain an its/ subdirectory with .loc locating rules and .its
extraction rules. For example, enter po for po/its/example.loc and
po/its/example.its, or . for its/ at the repository root.
In API add-on configuration, use a list: "data_dirs": ["po", "data"].
Earlier directories take precedence over later ones, followed by Weblate’s
bundled rules and gettext’s system rules. The directories are passed through
GETTEXTDATADIRS. Configure them explicitly even when using Meson; Weblate
does not read data_dirs from meson.build or inherit an administrator’s
GETTEXTDATADIRS environment variable.
Rule directories and files must stay inside the repository and must not be
symbolic links. A locating rule’s target must name an existing .its file
in the same directory. DTDs, entity declarations, and external rule references
are not supported. Weblate validates project-local rules before extraction and
reports invalid rules as add-on errors. Changes, additions, or deletions in the
configured its/ directories trigger extraction even when source files
have not changed.
Ayrıca bakınız
Git işlemelerini bir araya toplar¶
- Eklenti kimliği:
weblate.git.squash- Yapılandırma:
squashİşlemeleri bir araya toplama
Kullanılabilecek seçenekler:¶ allTüm işlemeler bir arada
languageDile göre
fileDosyaya göre
authorKatkıda bulunana göre
author-languagePer author and language
append_trailersBir araya toplanmış işlemelerin iletisine art bilgiler eklensin
‘Co-authored-by: …’ gibi bir işleme iletisinin başka bir serbest biçim bölümünün sonunda, art bilgi satırları RFC 822 e-posta üst bilgilerine benzeyen satırlardır.
commit_messageİşleme iletisi
Bu işleme iletisi, bir araya toplanmış işleme iletilerinden gelen birleşik işleme iletileri yerine kullanılır.
- Tetikleyiciler:
Değişiklikleri yollamadan önce Git işlemelerini bir araya toplar.
İpucu
Gereksiz çelişkileri önlemek için, yukarı akış değişikliklerinin internet kancaları veya API ile kendiliğinden alınacak şekilde yapılandırmanız önerilir. Ayrıntılı bilgi almak için: Depoları güncellemek.
Git işlemeleri, değişiklikler itilmeden önce aşağıdaki kiplerden biri kullanılarak bir araya toplanabilir:
Tüm işlemeler bir arada
Dile göre
Dosyaya göre
Katkıda bulunana göre
Per author and language
Özgün işleme iletileri korunur. Ancak Katkıda bulunana göre olarak seçilmediği ya da işleme iletisi eklenecek şekilde özelleştirilmediği sürece katkıda bulunan bilgisi eksik kalır.
Özgün işleme iletileri, isteğe bağlı olarak özel bir işleme iletisiyle değiştirilebilir.
Art bilgiler (Co-authored-by: … gibi işleme satırları) isteğe bağlı olarak özgün işleme iletilerinden kaldırılabilir ve bir araya toplanmış işleme iletisinin sonuna eklenebilir. Bu aynı zamanda her çevirmen için özel bir Co-authored-by: bilgisi oluşturur.
JSON çıktısını özelleştirme¶
5.12 sürümünde değişti: Ayraçlardan sonra boşluk bırakılmasın seçeneği eklendi.
Removed in version 5.13: Dosya biçimi parametreleri ile değiştirildi.
Depoyu yukarı akışa sıfırla¶
Added in version 5.17.
- Eklenti kimliği:
weblate.hosted.reset- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Her gece Weblate deposundaki tüm değişiklikleri yok sayar.
Java özellikleri dosyasını biçimlendirme¶
- Eklenti kimliği:
weblate.properties.sort- Yapılandırma:
case_sensitiveBüyük/küçük harfe duyarlı anahtar sıralaması kullanılsın
- Tetikleyiciler:
Java özellikleri dosyasını biçimlendirir ve sıralar.
Yeni satır karakterlerini Unix karakterleri olarak değiştirir.
Unicode kaçınma dizilerini büyük harfle biçimlendirir (varsa).
Boş satırları ve yorumları siler.
Dizgeleri anahtarlara göre sıralar.
Yinelenen dizgeleri kaldırır.
Eski yorumları kaldırma¶
- Eklenti kimliği:
weblate.removal.comments- Yapılandırma:
ageTutulacak gün sayısı
- Tetikleyiciler:
Yorumların kaldırılması için bir zaman dilimi ayarlayabilirsiniz.
Bu özellik, güncelliğini yitirmiş olabilecek eski yorumları kaldırmak için yararlı olabilir. Bir yorumun eski olması önemini yitirdiği anlamına gelmediğinden dikkatli kullanın.
Eski önerileri kaldırma¶
- Eklenti kimliği:
weblate.removal.suggestions- Yapılandırma:
ageTutulacak gün sayısı
votesOy verme eşiği
Threshold for removal. Leave empty to remove suggestions regardless of votes. This field has no effect with voting turned off.
- Tetikleyiciler:
Önerilerin kaldırılması için bir zaman dilimi ayarlayabilirsiniz.
Belirli bir zaman diliminde yeterince olumlu oy almayan önerilerin kaldırılması için öneri oylamayla (ayrıntılı bilgi almak için: Akran değerlendirmesi) bağlantılı olarak çok yararlı olabilir.
RESX dosyalarını güncelleme¶
- Eklenti kimliği:
weblate.resx.update- Yapılandırma:
Bu eklentinin yapılandırması yok.
- Tetikleyiciler:
Tüm çeviri dosyalarını tek dilli temel dosya ile eşleşecek biçimde günceller. Kullanılmayan dizgeler kaldırılır ve yeni dizgeler kaynak dizgenin kopyaları olarak eklenir.
İpucu
Yalnızca eski çeviri anahtarlarını kaldırmak istiyorsanız Çeviri dosyalarını temizleme kullanın.
Slack internet kancaları¶
Added in version 5.12.
- Eklenti kimliği:
weblate.webhook.slack- Yapılandırma:
webhook_urlİnternet kancası adresi
event_filterChange events to trigger
Choose which change events should trigger this add-on. Change events to trigger
eventsSelected change events
- Tetikleyiciler:
Seçilmiş etkinliklere göre bir Slack kanalına bildirim gönderir.
Uyarı
Bildirim içeriğinde HTML kod imleri görüntülenebilir. Bu durum, bilinen ve yakında ele alınacak olan bir sorundur. Ayrıntılı bilgi almak için: https://github.com/WeblateOrg/weblate/issues/15056.
İpucu
Bir internet kancası adresi edinmek için, Slack gelen internet kancaları belgesi içinde anlatılan adımları izleyin
İnternet kancası¶
Added in version 5.11.
5.15 sürümünde değişti: Parola uzunluğunun teknik özelliklere uygunluğu doğrulandı.
- Eklenti kimliği:
weblate.webhook.webhook- Yapılandırma:
webhook_urlİnternet kancası adresi
secretİnternet kancası parolası
Standart internet kancaları parolası base64 kodlu bir dizgedir.
event_filterChange events to trigger
Choose which change events should trigger this add-on. Change events to trigger
eventsSelected change events
- Tetikleyiciler:
Standart Webhooks teknik özelliklerine uygun olarak, seçilmiş etkinliklere göre dış hizmetlere bildirim gönderir.
The request payload complies with the Weblate Messaging schema. The
action field uses the action name listed in Selected change events.
The OpenAPI description can also be found at /api/docs/.
Sample request body:
{
"change_id": 99,
"action": "Translation changed",
"timestamp": "2019-08-24T14:15:22Z",
"target": "Nazdar svete!",
"old": "Nazdar!",
"source": "Hello, world",
"url": "/translate/project-slug/component-slug/cs/?checksum=46add148a53cab6f",
"author": "author-username",
"user": "user-username",
"project": "project-slug",
"component": "component-slug",
"translation": "cs"
}
Kategoriler ile örnek istek gövdesi:
{
"change_id": 8910,
"action": "Component renamed",
"timestamp": "2025-06-11T07:15:09Z",
"target": ["new-name"],
"old": ["component-slug"],
"url": "/projects/project-slug/parent-category/child-category/sub-category/component-slug/",
"user": "testuser",
"project": "project-slug",
"component": "component-slug",
"category": [
"sub-category",
"child-category",
"parent-category"
]
}
Örnek istek üst bilgileri:
{
"webhook-id": "7f1c5477f6275a69af7b83236c20cb1a",
"webhook-timestamp": "1748505623.044281",
"webhook-signature": "v1,Ceo5qEr07ixe2NLpvHk3FH9bwy/WavXrAFQ/9tdO6mc="
}
Webhook-signature, secret dizgesi, istek yükü, webhook-timestamp ve webhook-id kullanılarak oluşturulan HMAC imzalarının boşluklarla ayrılmış bir listesidir. Bu imza internet kancası isteğinin gerçekliğini ve bütünlüğünü doğrular.
Belirtilen parola, 24 bayt (192 bit) ve 64 bayt (512 bit) arasında base64 kodlu bir dizgedir. Kolay tanımlama için whsec_ ön eki kullanılabilir.
Bir isteği doğrulamak için standardwebhooks kitaplığındaki Webhook.verify yöntemini veya “Standart Webhooks teknik özelliklerinin” bir uygulamasını kullanabilirsiniz.
Ayrıca bakınız
The Kendiliğinden çeviri mode Add as approved translation creates approved strings when reviews are enabled for the target language. If the project settings or a language workflow override disable reviews, it creates translated strings instead. The configured mode is preserved, including for project-wide and site-wide add-ons whose targets have different review settings. Configuring this mode requires the usual add-on management permission; it does not require the configuring user to be a reviewer.
The Çeviri dosyaları CDN and JavaScript yerelleştirme CDN add-ons
publish manifest.json at their CDN base URL. Clients can download it
without an API token to discover available languages and translation files:
{
"schemaVersion": 1,
"locales": {
"cs": [
{
"url": "cs.json",
"sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"size": 123
}
]
}
}
The locales keys are Weblate language codes. Each value lists the published
files for that language, sorted by URL. The url is relative to the manifest
URL, sha256 is the SHA-256 checksum of the published bytes, and size is
the file size in bytes. Multi-file translations have several entries per
language. The JavaScript add-on includes only languages meeting its translation
threshold. Source-language inclusion follows each add-on’s existing publication
rules. The JavaScript loader and the manifest itself are not listed.
When no translation files are published, locales is an empty object.
The root filename manifest.json is reserved for this manifest.
Weblate validates each manifest against the CDN manifest before
publishing it.
Translation files are written before the manifest is replaced, and stale files are removed afterwards. File URLs remain mutable, and CDN caches can refresh the manifest and translation files at different times. If a download fails or its checksum does not match, refresh the manifest and retry the download. The manifest does not provide an immutable snapshot or revoke cached copies of removed files. Existing add-on installations publish a manifest on their next successful publication.
The Kotlin SDK CDN add-on uses a separate build-specific manifest format.
The Bileşen keşfi add-on stops with an error if the repository scan exceeds 100,000 paths or matching translation files would require more than 1,000,000 path-to-mask comparisons. The comparison limit is checked using the number of repository paths multiplied by the number of file masks. These fixed limits bound resource consumption when repository content determines the masks. When either limit is exceeded, discovery does not create or remove components.
When configuring the add-on, Weblate also suggests presets detected from the repository. Preset detection analyzes at most 4,096 distinct results with file masks no longer than 512 characters or 16 path segments. It samples groups of more than 128 compatible results and limits itself to 8,192 comparisons, 50 presets, and eight examples per preset. If a limit omits results or comparisons, Weblate warns that suggestions might be incomplete. You can enter the configuration manually.
The İnternet kancası and
Slack internet kancaları add-ons request uncompressed responses and
reject responses with a Content-Encoding other than identity before
reading their bodies. They limit each response body to 1 MiB and response
headers to 64 KiB, including duplicate headers and separators.
If a response is encoded or either fixed limit is exceeded, Weblate closes the
response and records an add-on error without storing the response body or headers.
The remote service might already have accepted the notification even when
Weblate records this error.
Sahipsiz eklentiler¶
Katılımcıları yorum bölümünde görüntüleme¶
Removed in version 2026.10: Replaced by Contributor comments.
Existing installations of weblate.gettext.authors are migrated to the
gettext value of the po_contributor_comments file format parameter for
each affected PO component. This includes components covered by category-,
project-, and site-wide installations. New components default to disabled unless
their file format parameters are copied from another component.
Remove weblate.addons.gettext.GettextAuthorComments from custom
WEBLATE_ADDONS lists and weblate.gettext.authors entries from
DEFAULT_ADDONS. Configure Contributor comments instead.
XML çıktısını özelleştirme¶
Added in version 4.15.
Removed in version 5.13: Dosya biçimi parametreleri ile değiştirildi.
YAML çıktısını özelleştirme¶
Removed in version 5.13: Dosya biçimi parametreleri ile değiştirildi.
Yaygın eklenti parametreleri¶
Translation services¶
|
Alibaba |
|
Amazon Translate |
|
Anthropic |
|
Apertium APy |
|
Azure AI Translator |
|
Azure OpenAI |
|
Baidu |
|
CyrTranslit |
|
DeepL |
|
Glosbe |
|
Google Cloud Translation Advanced |
|
Google Cloud Translation Basic |
|
LTEngine |
|
LibreTranslate |
|
Mistral |
|
ModernMT |
|
MyMemory |
|
Netease Sight |
|
Ollama |
|
OpenAI |
|
SAP Translation Hub |
|
Systran |
|
Weblate |
|
Weblate çeviri belleği |
|
Yandex |
|
Yandex v2 |
|
Youdao Zhiyun |
|
eTranslation |
|
tmserver |
Dosya biçimi¶
|
Apple eklentileriyle XLIFF 1.2 |
|
Uygulama mağazası üst veri dosyaları |
|
ARB dosyası |
|
Android dizge kaynağı |
|
AsciiDoc dosyası |
|
Advanced Substation Alpha alt yazı dosyası |
|
Haiku catkeys |
|
Çok platform kaynağı oluşturma |
|
CSV dosyası |
|
Çok değerli CSV dosyası |
|
Basit CSV dosyası |
|
DokuWiki metin dosyası |
|
DTD dosyası |
|
Düz XML dosyası |
|
Fluent dosyası |
|
Format.JS JSON dosyası |
|
go-i18n v1 JSON dosyası |
|
go-i18n v2 JSON dosyası |
|
go-i18n TOML dosyası |
|
gotext JSON dosyası |
|
GWT özellikleri |
|
HTML dosyası |
|
i18next JSON dosyası v3 |
|
i18next JSON dosyası v4 |
|
IDML dosyası |
|
INI dosyası |
|
Inno Setup INI dosyası |
|
Joomla dil dosyası |
|
JSON dosyası |
|
JSON iç içe geçmiş yapı dosyası |
|
Laravel PHP dizgeleri |
|
Markdown dosyası |
|
MDX file |
|
MediaWiki metin dosyası |
|
@draggable/i18n dil dosyası |
|
Mobile Kotlin kaynağı |
|
Nextcloud JSON dosyası |
|
OpenDocument dosyası |
|
PHP dizgeleri |
|
gettext PO dosyası |
|
gettext PO dosyası (tek dilli) |
|
gettext eklentileriyle XLIFF 1.2 |
|
Java özellikleri |
|
RC dosyası |
|
RESJSON dosyası |
|
ResourceDictionary dosyası |
|
.NET kaynak dosyası |
|
Ruby YAML dosyası |
|
SubRip alt yazı dosyası |
|
Substation Alpha alt yazı dosyası |
|
iOS dizgeleri |
|
Stringsdict dosyası |
|
MicroDVD alt yazı dosyası |
|
TermBase eXchange dosyası |
|
TOML dosyası |
|
Qt Linguist translation file (version 2) |
|
Qt Linguist translation file (version 1) |
|
Düz metin dosyası |
|
WebExtension JSON dosyası |
|
WixLocalization dosyası |
|
XLIFF 1.2 çeviri dosyası |
|
XLIFF 2.0 çeviri dosyası |
|
Excel Open XML |
|
XWiki tam sayfası |
|
XWiki Java özellikleri |
|
XWiki sayfası özellikleri |
|
YAML dosyası |
Change events to trigger¶
|
Translation content events |
|
All change events |
|
Selected change events |
Selected change events¶
The following change actions can appear in notification payloads. Fedora Messaging uses the identifier column in message topics, while webhook payloads use the name column in the action field.
ID |
Identifier |
Ad |
Açıklama |
|---|---|---|---|
|
|
Kaynak güncellendi |
A translation file was synchronized with its repository. |
|
|
Çeviri tamamlandı |
A language translation became fully translated after an individual edit. Automatic translation, uploads, and bulk edits do not emit this event. |
|
|
Çeviri değiştirildi |
An existing translation was edited by a user. |
|
|
Yorum eklendi |
A comment was added to a string. |
|
|
Öneri eklendi |
A translation suggestion was added. |
|
|
Çeviri eklendi |
A previously untranslated string was translated by a user. |
|
|
Kendiliğinden çevrildi |
A translation was added or changed by automatic translation. This is emitted instead of Translation added or Translation changed. |
|
|
Öneri kabul edildi |
A translation suggestion was accepted as the translation. |
|
|
Çeviri geri alındı |
A translation was restored to an earlier value. |
|
|
Çeviri yüklendi |
A translation was added or changed by a translation file upload. This is emitted instead of Translation added or Translation changed. |
|
|
Kaynak dizge eklendi |
A source string was added outside repository or upload updates. |
|
|
Bileşen kilitlendi |
A component was locked for translation. |
|
|
Bileşenin kilidi açıldı |
A component was unlocked for translation. |
|
|
Değişiklikler işlendi |
Pending component changes were committed. |
|
|
Değişiklikler itildi |
Repository changes were pushed upstream. |
|
|
Depo sıfırlandı |
A repository was reset to its upstream state. |
|
|
Depo birleştirildi |
Upstream repository changes were merged. |
|
|
Depo yeniden yerleştirildi |
Repository changes were rebased on upstream. |
|
|
Depo birleştirilemedi |
Merging upstream repository changes failed. |
|
|
Depo yeniden yerleştirilemedi |
Rebasing repository changes failed. |
|
|
İşlenemedi |
Weblate could not parse a translation file. |
|
|
Çeviri silindi |
A language translation was removed. |
|
|
Öneri silindi |
A translation suggestion was removed. |
|
|
Çeviri değiştirildi |
A translation was changed by a search-and-replace operation. This is emitted instead of Translation changed. |
|
|
Depo itilemedi |
Pushing repository changes upstream failed. |
|
|
Öneri temizleme sırasında silindi |
An obsolete translation suggestion was removed during cleanup. |
|
|
Kaynak dizge değiştirildi |
A source string was edited in Weblate. |
|
|
Dizge eklendi |
A new string was added in Weblate. |
|
|
Durum toplu olarak değiştirildi |
The translation state of one or more strings was changed in bulk. |
|
|
Görünürlük değiştirildi |
Tasarı veya bileşenin görünürlüğü değiştirildi. |
|
|
Kullanıcı eklendi |
A user was granted access. |
|
|
Kullanıcı silindi |
A user’s access was removed. |
|
|
Çeviri onaylandı |
A translation was approved during review. |
|
|
Düzenlenmek üzere imlendi |
A translation was marked as needing editing. |
|
|
Bileşen silindi |
A translation component was removed. |
|
|
Tasarı silindi |
Çeviri tasarınız silindi. |
|
|
Tasarı yeniden adlandırıldı |
Bir çeviri tasarısı yeniden adlandırıldı. |
|
|
Bileşen yeniden adlandırıldı |
A translation component was renamed. |
|
|
Bileşen taşındı |
Geçerli tasarıdaki tüm bileşenler |
|
|
Katkıda bulunan katıldı |
A user made their first contribution to a translation. |
|
|
Duyuru gönderildi |
An announcement was posted. |
|
|
Uyarı tetiklendi |
A component alert was triggered. |
|
|
Dil eklendi |
A language translation was added. |
|
|
Dil istendi |
A user requested a new language. |
|
|
Tasarı oluşturuldu |
Bir çeviri tasarısı oluşturuldu. |
|
|
Bileşen oluşturuldu |
A translation component was created. |
|
|
Kullanıcı çağrıldı |
Kullanıcı bu tasarıya davet edildi. |
|
|
Depo bildirimi alındı |
Weblate received a repository notification from a code host. |
|
|
Çeviri dosya yüklemesi ile değiştirildi |
A translation file was replaced by an uploaded file. |
|
|
Lisans değiştirildi |
Tasarı veya bileşen lisans bilgileri değiştirildi. |
|
|
Katılımcı lisans anlaşması değiştirildi |
The contributor license agreement was changed. |
|
|
Ekran görüntüsü eklendi |
A screenshot was associated with a string. |
|
|
Ekran görüntüsü yüklendi |
A screenshot image was uploaded. |
|
|
Depodaki dizge değiştirildi |
A string was changed while synchronizing from the repository. |
|
|
Eklenti kuruldu |
An add-on was installed. |
|
|
Eklenti yapılandırması değiştirildi |
An add-on’s configuration was changed. |
|
|
Eklenti kaldırıldı |
An add-on was uninstalled. |
|
|
Dizge kaldırıldı |
A string was removed from a translation. |
|
|
Yorum silindi |
A string comment was removed. |
|
|
Yorum çözümlendi |
A string comment was marked as resolved. |
|
|
Açıklama güncellendi |
The explanation for a source string was updated. |
|
|
Kategori silindi |
A component category was removed. |
|
|
Kategori yeniden adlandırıldı |
A component category was renamed. |
|
|
Kategori taşındı |
A component category was moved. |
|
|
Dizge kaydedilemedi |
Weblate could not save a changed string. |
|
|
Depoya dizge eklendi |
A new string was found while synchronizing from the repository. |
|
|
Yüklemedeki dizge güncellendi |
A string was changed while processing an uploaded file. |
|
|
Yüklemeye dizge eklendi |
A new string was found while processing an uploaded file. |
|
|
Çeviri kaynak yüklemesi ile değiştirildi |
A translation was synchronized after uploading a source file. |
|
|
Bileşen çevirisi tamamlandı |
All language translations in a component became fully translated after an individual edit. Automatic translation, uploads, and bulk edits do not emit this event. |
|
|
Zorunlu denetim uygulandı |
A translation was marked as needing editing by an enforced check. |
|
|
Değişiklik yayıldı |
A translation edit was propagated to another matching string. |
|
|
Dosya yüklendi |
A file was uploaded to a translation. |
|
|
Ek imler güncellendi |
Additional source-string flags were updated. |
|
|
Yazı tipi yüklendi |
A font was uploaded. |
|
|
Yazı tipi değiştirildi |
An uploaded font was changed. |
|
|
Yazı tipi silindi |
Tasarıdaki bir dil silindi. |
|
|
Çevirilerin eşitlenmesi dayatıldı |
Translation files were forcibly synchronized with the repository. |
|
|
Çevirilerin yeniden taranması dayatıldı |
Translation files were forcibly rescanned for changes. |
|
|
Ekran görüntüsü kaldırıldı |
A screenshot was removed. |
|
|
Etiket eklendi |
A label was added to a string. |
|
|
Etiket kaldırıldı |
A label was removed from a string. |
|
|
Depo temizlendi |
The repository working tree was cleaned up. |
|
|
Yüklemeye kaynak dizge eklendi |
A source string was added while processing an uploaded file. |
|
|
Depoya kaynak dizge eklendi |
A source string was added while synchronizing from the repository. |
|
|
Tasarı yedeklendi |
Tasarı yedeği oluşturuldu. |
|
|
Tasarı geri yüklendi |
Bir tasarı yedekten geri yüklendi. |
|
|
Bileşen geri yüklendi |
A component was restored from a backup. |
|
|
Kullanıcı düzenlemesi geri alındı |
All selected edits by a user were reverted. |
|
|
Tasarı ayarı değiştirildi |
Bir tasarı ayarı değiştirildi. |
|
|
Component setting changed |
A component setting was changed. |
|
|
User access changed |
A user’s access permissions were changed. |
|
|
Workspace created |
A workspace was created. |
|
|
Workspace setting changed |
A workspace setting was changed. |
|
|
Tasarı taşındı |
Bir tasarı, bir çalışma alanına eklendi veya bu alandan çıkarıldı. |
|
|
Remote repository updated |
A remote repository update was completed. |
|
|
Remote repository update failed |
Updating a remote repository failed. |
|
|
Alert dismissed |
A component alert was dismissed. |
|
|
Alert reopened |
A component alert was reopened after its context changed. |
Eklenti listesini özelleştirme¶
Eklenti listesi WEBLATE_ADDONS tarafından yapılandırılır. Başka bir eklenti eklemek için, bu seçeneğe mutlak sınıf adını eklemeniz yeterlidir.
Eklenti yazma¶
Kendi eklentilerinizi de yazabilir, eklenti üst verilerini tanımlamak için weblate.addons.base.BaseAddon alt sınıfını oluşturabilir ve ardından işlemi yapmak için bir geri çağırma ekleyebilirsiniz.
Ayrıca bakınız
Eklentiden betikleri çalıştırma¶
Eklentiler, dış betikleri yürütmek için de kullanılabilir. Bu özellik eskiden Weblate ile bütünleşikti. Ancak şimdi betikleri bir eklenti ile sarmalamak için bazı kodlar yazmanız gerekiyor.
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Example pre commit script."""
from __future__ import annotations
from typing import ClassVar
from django.utils.translation import gettext_lazy
from weblate.addons.events import AddonEvent
from weblate.addons.scripts import BaseScriptAddon
class ExamplePreAddon(BaseScriptAddon):
# Event used to trigger the script
events: ClassVar[set[AddonEvent]] = {
AddonEvent.EVENT_PRE_COMMIT,
}
# Name of the addon, has to be unique
name = "weblate.example.pre"
# Verbose name and long description
verbose = gettext_lazy("Execute script before commit")
description = gettext_lazy("This add-on executes a script.")
# Script to execute
script = "/bin/true"
# File to add in commit (for pre commit event)
# does not have to be set
add_file = "po/{{ language_code }}.po"
Kurulum ile ilgili ayrıntılı bilgi almak için: Custom quality checks, add-ons, translation services and auto-fixes.
Betik dosyası, belirtilen bileşen için sürüm denetimi sistemi deposunun kök klasörüne ayarlanmış geçerli klasör ile yürütülür.
Ek olarak, şu ortam değişkenleri kullanılabilir:
- WL_VCS¶
Kullanılan sürüm denetimi sistemi.
- WL_REPO¶
Yukarı akış deposu adresi.
- WL_PATH¶
Sürüm denetimi sistemi deposunun mutlak yolu.
- WL_BRANCH¶
Geçerli bileşende yapılandırılmış depo dalı.
- WL_FILEMASK¶
Geçerli bileşen için dosya maskesi.
- WL_TEMPLATE¶
Tek dilli çeviriler için kalıbın dosya adı (boş olabilir).
- WL_NEW_BASE¶
Yeni çeviriler oluşturmak için kullanılan dosyanın adı (boş olabilir).
- WL_FILE_FORMAT¶
Geçerli bileşende kullanılan dosya biçimi.
- WL_LANGUAGE¶
İşlenmekte olan çevirinin dili (bileşen düzeyinde kancalar için kullanılamaz).
- WL_PREVIOUS_HEAD¶
Güncellemeden sonra önceki HEAD (yalnızca güncelleme sonrası kancası çalıştırıldıktan sonra kullanılabilir).
- WL_COMPONENT_SLUG¶
Adresi oluşturmak için kullanılan bileşen adres son eki.
- WL_PROJECT_SLUG¶
Adresi oluşturmak için kullanılan proje adres son eki.
- WL_COMPONENT_NAME¶
Bileşen adı.
- WL_PROJECT_NAME¶
Proje adı.
- WL_COMPONENT_URL¶
Bileşen adresi.
- WL_ENGAGE_URL¶
Proje etkileşim sayfası adresi.
Ayrıca bakınız
Güncelleme sonrası depo işleme¶
Sürüm denetimi sistemi yukarı akış kaynağı değiştiğinde çeviri dosyalarını güncellemek için kullanılabilir. Bunu yapabilmek için lütfen Weblate tarafından yalnızca sürüm denetimi sistemine işlenmiş dosyaların görüldüğünü, bu nedenle değişiklikleri betiğin bir parçası olarak yapmanız gerektiğini unutmayın.
Örneğin Gulp ile bunu şu kodu kullanarak yapabilirsiniz:
#! /bin/sh
gulp --gulpfile gulp-i18n-extract.js
git commit -m 'Update source strings' src/languages/en.lang.json
Depoya işlenmeden önce çevirilerin işlenmesi¶
Bir çevirinin depoya kaydedilmesinden önce kendiliğinden değiştirilmesi için işleme betiğini kullanın.
Geçerli bir çevirinin dosya adından oluşan tek bir parametre olarak aktarılır.
Eklenti işlemleri günlüklerinin kaydedilmesi¶
Eklenti işlem günlüğü, eklentinin çalışmasını izler ve eklenti işlemlerini izlemek için kullanılabilir.
Each entry records whether processing is pending, successful, failed, or skipped. Skipped entries include the reason the add-on did not run, such as an incompatible component, no relevant changes, or a configured schedule that is not due yet. A successful entry can still mean that the add-on checked its inputs but found nothing to change.
For scope-wide add-ons that process components independently, the activity log contains a separate entry for each component.
ADDON_ACTIVITY_LOG_EXPIRY seçeneği yapılandırılarak belirli bir zamandan önceki günlük kayıtları kaldırılabilir.