| 1 | #!/usr/bin/perl | ||
| 2 | # made by: KorG | ||
| 3 | # vim: cc=119 et sw=4 ts=4 : | ||
| 4 | package X11::korgwm::Panel::Lang; | ||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | use feature 'signatures'; | ||
| 8 | |||
| 9 | use X11::korgwm::Common; | ||
| 10 | use X11::korgwm::Panel; | ||
| 11 | |||
| 12 | # Export function to Panel class | ||
| 13 | sub X11::korgwm::Panel::lang_set($self, $lang = "") { | ||
| 14 | $self->{lang}->set_text(sprintf($cfg->{lang_format}, $lang)); | ||
| 15 | } | ||
| 16 | |||
| 17 | # Add panel element | ||
| 18 | &X11::korgwm::Panel::add_element("lang"); | ||
| 19 | |||
| 20 | 1; |