gmsg.tcl 749 B

12345678910111213141516171819202122232425262728
  1. #############################################################################
  2. #
  3. # gmsg.tcl
  4. #
  5. # MODULE: Grass Tcl/Tk I18n wrapper
  6. # AUTHOR(S): Alex Shevlakov alex@motivation.ru
  7. # PURPOSE: I18N Tcl-Tk based GUI text strings wrapper procedure
  8. #
  9. # COPYRIGHT: (C) 2000 by the GRASS Development Team
  10. #
  11. # This program is free software under the GNU General Public
  12. # License (>=v2). Read the file COPYING that comes with GRASS
  13. # for details.
  14. #
  15. #############################################################################
  16. if [catch {package require msgcat}] {
  17. proc G_msg {message} {
  18. return $message
  19. }
  20. } else {
  21. ::msgcat::mcload $env(GISBASE)/etc/msgs
  22. proc G_msg {message} {
  23. return [::msgcat::mc $message]
  24. }
  25. }