ரெட்ஆட், ஃபெடோரா மற்றும் சென்டோசில் நிறுவுதல்

வன்பொருள் தேவைகள்

வலைபெயர்ப்பு எந்த சமகால வன்பொருளிலும் சிக்கல்கள் இல்லாமல் இயங்க வேண்டும், பின்வருபவை ஒரு ஓச்டில் வெப்லேட்டை இயக்க தேவையான குறைந்தபட்ச உள்ளமைவு (வெப்ளேட், தரவுத்தளம் மற்றும் வலை சேவையகம்):

  • 3 சிபி ரேம்

  • 2 சிபியு கோர்கள்

  • 1 சிபி சேமிப்பு இடம்

Note

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

நினைவக பயன்பாடு

அதிக நினைவகம் சிறந்தது - இது அனைத்து நிலைகளிலும் (கோப்பு முறைமை, தரவுத்தளம் மற்றும் வெப்லேட்) தேக்குவதற்கு பயன்படுத்தப்படுகிறது. நூற்றுக்கணக்கான மொழிபெயர்ப்பு கூறுகளுக்கு, குறைந்தது 4 சிபி ரேம் பரிந்துரைக்கப்படுகிறது.

Hint

For systems with less memory than recommended, ஒற்றை-செயல்முறை செலரி அமைப்பு is recommended.

சிபியு பயன்பாடு

பல ஒரே நேரத்தில் பயனர்கள் தேவையான சிபியு கோர்களின் அளவை அதிகரிக்கின்றனர்.

சேமிப்பக பயன்பாடு

வழக்கமான தரவுத்தள சேமிப்பக பயன்பாடு 1 மில்லியன் புரவலன் செய்யப்பட்ட சொற்களுக்கு 300 எம்பி ஆகும்.

நகலி செய்யப்பட்ட களஞ்சியங்களுக்குத் தேவையான சேமிப்பக இடம் மாறுபடும், ஆனால் வலைபெயர்ப்பு ஆழமற்ற குளோன்களைச் செய்வதன் மூலம் அவற்றின் அளவை குறைவாக வைத்திருக்க முயற்சிக்கிறது.

முனைகள்

For small and medium-sized sites (millions of hosted words), all Weblate components (see கட்டிடக்கலை கண்ணோட்டம்) can be run on a single node.

When you grow to hundreds of millions of hosted words, it is recommended to have a dedicated node for database (see வலைபெயர்ப்புடுக்கான தரவுத்தள அமைப்பு).

நிறுவல்

கணினி தேவைகள்

Install the dependencies needed to build the Python modules (see மென்பொருள் தேவைகள்):

dnf install \
   libxslt-devel libxml2-devel freetype-devel libjpeg-devel zlib-devel \
   libyaml-devel libffi-devel cairo-devel cairo-gobject-devel pango-devel \
   gobject-introspection-devel libacl-devel lz4-devel libzstd-devel xxhash-devel \
   libtool-ltdl-devel python3-devel git

Install wanted optional dependencies depending on features you intend to use (see பைதான் சார்புநிலைகள்):

dnf install openldap-devel libsasl2-devel
dnf install xmlsec1-devel

Optionally install software for running production server, see சேவையகம் இயங்கும், வலைபெயர்ப்புடுக்கான தரவுத்தள அமைப்பு, செலரியைப் பயன்படுத்தி பின்னணி பணிகள். Depending on size of your installation you might want to run these components on dedicated servers.

உள்ளக நிறுவல் வழிமுறைகள்:

# Web server option 1: NGINX and uWSGI
dnf install nginx uwsgi uwsgi-plugin-python3

# Web server option 2: Apache with ``mod_wsgi``
dnf install apache2 apache2-mod_wsgi

# Caching backend: Redis
dnf install redis

# Database server: PostgreSQL
dnf install postgresql postgresql-contrib

# SMTP server
dnf install postfix

# Gettext for the msgmerge add-on
dnf install gettext

புற ஊதா தொகுப்பு மேலாளர்

Hint

வலைபெயர்ப்பு நிறுவ UV தொகுப்பு மேலாளரைப் பயன்படுத்துகிறோம்.

curl -LsSf https://astral.sh/uv/install.sh | sh

See also

Installing uv

பைதான் தொகுதிகள்

Hint

We're using virtualenv to install Weblate in a separate environment from your system. If you are not familiar with it, check virtualenv User Guide.

  1. வலைபெயர்ப்புடுக்கு மெய்நிகர்இன்வை உருவாக்கவும்:

    uv venv ~/weblate-env
    
  2. வலைபெயர்ப்புடுக்கு மெய்நிகர் ஈன்வை செயல்படுத்தவும்:

    . ~/weblate-env/bin/activate
    
  3. அனைத்து விருப்ப சார்புகளையும் உள்ளடக்கிய வலைபெயர்ப்பை நிறுவவும்:

    # Install Weblate with all optional dependencies
    uv pip install "weblate[all]"
    

    Please check பைதான் சார்புநிலைகள் for fine-tuning of optional dependencies.

    Note

    வலைபெயர்ப்பு இயங்கும் சில லினக்ச் விநியோகங்களில் லிப்ஃபி பிழையுடன் தோல்வியடைகிறது:

    ffi_prep_closure(): bad user_data (it seems that the version of the libffi library seen at runtime is different from the 'ffi.h' file seen at compile-time)
    

    விநியோகத்துடன் pypi வழியாக விநியோகிக்கப்படும் பைனரி தொகுப்புகளின் பொருந்தாத தன்மையால் இது ஏற்படுகிறது. இதை நிவர்த்தி செய்ய, உங்கள் கணினியில் தொகுப்பை மீண்டும் உருவாக்க வேண்டும்:

    uv pip install --force-reinstall --no-binary :all: cffi
    

வலைபெயர்ப்பு கட்டமைத்தல்

Note

The following assumes the virtualenv used by Weblate is activated (by executing . ~/weblate-env/bin/activate). If not, specify the full path to the weblate command as ~/weblate-env/bin/weblate.

  1. Copy the file ~/weblate-env/lib/python3.9/site-packages/weblate/settings_example.py to ~/weblate-env/lib/python3.9/site-packages/weblate/settings.py.

  2. Adjust the values in the new settings.py file to your liking. You will need to provide at least the database credentials and Django secret key, but you will want more changes for production setup, see உள்ளமைவை சரிசெய்தல்.

  3. Create the database and its structure for Weblate (the example settings use PostgreSQL, check வலைபெயர்ப்புடுக்கான தரவுத்தள அமைப்பு for a production-ready setup):

    weblate migrate
    

    See also

    migrate

  4. நிர்வாகி பயனர் கணக்கை உருவாக்கி `` நிர்வாகி``, அதன் கடவுச்சொல்லை உருவாக்கி, அதை கிளிப்போர்டில் நகலெடுக்கவும்; பின்னர் பயன்படுத்த அதை சேமிக்க நினைவில் கொள்ளுங்கள்:

    weblate createadmin
    

    Hint

    நிர்வாகி கடவுச்சொல்லை நீங்கள் முன்பு தவறவிட்டால்/இழந்தால், பின்வரும் கட்டளையுடன் புதிய ஒன்றை உருவாக்கலாம்:

    weblate createadmin --update
    

    See also

    createadmin

  5. Collect the static files for your web server (see சேவையகம் இயங்கும் and நிலையான கோப்புகளை வழங்குதல்):

    weblate collectstatic
    
  6. Compress the JavaScript and CSS files (optional, see கிளையன்ட் சொத்துக்களை சுருக்கவும்):

    weblate compress
    
  7. Start the Celery workers. This is not necessary for development purposes, but strongly recommended otherwise. செலரியைப் பயன்படுத்தி பின்னணி பணிகள் has more info:

    ~/weblate-env/lib/python3.9/site-packages/weblate/examples/celery start
    
  8. Start the development server (சேவையகம் இயங்கும் details a production setup):

    weblate runserver
    

நிறுவிய பின்

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

  • நீங்கள் இப்போது `` http: // localhost: 8000/`` என்ற அளவில் வலைபெயர்ப்புடை அணுகலாம்.

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

  • You can now run Weblate commands using weblate command when Weblate virtualenv is active, see மேலாண்மை கட்டளைகள்.

  • You can stop the test server with Ctrl+C.

  • Review potential issues with your installation either on /manage/performance/ URL (see செயல்திறன் அறிக்கை) or using weblate check --deploy, see விளைவாக்கம் அமைப்பு.

மொழிபெயர்ப்பைச் சேர்ப்பது

  1. Open the admin interface (http://localhost:8000/create/project/) and create the project you want to translate. See திட்ட உள்ளமைவு for more details.

    நீங்கள் இங்கே குறிப்பிட வேண்டியது திட்ட பெயர் மற்றும் அதன் வலைத்தளம்.

  2. Create a component which is the real object for translation - it points to the VCS repository, and selects which files to translate. See கூறு உள்ளமைவு for more details.

    The important fields here are: கூறு பெயர், மூல குறியீடு களஞ்சியம், and கோப்பு முகமூடி for finding translatable files. Weblate supports a wide range of formats including குனு கெட்டெக்ச்ட் போ (சிறிய பொருள்), ஆண்ட்ராய்டு string resources, apple ஐஇமு strings, சாவா பண்புகள், stringsdict வடிவம் or சரளமான வடிவமைப்பு, see Localization file formats for more details.

  3. மேலே உள்ளவை முடிந்ததும் (இது உங்கள் வி.சி.எச் களஞ்சியத்தின் அளவைப் பொறுத்து நீண்ட செயல்முறையாகவும், மொழிபெயர்க்க வேண்டிய செய்திகளின் எண்ணிக்கையாகவும் இருக்கலாம்), நீங்கள் மொழிபெயர்க்கத் தொடங்கலாம்.