You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,25 @@ Go in **issues**, then click on **new issue** and select **bug report**
8
8
9
9
## The translation file
10
10
11
-
This translation is stored in a .cvs file with the following format.
11
+
All the strings to translate are stored in a `.pot` file. AIdventure use the [GetText](https://en.wikipedia.org/wiki/Gettext) system.
12
12
13
-
| id |`<lang1>`|`<lang2>`|`<langN>`|
14
-
|------|-----------|-----------|-----------|
15
-
| KEY | string | string | string |
16
-
| KEY2 | string | string | string |
17
-
| KEY3 | string | string | string |
13
+
Then, each language has its own `.po` file.
18
14
19
15
**You can find the language codes [here](https://docs.godotengine.org/en/stable/tutorials/i18n/locales.html)**
20
16
21
17
## How to modify / add new languages
22
18
23
-
1. Download the [project](https://github.com/LyaaaaaGames/AIdventure_Localization/archive/refs/heads/Develop.zip).
24
-
2. Edit it with either [libreoffice](https://www.libreoffice.org/) or [Google sheet](https://www.google.com/sheets). **Avoid Microsoft Excel** as it use the wrong encoding.
19
+
First, you will require a software to edit or create your own translation.
25
20
26
-
**If you need to add a new language, simply add a new column with the language id** (e.g "es" for Spanish).
21
+
Multiple softwares exists but I will suggest PoEdit because it's free and open source.
27
22
23
+
1. Download [Poedit](https://poedit.net/)
24
+
2. Download the [project](https://github.com/LyaaaaaGames/AIdventure_Localization/archive/refs/heads/Develop.zip).
25
+
2. If there is no existing file for your language, open the `aidventure.pot` with **Poedit**
26
+
1. If a file already exist, open the corresponding file `e.g: fr.po` for French.
27
+
3. Poedit will suggest you to create a new translation file, do it.
28
+
4. You can now translate AIdventure :).
29
+
5. When done, send me the `.po` file.
28
30
29
31
## How to propose your modifications?
30
32
1. Fork my project
@@ -34,3 +36,5 @@ This translation is stored in a .cvs file with the following format.
34
36
5. Discuss / edit your pull request with me if needed
35
37
6. Get merged! :D
36
38
7. Get credited. UwU
39
+
40
+
If you don't know how to use github, you can send the `[LANGUAGE_CODE].po` file directly to me by email at lyaaaaa@lyaaaaagames.com
0 commit comments