Skip to content

Commit

Permalink
Merge pull request LinuxCNC#535 from Solitarily/master
Browse files Browse the repository at this point in the history
Fix multi-language loading error for "tklinuxcnc" UI
  • Loading branch information
jepler committed Nov 29, 2018
2 parents 4986995 + 3e8ddc9 commit e4495fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ else
EMC2_ICON=linuxcncicon
EMC2_TCL_DIR=${prefix}/lib/tcltk/linuxcnc
EMC2_TCL_LIB_DIR=${prefix}/lib/tcltk/linuxcnc
EMC2_LANG_DIR=${prefix}/share/linuxcnc/tcl/msgs
EMC2_LANG_DIR=${prefix}/lib/tcltk/linuxcnc/msgs
EMC2_PO_DIR=${prefix}/share/locale
EMC2_HELP_DIR=${prefix}/share/doc/linuxcnc
case $MODULE_DIR in
Expand Down
2 changes: 1 addition & 1 deletion tcl/linuxcnc.tcl.in
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ proc hal {args} {
# called *.msg, (e.g. en_US.msg).
package require msgcat
if {$linuxcnc::_langinit && [info exists env(LANG)]} {
msgcat::mclocale $env(LANG)
msgcat::mclocale
msgcat::mcload $linuxcnc::LANG_DIR
set linuxcnc::_langinit 0
}
Expand Down
2 changes: 1 addition & 1 deletion tcl/tklinuxcnc.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ set tkemc 1
# called *.msg, (e.g. en_US.msg).
package require msgcat
if ([info exists env(LANG)]) {
msgcat::mclocale $env(LANG)
msgcat::mclocale
msgcat::mcload $linuxcnc::LANG_DIR
}

Expand Down

0 comments on commit e4495fe

Please sign in to comment.