This is a required Aaptaha submodule.
This repo contains the strings for the bot's interface for all languages.
The files are arranged in the same directory structure as in the main repo,
with the exception that the files in repo's root folder are in a separate
folder named Root here, and a cog's class is in the respective Cog folder.
This must be in sync with the main root, since changes can be critically breaking w.r.t. UX.
English translation serves as the reference translation.
Join Aaptaha's meta server by using the about command.
Note that all translations will be a part of Aaptaha, and will not be owned by any specific third-party contributor.
Use Poedit. It is available directly in most package
repos, so you can install it directly. For example: sudo apt install poedit.
All commits must be GPG signed. Please see https://docs.github.com/articles/about-gpg/ for knowing more about it and how to set it up.
So the entire setup can be as follows:
sudo apt install poedit
git clone git@github.com:aaptaha/anuvaada.git
cd anuvaada
git config commit.gpgsign=true-
0_potfolder will only have the base.potfiles. -
Each language must have its own folder for its development, and will only contain the translated strings (i.e., the
.pofiles). -
No folder except
0_generatedwill have.mofiles. -
0_generatedfolder will have all the language branches merged and compiled using the scriptcompile.sh. No manual modification should be done. -
0_*folders must not be touched by anyone except Aaptaha's maintainer.
-
Project name: Aaptaha Translations.
-
PO-Revision-Datemust be there. -
Language-Teamshould be name of language, for eg.,Hindi. -
Last Translatorfield should have your name and email. If you are not comfortable sharing IRL detailslike me, use your GitHub name and email. Please use the commit email. -
Filename should be
name_<lang>.po, wherenameis the one in.potfile. -
File should be stored in the path by replacing
0_potwith language code. For example, if the.potfile is stored in0_pot/some_path/name.pot, then the translated.pofile should use similar path and thus be stored in<lang>/some_path/name_<lang>.po. This is done to aid in auto-generation.
-
Open
.potfile in Poedit, then choose the appropriate language. -
In Translation -> Properties, fill the fields appropriately as mentioned above.
-
Translate the strings and save in the correct location.
-
Commit the
.pofiles. -
Open PR for the respective branch.
-
Directly open the
.pofile in Poedit. -
Do necessary modifications.
-
Commit the
.pofiles. -
Open PR for the respective branch.
Copyright (C) 2021 Gouenji Shuuya (https://github.com/gouenji-shuuya).
Licensed under GNU Affero General Public License v3.0.