Weblate-based Translation File Management for Ren'Py Projects

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Weblate-based Translation File Management for Ren'Py Projects

#1 Post by Andredron »

Github - https://github.com/SadCrabCom/community_tl

Weblate-based Translation File Management for Ren'Py Projects
Welcome to the Weblate-based Translation File Management repository for Ren'Py projects! This repository serves as a guide and toolkit for managing translation files in CSV format using the Weblate platform. The instructions provided here are suitable for any Ren'Py project seeking to streamline their translation process.

Introduction
This repository provides comprehensive guidance on managing translation files in CSV format using the Weblate platform. The instructions outlined here are designed to be adaptable to any Ren'Py project, ensuring efficient collaboration among translators.

Getting Started
Set up a Weblate server by following the instructions provided in the Weblate Documentation.

Clone the Repository: Clone the repository to your local machine.

Configure Set up weblate.ini with your data.

Create CSV Files: Run 3_export_csv.bat to create CSV files for all the langauges from the EXISTING_LANGUAGES.json.

Upload New CSV Files: Run 4_update_weblate.bat to upload the new CSV files to Weblate.

Usage Instructions
To update and upload translation files of your Ren'Py project, follow these steps:

Download Changed Lines: Run 1_update_repos.bat to download all the changed lines from the Weblate site.

Update lines.json: Run 2_update_import.bat to update the lines.json file.

Create CSV Files: Run 3_export_csv.bat to update the lines in CSV files.

Upload New CSV Files: Run 4_update_weblate.bat to upload changed CSV files to Weblate.

Adding New Languages
To add new languages to your Ren'Py project, follow these steps:

Download Changed Lines: Run 1_update_repos.bat to download all the changed lines from the Weblate site.

Update lines.json: Run 2_update_import.bat to update the lines.json file.

Modify Existing Languages: Add the new language and its language code to the EXISTING_LANGUAGES.json file.

Add Language Name: Add the new language and its name to the LANGUAGE_NAMES.json file.

Create CSV Files: Run 3_export_csv.bat to create CSV files for the added language.

Upload New CSV Files: Run 4_update_weblate.bat to upload the new CSV files to Weblate.

License
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

© 2017-2023 All rights reserved. Sad Crab Company. Contacts: mailto:sadcrabcom@yandex.ru

Post Reply

Who is online

Users browsing this forum: Google [Bot]