ຄຳສັ່ງຈັດການ

Note

ການຮັນຄຳສັ່ງຈັດການດ້ວຍຜູ້ໃຊ້ທີ່ແຕກຕ່າງຈາກຜູ້ທີ່ຮັນເວັບເຊີບເວີຂອງທ່ານ ອາດສົ່ງຜົນໃຫ້ໄຟລ໌ມີສິດທິອະນຸຍາດທີ່ຜິດພາດ, ກະລຸນາກວດສອບ ສິດທິລະບົບໄຟລ໌ ສຳລັບລາຍລະອຽດເພີ່ມເຕີມ.

ທ່ານຈະພົບຄຳສັ່ງຈັດການພື້ນຖານ (ທີ່ມີຢູ່ໃນ ./manage.py ໃນແຫຼ່ງຂໍ້ມູນ Django, ຫຼື ເປັນຊຸດຂະຫຍາຍໃນສະຄຣິບທີ່ເອີ້ນວ່າ weblate ເຊິ່ງຕິດຕັ້ງໄດ້ເທິງ Weblate).

ການເອີ້ນໃຊ້ຄຳສັ່ງຈັດການ

ດັ່ງທີ່ໄດ້ກ່າວມາແລ້ວ, ການເອີ້ນໃຊ້ຂຶ້ນຢູ່ກັບວິທີທີ່ທ່ານຕິດຕັ້ງ Weblate.

ຖ້າໃຊ້ສະພາບແວດລ້ອມ Python ສຳລັບ Weblate, ທ່ານສາມາດລະບຸເສັ້ນທາງເຕັມໄປຍັງ weblate, ຫຼື ເປີດໃຊ້ສະພາບແວດລ້ອມ Python ກ່ອນທີ່ຈະເອີ້ນໃຊ້ມັນ:

# Direct invocation
~/weblate-env/bin/weblate

# Activating Python environment adds it to search path
. ~/weblate-env/bin/activate
weblate

ຖ້າທ່ານໃຊ້ລະຫັດແຫຼ່ງໂດຍກົງ (ບໍ່ວ່າຈະຈາກ tarball ຫຼື Git checkout), ສະຄຣິບຈັດການແມ່ນ ./manage.py ເຊິ່ງມີຢູ່ໃນແຫຼ່ງຂໍ້ມູນ Weblate. ເພື່ອຮັນມັນ:

python ./manage.py list_versions

ຖ້າທ່ານຕິດຕັ້ງ Weblate ໂດຍໃຊ້ pip, ຫຼື ໂດຍໃຊ້ສະຄຣິບ ./setup.py, weblate ຈະຖືກຕິດຕັ້ງໃສ່ path ຂອງທ່ານ (ຫຼື path ຂອງສະພາບແວດລ້ອມ Python), ເຊິ່ງທ່ານສາມາດໃຊ້ເພື່ອຄວບຄຸມ Weblate:

weblate list_versions

ສຳລັບ Docker image, ສະຄຣິບຖືກຕິດຕັ້ງໄວ້ຄືກັບຂ້າງເທິງ, ແລະ ທ່ານສາມາດຮັນມັນໄດ້ໂດຍໃຊ້ docker exec:

docker exec --user weblate <container> weblate list_versions

ສຳລັບ docker-compose-plugin, ຂະບວນການແມ່ນຄ້າຍຄືກັນ, ທ່ານພຽງແຕ່ຕ້ອງໃຊ້ docker compose exec:

docker compose exec --user weblate weblate weblate list_versions

ໃນກໍລະນີທີ່ທ່ານຕ້ອງການສົ່ງໄຟລ໌ໃຫ້ມັນ, ທ່ານສາມາດເພີ່ມ volume ຊົ່ວຄາວໄດ້:

docker compose exec --user weblate /tmp:/tmp weblate weblate importusers /tmp/users.json

add_suggestions

weblate add_suggestions <project> <component> <language> <file>

ນຳເຂົ້າຄຳແປຈາກໄຟລ໌ເພື່ອໃຊ້ເປັນຄຳແນະນຳສຳລັບຄຳແປທີ່ກຳນົດ. ມັນຈະຂ້າມຄຳແປທີ່ຊ້ຳກັນ; ມີພຽງແຕ່ຄຳແປທີ່ແຕກຕ່າງກັນເທົ່ານັ້ນທີ່ຈະຖືກເພີ່ມ.

--author USER@EXAMPLE.COM

E-mail of author for the suggestions. This user has to exist prior to importing (you can create one in the admin interface if needed).

ຕົວຢ່າງ:

weblate --author michal@cihar.com add_suggestions weblate application cs /tmp/suggestions-cs.po

analyze_translator_work

weblate analyze_translator_work

ວິເຄາະປະຫວັດການປ່ຽນແປງເພື່ອປະເມີນປະສິດທິພາບການແປຕົວຈິງຕໍ່ວັນ. ຄຳສັ່ງນີ້ລວມພຽງແຕ່ຜູ້ໃຊ້ທີ່ເປັນຄົນ ແລະ ການປ່ຽນແປງຄຳແປດ້ວຍຕົນເອງ, ແລະ ນຳໃຊ້ຂອບເຂດຈຳກັດຕໍ່າສຸດ ແລະ ສູງສຸດຕໍ່ວັນເພື່ອຂ້າມຂໍ້ມູນທີ່ຜິດປົກກະຕິ, ບັອດ, ການນຳເຂົ້າຈຳນວນຫຼາຍ, ການອັບໂຫຼດ, ແລະ ເຫດການອື່ນໆທີ່ອາດເຮັດໃຫ້ຜົນລັດເສື່ອມເສຍ.

--days DAYS

Number of recent days to analyze when --since is not specified.

--since YYYY-MM-DD

Start date for the analysis.

--until YYYY-MM-DD

End date for the analysis.

--project PROJECT

Limit the analysis to a project slug.

--component PROJECT/COMPONENT

Limit the analysis to a component.

--language LANGUAGE

Limit the analysis to a language code.

--min-changes COUNT

Minimum translated strings per user day to include.

--max-changes COUNT

Maximum translated strings per user day to include.

--max-words COUNT

Maximum translated source words per user day to include.

ຕົວຢ່າງ:

weblate analyze_translator_work --project weblate --since 2026-01-01

auto_translate

weblate auto_translate <project> <component> <language>

Changed in version 4.6: ເພີ່ມພາຣາມິເຕີສຳລັບໂໝດການແປ.

ດຳເນີນການແປອັດຕະໂນມັດໂດຍອີງໃສ່ຄຳແປຂອງອົງປະກອບອື່ນ.

--source PROJECT/COMPONENT

Specifies the component to use as source available for translation. If not specified all components in the project are used.

--user USERNAME

Specify username listed as author of the translations. "Anonymous user" is used if not specified.

--overwrite

Whether to overwrite existing translations.

--inconsistent

Whether to overwrite existing translations that are inconsistent (see ບໍ່ສອດຄ່ອງກັນ).

--add

Automatically add language if a given translation does not exist.

--mt MT

Use machine translation instead of other components as machine translations.

--threshold THRESHOLD

Similarity threshold for machine translation, defaults to 80.

--mode MODE

Specify translation mode, default is translate but fuzzy or suggest can be used.

ຕົວຢ່າງ:

weblate auto_translate --user nijel --inconsistent --source weblate/application weblate website cs

backup

weblate backup

ຮັນການສຳຮອງຂໍ້ມູນທີ່ຕັ້ງຄ່າໄວ້ແບບ Synchronous, ໂດຍບໍ່ໃຊ້ Celery. ມັນຈະອັບເດດການຕັ້ງຄ່າ ແລະ ໄຟລ໌ສຳຮອງຖານຂໍ້ມູນໃນ DATA_DIR ກ່ອນ, ຈາກນັ້ນຈຶ່ງຮັນການບໍລິການສຳຮອງຂໍ້ມູນ Borg ທີ່ເລືອກ.

--list

Lists configured backup service IDs.

--service ID

Runs one backup service by ID.

--all

Runs all enabled backup services.

ໃຊ້ຕົວເລືອກ --verbosity 2 ມາດຕະຖານຂອງ Django ເພື່ອສະແດງຜົນລັດຂອງການບໍລິການສຳຮອງຂໍ້ມູນ. ຜົນລັດຂອງການບໍລິການທີ່ລົ້ມເຫຼວຈະຖືກສະແດງເຖິງແມ່ນວ່າຈະບໍ່ໄດ້ເພີ່ມຄວາມລະອຽດກໍຕາມ.

ຕົວຢ່າງ:

weblate backup --list
weblate backup --service 1 --verbosity 2
weblate backup --all

ສຳລັບການນຳໃຊ້ Docker Compose, ທ່ານສາມາດຢຸດຄອນເທນເນີ Weblate ປົກກະຕິ ແລະ ຮັນຄຳສັ່ງໃນຄອນເທນເນີຊົ່ວຄາວໂດຍໃຊ້ docker compose run. ຖານຂໍ້ມູນ ແລະ ບ່ອນຈັດເກັບສຳຮອງທີ່ຕັ້ງຄ່າໄວ້ຕ້ອງຍັງສາມາດໃຊ້ງານໄດ້.

docker compose stop weblate
docker compose run --rm --user weblate weblate weblate backup --list
docker compose run --rm --user weblate weblate weblate backup --service 1 --verbosity 2

benchmark

weblate benchmark

ນຳເຂົ້າເນື້ອຫາທີ່ກຳນົດເຂົ້າໃນ Weblate, ເປັນປະໂຫຍດສຳລັບການທົດສອບປະສິດທິພາບ.

ຕົວຢ່າງຂອງການກວດສອບປະສິດທິພາບ
# Run benchmark with a profiling
python -m cProfile -o benchmark.prof ./manage.py benchmark --project benchmark --filemask '*.tbx' --format tbx --zipfile /tmp/MicrosoftTermCollection2.zip

# Convert to SVG for visualization
uvx gprof2dot -f pstats benchmark.prof | dot -Tsvg -o benchmark.svg

# Display SVG
firefox ./benchmark.svg
ຕົວຢ່າງຂອງການກວດສອບໜ່ວຍຄວາມຈຳ
# Run benchmark under memray
uvx memray run ./manage.py benchmark --project benchmark --filemask '*.tbx' --format tbx --zipfile /tmp/MicrosoftTermCollection2.zip

# Render the profile
uvx memray flamegraph ./memray-manage.py.2554179.bin

# Display it
fixefox memray-flamegraph-manage.py.2554179.html

billing_demo

weblate billing_demo

Added in version 5.15.

ສ້າງໂຄງການເກັບເງິນຕົວຢ່າງ. ສາມາດປະຕິບັດໄດ້ຫຼາຍຄັ້ງເພື່ອເພີ່ມໃບແຈ້ງໜີ້ ແລະ ເຫດການການເກັບເງິນເພີ່ມເຕີມ.

ສິ່ງນີ້ອາດເປັນປະໂຫຍດເມື່ອພັດທະນາ Weblate. ຕ້ອງຕິດຕັ້ງ ການຮຽກເກັບເງິນ.

celery_queues

weblate celery_queues

ສະແດງຄວາມຍາວຂອງຄິວວຽກງານ Celery.

checkgit

weblate checkgit <project|project/component>

ພິມສະຖານະປັດຈຸບັນຂອງ Git repository ເບື້ອງຫຼັງ.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະອັບເດດ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອອັບເດດອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

commitgit

weblate commitgit <project|project/component>

ຄອມມິດການປ່ຽນແປງທີ່ຄ້າງຄາທັງໝົດໄປຍັງ Git repository ເບື້ອງຫຼັງ.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະອັບເດດ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອອັບເດດອົງປະກອບທີ່ມີຢູ່ທັງໝົດ, ຫຼື ໃຊ້ --file-format ເພື່ອກັ່ນກອງຕາມຮູບແບບໄຟລ໌.

commit_pending

weblate commit_pending <project|project/component>

ຄອມມິດການປ່ຽນແປງທີ່ຄ້າງຄາ ເຊິ່ງເກົ່າກວ່າອາຍຸທີ່ກຳນົດໄວ້.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະອັບເດດ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອອັບເດດອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

--age HOURS

Age in hours for committing. If not specified the value configured in ການຕັ້ງຄ່າ Component is used.

Note

ສິ່ງນີ້ຖືກປະຕິບັດໂດຍອັດຕະໂນມັດໃນເບື້ອງຫຼັງໂດຍ Weblate, ສະນັ້ນຈຶ່ງບໍ່ມີຄວາມຈຳເປັນຕ້ອງເອີ້ນໃຊ້ມັນດ້ວຍຕົນເອງ, ນອກຈາກການບັງຄັບໃຫ້ຄອມມິດໄວຂຶ້ນກວ່າທີ່ລະບຸໄວ້ໂດຍ ການຕັ້ງຄ່າ Component.

cleanuptrans

weblate cleanuptrans

ລຶບການກວດສອບ ແລະ ຄຳແນະນຳການແປທີ່ຕົກຄ້າງ. ໂດຍປົກກະຕິບໍ່ຈຳເປັນຕ້ອງຮັນດ້ວຍຕົນເອງ, ເນື່ອງຈາກການລຶບລ້າງຈະເກີດຂຶ້ນໂດຍອັດຕະໂນມັດໃນເບື້ອງຫຼັງ.

cleanup_memory

weblate cleanup_memory

Added in version 5.13.

ລຶບລາຍການທີ່ລ້າສະໄໝທັງໝົດທີ່ມີສະຖານະຄ້າງຄາອອກຈາກໜ່ວຍຄວາມຈຳການແປ.

cleanup_ssh_keys

weblate cleanup_ssh_keys

Added in version 4.9.1.

ດຳເນີນການລຶບລ້າງ SSH host keys ທີ່ຈັດເກັບໄວ້:

  • ລຶບ RSA keys ທີ່ເລີກໃຊ້ແລ້ວສຳລັບ GitHub ເຊິ່ງອາດເຮັດໃຫ້ເກີດບັນຫາໃນການເຊື່ອມຕໍ່ກັບ GitHub.

  • ລຶບລາຍການທີ່ຊ້ຳກັນໃນ host keys.

createadmin

weblate createadmin

ສ້າງບັນຊີ admin ດ້ວຍລະຫັດຜ່ານແບບສຸ່ມ, ຍົກເວັ້ນແຕ່ຈະມີການກຳນົດໄວ້.

--password PASSWORD

Provides a password on the command-line, to not generate a random one.

--no-password

Do not set password, this can be useful with --update.

--username USERNAME

Use the given name instead of admin.

--email USER@EXAMPLE.COM

Specify the admin e-mail address.

--name

Specify the admin name (visible).

--update

Update the existing user (you can use this to change passwords).

dump_memory

weblate dump_memory

ສົ່ງອອກໄຟລ໌ JSON ທີ່ບັນຈຸເນື້ອຫາໜ່ວຍຄວາມຈຳການແປຂອງ Weblate.

dumpuserdata

weblate dumpuserdata <file.json>

ດັມບ໌ (Dump) ຂໍ້ມູນຜູ້ໃຊ້ໄປຍັງໄຟລ໌ເພື່ອໃຊ້ໃນພາຍຫຼັງໂດຍ importuserdata.

Hint

ສິ່ງນີ້ມີປະໂຫຍດເມື່ອຍ້າຍ ຫຼື ລວມລະບົບ Weblate.

import_demo

weblate import_demo

Added in version 4.1.

ສ້າງໂຄງການຕົວຢ່າງທີ່ມີອົງປະກອບອີງຕາມ <https://github.com/WeblateOrg/demo>. ຕ້ອງໃຫ້ແນ່ໃຈວ່າວຽກງານ celery ກຳລັງຮັນຢູ່ກ່ອນທີ່ຈະຮັນຄຳສັ່ງນີ້.

ສິ່ງນີ້ອາດເປັນປະໂຫຍດເມື່ອພັດທະນາ Weblate.

--delete

Removes existing demo project.

import_json

weblate import_json <json-file>

ນຳເຂົ້າອົງປະກອບເປັນຊຸດໂດຍອີງໃສ່ຂໍ້ມູນ JSON.

ໂຄງສ້າງໄຟລ໌ JSON ທີ່ນຳເຂົ້າມາຈະສອດຄ່ອງກັບວັດຖຸອົງປະກອບ (ເບິ່ງ GET /api/components/(string:project)/(string:component)/). ທ່ານຕ້ອງລວມຊ່ອງຂໍ້ມູນ name ແລະ filemask.

--project PROJECT

Specifies where the components will be imported from.

--main-component COMPONENT

Use the given VCS repository from this component for all of them.

--ignore

Skip (already) imported components.

--update

Update (already) imported components.

ຕົວຢ່າງຂອງໄຟລ໌ JSON:

[
  {
    "slug": "po",
    "name": "Gettext PO",
    "file_format": "po",
    "filemask": "po/*.po",
    "new_lang": "none"
  },
  {
    "name": "Android",
    "filemask": "android/values-*/strings.xml",
    "template": "android/values/strings.xml",
    "repo": "weblate://test/test",
    "file_format": "aresource"
  }
]

See also

import_memory

import_memory

weblate import_memory <file>

ນຳເຂົ້າໄຟລ໌ເຂົ້າໃນໜ່ວຍຄວາມຈຳການແປຂອງ Weblate.

ຮູບແບບໄຟລ໌ທີ່ຮອງຮັບຄື TMX, JSON, XLIFF, PO, CSV.

ການລະບຸພາສາຕົ້ນສະບັບ ແລະ ປາຍທາງອາດຈະຈຳເປັນສຳລັບຮູບແບບອື່ນນອກເໜືອຈາກ JSON ແລະ TMX.

--language-map LANGMAP

Allows mapping languages in the TMX to the Weblate translation memory. The language codes are mapped after normalization usually done by Weblate.

--language-map en_US:en will for example import all en_US strings as en ones.

This can be useful in case your TMX file locales happen not to match what you use in Weblate.

--source-language SOURCE_LANG

Specifies the source language for imported translations. Typically needed for formats where the languages cannot be determined from the file itself.

--target-language TARGET_LANG

Specifies the target language for imported translations. Typically needed for formats where the languages cannot be determined from the file itself.

import_project

weblate import_project <project> <gitrepo> <branch> <filemask>

ນຳເຂົ້າອົງປະກອບເປັນຊຸດເຂົ້າໃນໂຄງການໂດຍອີງໃສ່ file mask. ມັນອີງໃສ່ add-on ການຄົ້ນຫາສ່ວນປະກອບ, ສະນັ້ນທ່ານອາດຈະຕ້ອງການໃຊ້ສິ່ງນັ້ນແທນ.

<project> ແມ່ນຊື່ຂອງໂຄງການທີ່ມີຢູ່ແລ້ວ, ເຊິ່ງອົງປະກອບຈະຖືກນຳເຂົ້າໃສ່.

<gitrepo> ກຳນົດ Git repository URL ທີ່ຈະໃຊ້, ແລະ <branch> ສື່ເຖິງ Git branch. ເພື່ອຊ່ວຍນຳເຂົ້າອົງປະກອບການແປເພີ່ມເຕີມຈາກອົງປະກອບ Weblate ທີ່ມີຢູ່, ໃຫ້ໃຊ້ URL weblate://<project>/<component> ສຳລັບ <gitrepo>.

<filemask> ກຳນົດການຊອກຫາໄຟລ໌ສຳລັບ repository. ມັນສາມາດເຮັດໃຫ້ງ່າຍໂດຍໃຊ້ wildcards, ຫຼື ສາມາດໃຊ້ພະລັງເຕັມທີ່ຂອງ regular expressions.

ການຈັບຄູ່ແບບງ່າຍຈະໃຊ້ ** ສຳລັບຊື່ອົງປະກອບ ແລະ * ສຳລັບພາສາ, ຕົວຢ່າງ: **/*.po

ນິພົດປົກກະຕິຕ້ອງມີກຸ່ມທີ່ຕັ້ງຊື່ວ່າ component ແລະ language, ຕົວຢ່າງເຊັ່ນ: (?P<language>[^/]*)/(?P<component>[^-/]*)\.po.

ການນຳເຂົ້າຈະຈັບຄູ່ອົງປະກອບທີ່ມີຢູ່ໂດຍອີງໃສ່ໄຟລ໌ ແລະ ເພີ່ມອົງປະກອບທີ່ບໍ່ທັນມີຢູ່. ມັນຈະບໍ່ປ່ຽນແປງອົງປະກອບທີ່ມີຢູ່ແລ້ວ.

--name-template TEMPLATE

Customize the name of a component using Django template syntax.

For example: Documentation: {{ component }}

--base-file-template TEMPLATE

Customize the base file for monolingual translations.

For example: {{ component }}/res/values/string.xml

--new-base-template TEMPLATE

Customize the base file for addition of new translations.

For example: {{ component }}/ts/en.ts

--file-format FORMAT

You can also specify the file format to use (see ຮູບແບບໄຟລ໌ການແປພາສາ), the default is auto-detection.

--language-regex REGEX

You can specify language filtering (see ການຕັ້ງຄ່າ Component) with this parameter. It has to be a valid regular expression.

--main-component

You can specify which component will be chosen as the main one—the one actually containing the VCS repository.

--license NAME

Specify the overall, project or component translation license.

--license-url URL

Specify the URL where the translation license is to be found.

--vcs NAME

In case you need to specify which version control system to use, you can do it here. The default version control is Git.

ເພື່ອໃຫ້ຕົວຢ່າງບາງຢ່າງແກ່ທ່ານ, ລອງນຳເຂົ້າສອງໂຄງການ.

ທຳອິດແມ່ນການແປ The Debian Handbook, ເຊິ່ງແຕ່ລະພາສາມີໂຟນເດີແຍກຕ່າງຫາກພ້ອມກັບການແປຂອງແຕ່ລະບົດ:

weblate import_project \
    debian-handbook \
    https://salsa.debian.org/hertzog/debian-handbook.git \
    bullseye/main \
    '*/**.po'

ຈາກນັ້ນແມ່ນເຄື່ອງມື Tanaguru, ເຊິ່ງຮູບແບບໄຟລ໌ຕ້ອງຖືກລະບຸ, ພ້ອມກັບ base file template, ແລະ ວິທີທີ່ອົງປະກອບ ແລະ ການແປທັງໝົດຕັ້ງຢູ່ໃນໂຟນເດີດຽວ:

weblate import_project \
    --file-format=properties \
    --base-file-template=web-app/tgol-web-app/src/main/resources/i18n/%s-I18N.properties \
    tanaguru \
    https://github.com/Tanaguru/Tanaguru \
    master \
    web-app/tgol-web-app/src/main/resources/i18n/**-I18N_*.properties

ຕົວຢ່າງທີ່ຊັບຊ້ອນກວ່ານີ້ຂອງການວິເຄາະຊື່ໄຟລ໌ເພື່ອໃຫ້ໄດ້ອົງປະກອບ ແລະ ພາສາທີ່ຖືກຕ້ອງອອກຈາກຊື່ໄຟລ໌ເຊັ່ນ src/security/Numerous_security_holes_in_0.10.1.de.po:

weblate import_project \
    tails \
    git://git.tails.boum.org/tails master \
    'wiki/src/security/(?P<component>.*)\.(?P<language>[^.]*)\.po$'

ກັ່ນກອງພຽງແຕ່ການແປໃນພາສາທີ່ເລືອກ:

./manage import_project \
    --language-regex '^(cs|sk)$' \
    weblate \
    https://github.com/WeblateOrg/weblate.git \
    'weblate/locale/*/LC_MESSAGES/**.po'

ນຳເຂົ້າເອກະສານ Sphinx ທີ່ແຍກເປັນຫຼາຍໄຟລ໌:

$ weblate import_project --name-template 'Documentation: %s' \
    --file-format po \
    project https://github.com/project/docs.git master \
    'docs/locale/*/LC_MESSAGES/**.po'

ນຳເຂົ້າເອກະສານ Sphinx ທີ່ແຍກເປັນຫຼາຍໄຟລ໌ ແລະ ຫຼາຍໄດເລກະທໍຣີ:

$ weblate import_project --name-template 'Directory 1: %s' \
    --file-format po \
    project https://github.com/project/docs.git master \
    'docs/locale/*/LC_MESSAGES/dir1/**.po'
$ weblate import_project --name-template 'Directory 2: %s' \
    --file-format po \
    project https://github.com/project/docs.git master \
    'docs/locale/*/LC_MESSAGES/dir2/**.po'

See also

ຕົວຢ່າງທີ່ລະອຽດກວ່ານີ້ສາມາດພົບໄດ້ໃນບົດ ເລີ່ມຕົ້ນກັບການເຮັດໃຫ້ເປັນສາກົນ (Internationalization), ຫຼື ທາງເລືອກອື່ນທ່ານອາດຕ້ອງການໃຊ້ import_json.

import_projectbackup

weblate import_projectbackup <project_name> <project_slug> <username> <filename>

Added in version 5.10.

ນຳເຂົ້າ ການສຳຮອງຂໍ້ມູນລະດັບໂປຣເຈັກ.

Hint

ປົກກະຕິແລ້ວການນຳເຂົ້າໂຄງການຈະສະດວກກວ່າເມື່ອ ການເພີ່ມໂຄງການແປ ແລະ ອົງປະກອບ.

importuserdata

weblate importuserdata <file.json>

ນຳເຂົ້າຂໍ້ມູນຜູ້ໃຊ້ຈາກໄຟລ໌ທີ່ສ້າງໂດຍ dumpuserdata.

importusers

weblate importusers --check <file.json>

ນຳເຂົ້າຜູ້ໃຊ້ຈາກ JSON dump ຂອງຖານຂໍ້ມູນ Django auth_users.

--check

With this option it will just check whether a given file can be imported and report possible conflicts arising from usernames or e-mails.

ທ່ານສາມາດດັມບ໌ຜູ້ໃຊ້ຈາກເວັບໄຊ Django ທີ່ມີຢູ່ໂດຍໃຊ້:

./manage.py dumpdata auth.User > users.json

Hint

ໃຊ້ dumpuserdata ສຳລັບການດັມບ໌ຂໍ້ມູນຈາກເຊີບເວີ Weblate ອື່ນ ເນື່ອງຈາກມັນລວມການຕັ້ງຄ່າຜູ້ໃຊ້ໄວ້ນຳ.

install_addon

weblate install_addon --addon ADDON <project|project/component>

ຕິດຕັ້ງ add-on ໃຫ້ກັບຊຸດຂອງອົງປະກອບ.

--addon ADDON

Name of the add-on to install. For example weblate.gettext.customize.

--configuration CONFIG

JSON encoded configuration of an add-on.

--update

Update the existing add-on configuration.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະຕິດຕັ້ງ add-on (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອລວມອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

ເພື່ອຕິດຕັ້ງ ສ້າງໄຟລ໌ MO ສຳລັບທຸກອົງປະກອບ:

weblate install_addon --addon weblate.gettext.mo --configuration '{"fuzzy": true}' --update --all

install_machinery

Added in version 4.18.

weblate install_machinery --service SERVICE

ຕິດຕັ້ງການບໍລິການຄຳແນະນຳອັດຕະໂນມັດສຳລັບທັງເວັບໄຊ.

--service SERVICE

Name of the service to install. For example deepl.

--configuration CONFIG

JSON encoded configuration of a service.

--update

Update the existing service configuration.

ເພື່ອຕິດຕັ້ງ DeepL:

weblate install_machinery --service deepl --configuration '{"key": "x", "url": "https://api.deepl.com/"}' --update

list_addons

weblate list_addons

ລາຍການ add-ons ໃນຮູບແບບ reStructuredText ເປັນແມ່ແບບສຳລັບ ສ່ວນເສີມ.

--sections {events,addons,parameters}

Filter the generated output to just the add-on event sections, the built-in add-on sections, or the shared add-on parameter sections. If omitted, all generated sections are shown.

list_permissions

weblate list_permissions

ລາຍການສິດທິອະນຸຍາດໃນຮູບແບບ reStructuredText ເປັນແມ່ແບບສຳລັບ ການຄວບຄຸມການເຂົ້າເຖິງ.

list_checks

weblate list_checks

ລາຍການການກວດສອບຄຸນນະພາບໃນຮູບແບບ reStructuredText ເປັນແມ່ແບບສຳລັບ ການກວດສອບ ແລະການແກ້ໄຂ ແລະ ການກວດສອບ ແລະການແກ້ໄຂ.

--sections {checks,flags}

Filter the generated output to just the quality check sections or the shared check flag sections. If omitted, all generated sections are shown.

Note

ການໃຊ້ --output ຕ້ອງເລືອກພຽງຄ່າດຽວໃນ --sections ເພື່ອໃຫ້ snippet ທີ່ສ້າງຂຶ້ນແຕ່ລະອັນຖືກຂຽນລົງໃນໄຟລ໌ຂອງຕົນເອງ. ນີ້ສອດຄ່ອງກັບຂະບວນການ ປະກອບສ່ວນເຂົ້າໃນເອກະສານຂອງ Weblate ແລະ ເປົ້າໝາຍ make -C docs update-docs.

list_languages

weblate list_languages <locale>

ລາຍການພາສາທີ່ຮອງຮັບໃນ MediaWiki markup - ລະຫັດພາສາ, ຊື່ພາສາອັງກິດ ແລະ ຊື່ພາສາທ້ອງຖິ່ນ.

ສິ່ງນີ້ຖືກໃຊ້ເພື່ອສ້າງ <https://www.l10n.cz/wiki/Slovn%C3%ADky/Slovn%C3%ADk_s_n%C3%A1zvy_jazyk%C5%AF/>.

list_machinery

weblate list_machinery

ລາຍການບໍລິການຄຳແນະນຳອັດຕະໂນມັດໃນຮູບແບບ reStructuredText ເປັນແມ່ແບບສຳລັບ ຄຳແນະນຳອັດຕະໂນມັດ.

list_translators

weblate list_translators <project|project/component>

ລາຍການນັກແປຕາມພາສາທີ່ປະກອບສ່ວນສຳລັບໂຄງການທີ່ກຳນົດ:

[French]
Jean Dupont <jean.dupont@example.com>
[English]
John Doe <jd@example.com>
--language-code

List names by language code instead of language name.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະໃຊ້ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອລາຍຊື່ນັກແປຈາກອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

list_versions

weblate list_versions

ລາຍການຄວາມຕ້ອງການຂອງ Weblate ແລະ ເວີຊັນຂອງພວກມັນ.

list_file_format_params

weblate list_file_format_params

ລາຍການພາຣາມິເຕີຮູບແບບໄຟລ໌.

list_change_events

weblate list_change_events

ລາຍການປະເພດເຫດການການປ່ຽນແປງທີ່ເປັນໄປໄດ້ທັງໝົດ.

list_format_features

weblate list_format_features

ສ້າງ RST documentation snippets ທີ່ອະທິບາຍຄຸນສົມບັດທີ່ຮອງຮັບສຳລັບທຸກຮູບແບບໄຟລ໌.

ຄຳສັ່ງນີ້ສ້າງໄຟລ໌ໜຶ່ງໄຟລ໌ຕໍ່ຮູບແບບ, ເຊິ່ງສາມາດພົບໄດ້ໃນໄດເລກະທໍຣີຜົນລັດທີ່ລະບຸ.

--output PATH

Directory where the format feature snippets will be written.

Note

ໄຟລ໌ເອກະສານທີ່ສ້າງຂຶ້ນມີໄວ້ເພື່ອລວມເຂົ້າໃນແຫຼ່ງຂໍ້ມູນເອກະສານ ເຊັ່ນ ຮູບແບບໄຟລ໌ການແປພາສາ. ເບິ່ງເພີ່ມເຕີມທີ່ weblate/formats/management/commands/list_format_features.py ສຳລັບເຫດຜົນການປັບແຕ່ງ ແລະ ການລວມ.

loadpo

weblate loadpo <project|project/component>

ໂຫຼດການແປຄືນໃໝ່ຈາກດິສກ໌ (ຕົວຢ່າງ ໃນກໍລະນີທີ່ທ່ານໄດ້ອັບເດດບາງຢ່າງໃນ VCS repository).

--force

Force update, even if the files should be up-to-date.

--lang LANGUAGE

Limit processing to a single language.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະອັບເດດ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອອັບເດດອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

Note

ທ່ານບໍ່ຄ່ອຍຈຳເປັນຕ້ອງເອີ້ນໃຊ້ມັນ, Weblate ຈະໂຫຼດໄຟລ໌ທີ່ປ່ຽນແປງໂດຍອັດຕະໂນມັດສຳລັບທຸກການອັບເດດ VCS. ສິ່ງນີ້ຈຳເປັນໃນກໍລະນີທີ່ທ່ານປ່ຽນແປງ VCS repository ຂອງ Weblate ເບື້ອງຫຼັງດ້ວຍຕົນເອງ ຫຼື ໃນກໍລະນີພິເສດບາງຢ່າງຫຼັງຈາກການອັບເກຣດ.

lock_translation

weblate lock_translation <project|project/component>

ປ້ອງກັນການແປອົງປະກອບເພີ່ມເຕີມ.

Hint

ມີປະໂຫຍດໃນກໍລະນີທີ່ທ່ານຕ້ອງການບຳລຸງຮັກສາ repository ເບື້ອງຫຼັງ.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະອັບເດດ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອອັບເດດອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

migrate

weblate migrate

ຍ້າຍຖານຂໍ້ມູນໄປຍັງ schema Weblate ປັດຈຸບັນ. ຕົວເລືອກແຖວຄຳສັ່ງຖືກອະທິບາຍໄວ້ທີ່ Django migrate.

Hint

ໃນກໍລະນີທີ່ທ່ານຕ້ອງການຮັນການຕິດຕັ້ງແບບບໍ່ຕ້ອງໂຕ້ຕອບ, ທ່ານສາມາດໃຊ້ weblate migrate --noinput, ຈາກນັ້ນສ້າງຜູ້ໃຊ້ admin ໂດຍໃຊ້ຄຳສັ່ງ createadmin.

move_language

weblate move_language source target

ອະນຸຍາດໃຫ້ທ່ານລວມເນື້ອຫາພາສາ. ສິ່ງນີ້ມີປະໂຫຍດເມື່ອອັບເດດເປັນເວີຊັນໃໝ່ທີ່ມີນາມແຝງສຳລັບພາສາທີ່ບໍ່ຮູ້ຈັກມາກ່ອນ ເຊິ່ງຖືກສ້າງຂຶ້ນດ້ວຍ suffix (generated). ມັນຍ້າຍເນື້ອຫາທັງໝົດຈາກພາສາ source ໄປຍັງພາສາ target.

ຕົວຢ່າງ:

weblate move_language cze cs

ຫຼັງຈາກຍ້າຍເນື້ອຫາແລ້ວ, ທ່ານຄວນກວດສອບວ່າຍັງມີຫຍັງເຫຼືອຢູ່ບໍ່ (ສິ່ງນີ້ອາດເກີດ race conditions ຖ້າມີຄົນອັບເດດ repository ໃນຂະນະດຽວກັນ) ແລະ ລຶບພາສາ (generated) ອອກ.

pushgit

weblate pushgit <project|project/component>

ພັຊ (Push) ການປ່ຽນແປງທີ່ຄອມມິດແລ້ວໄປຍັງ upstream VCS repository.

--force-commit

Force commits any pending changes, prior to pushing.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະອັບເດດ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອອັບເດດອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

Note

Weblate ຈະພັຊການປ່ຽນແປງໂດຍອັດຕະໂນມັດຖ້າ Push ເມື່ອບັນທຶກການປ່ຽນແປງ (Commit) ໃນ ການຕັ້ງຄ່າ Component ຖືກເປີດໃຊ້, ເຊິ່ງເປັນຄ່າເລີ່ມຕົ້ນ.

unlock_translation

weblate unlock_translation <project|project/component>

ປົດລັອກອົງປະກອບທີ່ກຳນົດ, ເຮັດໃຫ້ມັນສາມາດແປໄດ້.

Hint

ມີປະໂຫຍດໃນກໍລະນີທີ່ທ່ານຕ້ອງການບຳລຸງຮັກສາ repository ເບື້ອງຫຼັງ.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະອັບເດດ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອອັບເດດອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

See also

lock_translation

setupgroups

weblate setupgroups

ຕັ້ງຄ່າກຸ່ມເລີ່ມຕົ້ນ ແລະ ມອບໝາຍຜູ້ໃຊ້ທັງໝົດໃຫ້ກັບກຸ່ມເລີ່ມຕົ້ນນັ້ນ (ທາງເລືອກ).

--no-privs-update

Turns off automatic updating of existing groups (only adds new ones).

--no-projects-update

Prevents automatic updates of groups for existing projects. This allows adding newly added groups to existing projects, see ການຄວບຄຸມການເຂົ້າເຖິງໂຄງການ.

setuplang

weblate setuplang

ອັບເດດລາຍການພາສາທີ່ກຳນົດໄວ້ໃນ Weblate.

--no-update

Turns off automatic updates of existing languages (only adds new ones).

updatechecks

weblate updatechecks <project|project/component>

ອັບເດດການກວດສອບທັງໝົດສຳລັບຂໍ້ຄວາມທັງໝົດ.

Hint

ມີປະໂຫຍດສຳລັບການອັບເກຣດທີ່ມີການປ່ຽນແປງໃຫຍ່ຕໍ່ການກວດສອບ.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະອັບເດດ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອອັບເດດອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

Note

ການກວດສອບຈະຖືກຄຳນວນຄືນໃໝ່ເປັນປົກກະຕິໂດຍ Weblate ໃນເບື້ອງຫຼັງ, ຄວາມຖີ່ສາມາດຕັ້ງຄ່າໄດ້ຜ່ານ BACKGROUND_TASKS.

updategit

weblate updategit <project|project/component>

ດຶງຂໍ້ມູນ remote VCS repositories ແລະ ອັບເດດ cache ພາຍໃນ.

ທ່ານສາມາດກຳນົດໂຄງການ ຫຼື ອົງປະກອບທີ່ຈະອັບເດດ (ຕົວຢ່າງ weblate/application), ຫຼື ໃຊ້ --all ເພື່ອອັບເດດອົງປະກອບທີ່ມີຢູ່ທັງໝົດ.

Note

ປົກກະຕິແລ້ວມັນດີກວ່າທີ່ຈະຕັ້ງຄ່າ hooks ໃນ repository ເພື່ອກະຕຸ້ນ ຮຸກການແຈ້ງເຕືອນ, ແທນທີ່ຈະກະຕຸ້ນການອັບເດດເປັນປົກກະຕິໂດຍ updategit.