HowToAdd.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ###############################################################################
  2. #
  3. #Welcome in the lang module
  4. #
  5. ###############################################################################
  6. The available languages are RO and EN.
  7. But you can easily add another language of your choice.
  8. The steps are :
  9. 1 - Create a tcl file in the lang folder with the name "BlackTools.<lang>.lang.tcl"
  10. For example we add the language "French" , so we create the file -> "BlackTools.fr.lang.tcl" <-
  11. 2 - Now you have to translate the text from other language file that is available..into you language file.
  12. 3 - Just open the loader.tcl file from the lang folder and you will have
  13. set black(language_load) {
  14. "BlackTools.ro.lang.tcl"
  15. "BlackTools.en.lang.tcl"
  16. }
  17. Add you language file here :
  18. set black(language_load) {
  19. "BlackTools.ro.lang.tcl"
  20. "BlackTools.en.lang.tcl"
  21. "BlackTools.fr.lang.tcl"
  22. }
  23. 4 - Rehash your BOT
  24. 5 - Type in the chan .myset language fr
  25. 6 - And There you are, the french language is ready
  26. 7 - If you want to set the french language as default open the BlackTools.tcl and you will have
  27. #Default language ( RO / EN )
  28. set black(default_lang) "RO"
  29. 8 - Set here
  30. set black(default_lang) "FR"
  31. Thats all folks :)