வலைபெயர்ப்பு internals

Note

இந்த அத்தியாயம் வலைபெயர்ப்பு உட்புறங்களின் அடிப்படை கண்ணோட்டத்தை உங்களுக்கு வழங்கும்.

வலைபெயர்ப்பு அதன் குறியீடு கட்டமைப்பின் பெரும்பகுதியிலிருந்து பெறப்படுகிறது, மேலும் இது சாங்கோ ஐ அடிப்படையாகக் கொண்டது.

கோப்பக அமைப்பு

வலைபெயர்ப்பு முதன்மையான களஞ்சியத்தின் கோப்பக கட்டமைப்பின் விரைவான கண்ணோட்டம்:

docs

Source code for this documentation, which can be built using Sphinx.

dev-docker

Docker code to run development server, see டாக்கரில் உள்நாட்டில் வலைபெயர்ப்பு இயங்குகிறது.

weblate

Source code of Weblate as a Django application, see வலைபெயர்ப்பு internals.

weblate/static

கிளையன்ட் கோப்புகள் (CSS, சாவாகைஉரை மற்றும் படங்கள்), காண்க வலைபெயர்ப்பு ஃபிரான்டென்ட்.

தொகுதிகள்

Weblate consists of several Django applications (some optional, see விருப்ப வலைபெயர்ப்பு தொகுதிகள்):

accounts

பயனர் கணக்கு, சுயவிவரங்கள் மற்றும் அறிவிப்புகள்.

addons

வலைபெயர்ப்பு நடத்தையை மாற்றுவதற்கு துணை நிரல்கள், காண்க துணை நிரல்கள்.

api

சாங்கோ ரெச்ட் ஃபிரேம்வொர்க் ஐ அடிப்படையாகக் கொண்ட பநிஇ.

auth

ஏற்பு மற்றும் அனுமதிகள்.

billing

The optional பட்டியலிடல் module.

checks

Translation string தர சோதனைகள் module.

fonts

எழுத்துரு பதிப்பு சரிபார்ப்பு தொகுதி.

formats

மொழிபெயர்ப்பு-கருவித்தொகுப்பை அடிப்படையாகக் கொண்ட கோப்பு வடிவமைப்பு சுருக்க அடுக்கு.

gitexport

விரும்பினால் அறிவிலி ஏற்றுமதியாளர் தொகுதி.

lang

மொழி மற்றும் பன்மை மாதிரிகளை வரையறுக்கும் தொகுதி.

legal

The optional சட்ட தொகுதி module.

machinery

இயந்திர மொழிபெயர்ப்பு சேவைகளின் ஒருங்கிணைப்பு.

memory

screenshots

திரை சாட்கள் மேலாண்மை மற்றும் ஓ.சி.ஆர் தொகுதி.

trans

மொழிபெயர்ப்புகளைக் கையாளும் முதன்மையான தொகுதி.

utils

பல்வேறு உதவிப் பயன்பாடுகள்.

vcs

பதிப்பு கட்டுப்பாட்டு அமைப்பு சுருக்கம்.

wladmin

சாங்கோ நிர்வாக இடைமுக தனிப்பயனாக்கம்.

Background tasks internals

Hint

This section describes Celery task internals. செலரியைப் பயன்படுத்தி பின்னணி பணிகள் describes how to configure Celery to run the tasks.

Weblate uses Celery to execute tasks in the background. Some tasks are event-triggered, and some tasks are schedule-triggered.

The Celery Beat is used for scheduling tasks, and django-celery-beat is used to store the periodic task schedule in the database. The tasks schedule is configured in tasks.py in each of the Django apps.

The tasks are consumed using several queues; the routing is configured in settings.py. The queues were designed to separate different types of workload:

celery

The default queue where background tasks are processed.

notify

Delivers notification e-mails, both for events within Weblate and for authentication or registration. This is a separate queue to make e-mail delivery smooth even if there is a backlog of other tasks.

memory

Updates translation memory entries. The updating queue can be long when importing new strings, and long processing does not matter much here, so having a separate queue avoids blocking other tasks.

backup

The backup tasks cannot be executed in parallel, and a single dedicated worker makes this easier.

translate

Automatic translation tasks are known to take long because they hit external services.