Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.75 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.75 KB

🌐 How to Translate Khronos

✏️ First Things First

  • Fork the repository here on github with the Fork button at the top-right.
  • Clone this repository by opening the terminal in a folder of your choice and typing git clone https://github.com/<you_username>/khronos
  • (Optional) Check Regenerate translations files section if files haven't been recently updated.

📃 Basics

  • You'll need to know your language's code (ex. en = English).
  • Add that code to the LINGUAS file, in a new line, after the last line.
  • Translate the .pot file using the PO editor of your choice (I recommend POEdit).
  • Save it as <language_code>.po in this folder.

📝 Not so Basics

  • Next, in the folder you've cloned this repo in, open a terminal and type: git checkout -b "Translation <language code>
  • Then, type git add *
  • 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.

And that's it! You've successfully translated Khronos for your language!

🔁 Regenerate translations files

  • Initialize the project build by typing meson _build (make sure you have dependencies installed!).
  • Compile .pot files, type meson compile -C _build io.github.lainsce.Khronos-pot.
  • (Optional) Compile .po files instead replacing -pot with -update-po in the previous command.

Note: install appstream package in order to generate release strings.