README.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ===============================================================================
  2. LIBERTYBSD-WEBSITE Pretty self-explanatory
  3. ===============================================================================
  4. The LBSD site is written as simple HTML-- no fancy Markdown or whatever.
  5. You can find the raw HTML in base/*.shtml
  6. ----------------------------------------
  7. USAGE
  8. ----------------------------------------
  9. To generate the full HTML for every version (in their own directories) run
  10. `sh gen.sh`
  11. with the repo as your CWD.
  12. ----------------------------------------
  13. EDITING
  14. ----------------------------------------
  15. When editing the HTML, make sure to edit the file in "base/*.shtml".
  16. When (if) you are adding a new string that can possibly be translated, make
  17. sure to add a variable for it in "res/lang/en.sh" (at least), and to add
  18. the string properly:
  19. <!--ml.sh LL your_strings_variable_name"-->
  20. Of course, replace "your_strings_variable_name" with whatever variable-name
  21. you wrote it as in "res/lang/en.sh".
  22. ----------------------------------------
  23. MULTI-LANG
  24. ----------------------------------------
  25. Multi-lang is handled by embedded server-side includes in the HTML-- every
  26. place a string would ordinarily go is replaced by a call to the script
  27. "res/bin/ml.sh" with two arguments:
  28. * lang-code
  29. * string-name
  30. That call, in the HTML, looks like mentioned above in EDITING.
  31. All strings are stored as shell variables in "res/lang/" under their
  32. respective langcode.
  33. ----------------------------------------
  34. CREDITS
  35. ----------------------------------------
  36. Spanish translation by jorgesumle,
  37. Esperanto translation mainly by Tirifto,
  38. various contributions by Jimmybot.
  39. ----------------------------------------
  40. BORING STUFF
  41. ----------------------------------------
  42. Maintainer is Jaidyn Levesque <jadedctrl@teknik.io>,
  43. license is CC 0,
  44. and sauce is at https://git.eunichx.us/libertybsd-website