Memori Terjemahan¶
Weblate dilengkapi dengan memori terjemahan bawaan yang terdiri dari:
Memori terjemahan yang diimpor secara manual (lihat Antarmuka pengguna).
Terjemahan yang dilakukan di Weblate disimpan secara otomatis (tergantung pada Cakupan memori terjemahan).
Terjemahan terlampau diimpor secara otomatis.
Konten dalam memori terjemahan dapat diterapkan ke string dengan beberapa cara:
Pengguna dapat menerima saran dari tab Saran otomatis saat menyunting string.
String yang dipilih dapat diproses menggunakan Terjemahan otomatis dari menu Operasi.
Pengaya Terjemahan otomatis dapat secara otomatis menerapkan perubahan ke string baru dan yang sudah ada.
Untuk tips pemasangan, lihat Memori Terjemahan Weblate, yang diaktifkan secara bawaan.
Cakupan memori terjemahan¶
Cakupan memori terjemahan memastikan privasi untuk berbagai proyek dan pengguna. Berbagi terjemahan juga tersedia.
Catatan
When upgrading from older Weblate releases, existing translation-memory entries are converted to scopes by a periodic Celery background task. Until this backfill finishes, existing entries can be temporarily unavailable in suggestions and memory management views. Keep Celery running after the upgrade so the periodic task can start or resume the migration. Site administrators can monitor the backfill and duplicate-entry consolidation in Administration > Performance report.
Memori terjemahan yang diimpor¶
Mengimpor data memori terjemahan arbitrer menggunakan perintah import_memory membuat konten memori tersedia untuk semua pengguna dan proyek.
Memori terjemahan per pengguna¶
Menyimpan semua terjemahan pengguna secara otomatis dalam memori terjemahan pribadi masing-masing pengguna.
Nilai bawaan untuk pengguna baru secara otomatis disesuaikan berdasarkan konfigurasi Bersihkan otomatis memori terjemahan. Jika pembersihan otomatis diaktifkan, ini dinonaktifkan secara bawaan untuk mencegah munculnya kembali terjemahan yang tidak konsisten.
Memori terjemahan per proyek¶
Semua terjemahan dalam suatu proyek secara otomatis disimpan dalam memori terjemahan proyek yang hanya tersedia untuk proyek ini.
Entries attributed to an existing restricted component are only available to users who can access that component. This also applies when project memory is downloaded or accessed using the REST API.
Legacy entries which can not be attributed to a current component use the project access rules. This can happen when the component path has changed or the component has been removed.
Workspace translation memory¶
Projects in the same workspace can share translation memory without enabling the global shared translation memory. Workspace translation memory has to be enabled both in the workspace settings and in the individual project workflow settings.
Entries attributed to an existing restricted component are only available to users who can access that component, even when they can access another project in the workspace. Unattributed legacy entries use the workspace access rules.
Status memori terjemahan¶
Added in version 5.13.
Translation memory entries can have two different statuses: active and pending. Pending entries are included in suggestions, but with a quality penalty applied. Depending on the configured score threshold, the penalty can exclude even exact matches from suggestions and automatic translation. Entries imported from translation memory files are stored as active. If Bersihkan otomatis memori terjemahan is enabled, matching pending entries are removed when a translation becomes active.
Bersihkan otomatis memori terjemahan¶
Added in version 5.13.
When enabled for a project, Weblate replaces older automatically created translation memory entries when a translation becomes active:
With Aktifkan tinjauan enabled, cleanup happens when the translation is approved.
Without review, cleanup happens as soon as the translation reaches the translated state.
For the same source string, component, context, and source/target language pair, Weblate removes matching non-file entries from translation memory, including entries with a different target text. This applies across personal, project, and shared translation memory scopes. The current translation is then stored again as an active entry in the scopes that are enabled for that change.
Entries imported from external translation memory files are not cleaned up automatically. Entries with a different context are kept.
Dalam kontainer Docker ini dapat dikonfigurasikan menggunakan WEBLATE_DEFAULT_AUTOCLEAN_TM.
Catatan
Mengaktifkan pembersihan otomatis juga mengubah pengaturan bawaan untuk profil pengguna baru agar tidak mengkontribusikan pada memori terjemahan pribadi. Ini mencegah munculnya kembali terjemahan yang tidak konsisten yang seharusnya telah dibersihkan.
Lihat juga
Mengelola Memori Terjemahan¶
Antarmuka pengguna¶
Translation memory can be managed from several places in the Weblate UI:
Open the user menu and choose Translation memory to manage your personal translation memory.
Open a project and choose Translation memory from the project menu to manage translation memory for that project.
Open a workspace and choose Operations ↓ Translation memory to manage automatically created translation memory for that workspace. Editing the workspace is required.
Open Administration and choose Translation memory to manage uploaded translation memory for the whole Weblate instance.
The translation memory page shows entry counts for the selected scope. Depending on the scope, it also lists entries by origin, component, or language pair. The listed entries can be downloaded as JSON or TMX. Users with the required permissions can delete entries, and the project view can rebuild translation memory for the whole project or for individual components from the current translations.
Removing a component preserves its automatically created translation memory by
default. Because the component access rule no longer exists after removal, the
retained entries use the access rules of their remaining translation-memory
scope. To remove those entries together with a component, select
Delete translation memory created from this component in the
removal form. Category removal offers the equivalent option for every component
in the category and its nested categories. This removes attributed entries and
legacy entries matching the current component path. It does not infer paths
used before a component or category rename or move. Such unmatched entries can
be deleted by origin in the project or workspace translation memory management,
or using the REST API. The REST API accepts the delete_memory boolean in the
request body or query string for component and category removal. Personal and
uploaded entries are preserved.
The project view also shows whether shared translation memory and autoclean translation memory are enabled for the project, with a link to the project workflow settings when the user can edit the project.
The workspace view can rebuild all currently contributing projects or an individual contributing component. It manages workspace-scoped automatic entries only. Translation-memory files cannot be uploaded into a workspace scope.
Translation memory files can be imported on the same page. Uploaded files are processed during the request, stored as active, and added to the selected scope:
Personal uploads are available in your personal translation memory.
Project uploads are available in the selected project's translation memory.
Administration uploads are available as uploaded shared entries for the whole Weblate instance.
Petunjuk
Translation memories in various formats can be imported into Weblate. The TMX format is provided for interoperability with other tools. All supported formats are TMX, JSON, XLIFF, PO, and CSV.
Source and target languages must be selected when uploading XLIFF, PO, or CSV files if the language information is not provided by the file itself.
Lihat juga
You can search translation memory while editing strings from the Saran otomatis tab.
Antarmuka admin¶
Administrative users have additional translation memory management controls. In Administration > Translation memory, the page lists uploaded shared entries, shared entries, and total entries for the Weblate instance. Depending on permissions, it can import uploaded shared memory, delete uploaded entries, and download uploaded, shared, or all entries as JSON or TMX.
Added in version 4.12.
The project translation memory view also allows rebuilding parts of or the entire project translation memory. Automatically generated entries for the selected component or project are deleted, and the memory is populated again from the current translations in the background. Entries imported from files are preserved.
Antarmuka pengelolaan¶
Beberapa perintah manajemen dapat memanipulasi konten memori terjemahan. Ini beroperasi pada memori terjemahan secara keseluruhan, tanpa difilter oleh cakupan (kecuali diminta oleh parameter):
dump_memoryMengekspor memori ke JSON
import_memoryMengimpor berkas TMX atau JSON ke dalam memori terjemahan
cleanup_memoryMenghapus semua entri dengan status tertunda dari memori terjemahan
Added in version 4.14.
API Weblate mencakup memori terjemahan. Hal ini memungkinkan manipulasi otomatis untuk berbagai tujuan, atau berdasarkan peristiwa dalam siklus terjemahan.