README 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Localizations for StatusNet are being maintained through TranslateWiki:
  2. http://translatewiki.net/wiki/Translating:StatusNet
  3. Ongoing translation work should be done there to ensure updates are
  4. integrated into future versions of StatusNet.
  5. == Building runtime translations ==
  6. If you are working with a direct git checkout or have customized any
  7. message files, you will need to build binary .mo files from the .po
  8. source files for translations to work in the web app.
  9. If gettext and GNU make are installed, you can simply run 'make' in the
  10. main StatusNet directory, and all core and plugin localizations will be
  11. recompiled.
  12. == Customization ==
  13. User interface texts in any language can be customized by editing the
  14. texts in the .po source files, then rebuilding the binary .mo files
  15. used at runtime.
  16. The default/US English texts can be overridden by adding "translations"
  17. to en/LC_MESSAGES/statusnet.po.
  18. Note that texts you change in one language will not affect other
  19. languages, which are selected based on visitors' browser preferences.
  20. If you customizations include important information or links,
  21. you may wish to disable languages that you haven't customized so that
  22. visitors always get your text.
  23. To disable all non-English languages add this to your config.php (you
  24. will need to edit both the en and en_GB files):
  25. $config['site']['languages'] = array(
  26. 'en-us' => array('q' => 1, 'lang' => 'en', 'name' => 'English (US)', 'direction' => 'ltr'),
  27. 'en-gb' => array('q' => 1, 'lang' => 'en_GB', 'name' => 'English (British)', 'direction' => 'ltr'),
  28. 'en' => array('q' => 1, 'lang' => 'en', 'name' => 'English (US)', 'direction' => 'ltr'),
  29. );
  30. To disable everything including British English variant:
  31. $config['site']['languages'] = array(
  32. 'en' => array('q' => 1, 'lang' => 'en', 'name' => 'English', 'direction' => 'ltr'),
  33. );
  34. == Plugins ==
  35. This locale directory contains translations for the core StatusNet
  36. software only. Plugins may have their own locale subdirectories and
  37. their own .po and .mo files as well, so if customizing you may need
  38. to poke at those as well.