How to add languages.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. create a language folder for your country (appropriate folder names are in the format of: en_US, nl_NL, ru_RU, etc...)
  2. copy the .po files to the appropriate folder and then start editing
  3. Order of picking:
  4. if there is a cheatengine.po it will pick that, else cheatengine-x86_64.po and if that fails cheatengine-i386.po
  5. the 32-bit version can work perfectly fine with the 64-bit po
  6. Same for the tutorial
  7. By default it picks the system language, but you can overide this by adding --LANG langstr or -l langstr to the parameters of Cheat Engine
  8. editing po files.
  9. There are some po editing tools but you can also do it by hand
  10. msgid contains the original string and msgstr contains the translated string.
  11. If msgstr is empty the original string will be shown
  12. Certain strings are not present in the cheatengine.po file, but are present in lclstrconsts.po
  13. The lclstrconsts.po file belongs to the LCL that the Cheat Engine GUI is build upon
  14. ----
  15. example for dutch
  16. create the languages\nl_NL folder and move the .po files to there
  17. then translate the .po files
  18. e.g:
  19. before:
  20. #: mainunit.rscheatengine
  21. msgid "Cheat Engine"
  22. msgstr ""
  23. after:
  24. #: mainunit.rscheatengine
  25. msgid "Cheat Engine"
  26. msgstr "Valsspeel motor"
  27. (This is just an example, please don't translate blindly like this...)
  28. to test you would run cheat engine with --LANG nl_NL