|
1 | | -# How to Translate Notejot |
| 1 | +# 🌐 How to Translate Notejot |
2 | 2 |
|
3 | | -## First Things First |
| 3 | +## ✏️ First Things First |
4 | 4 |
|
5 | 5 | * Fork the repository here on github with the Fork button at the top-right |
6 | 6 | * Clone this repository by opening the terminal in a folder of your choice and typing `git clone https://github.com/<you_username>/notejot` |
7 | 7 | * (Optional) Check [Regenerate translations files](https://github.com/lainsce/notejot/tree/master/po#regenerate-translations-files) section if files haven't been recently updated. |
8 | 8 |
|
9 | | -## Basics |
| 9 | +## 📃 Basics |
10 | 10 |
|
11 | 11 | * You'll need to know your language's code (ex. en = English). |
12 | 12 | * Add that code to the LINGUAS file, in a new line, after the last line. |
13 | 13 | * Translate the .pot file using the PO editor of your choice (I recommend POEdit). |
14 | 14 | * Save it as <language_code>.po in this folder. |
15 | 15 |
|
16 | | -## Not so Basics |
| 16 | +## 📝 Not so Basics |
17 | 17 |
|
18 | 18 | * Next, in the folder you've cloned this repo in, open a terminal and type: ```git checkout -b "Translation <language code>``` |
19 | 19 | * Then, type ```git add *``` |
20 | 20 | * Finally, ```git commit -m "Translated your app for <Language Name>" && git push```, follow the instructions in the terminal if need be, then type your github username and password. |
21 | 21 |
|
22 | 22 | And that's it! You've successfully translated Notejot for your language! |
23 | 23 |
|
24 | | -## Regenerate translations files |
| 24 | +## 🔁 Regenerate translations files |
25 | 25 | * Initialize the project build by typing `meson _build` (make sure you have [dependencies](https://github.com/lainsce/notejot#dependencies) installed!). |
26 | 26 | * Compile .pot files, type `meson compile -C _build io.github.lainsce.Notejot-pot` and `meson compile -C _build extra-pot` |
27 | 27 | * (Optional) Compile .po files instead replacing `-pot` with `-update-po` in the previous commands. |
28 | 28 |
|
29 | | -Note: install `apppstream` package in order to generate release strings in `extra.pot` |
| 29 | +Note: install `appstream` package in order to generate release strings in `extra.pot` |
0 commit comments