aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Lang.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LXRng/Lang.pm')
-rw-r--r--lib/LXRng/Lang.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/LXRng/Lang.pm b/lib/LXRng/Lang.pm
index 7e6c278..754cb72 100644
--- a/lib/LXRng/Lang.pm
+++ b/lib/LXRng/Lang.pm
@@ -28,9 +28,10 @@ use vars qw(@languages %deftypes %defweight);
qw(c f i n s t u p x v d e g m l) };
-sub import {
- my ($self, @langs) = @_;
+sub init {
+ my ($self, $context) = @_;
+ my @langs = @{$context->config->{'languages'} || []};
push(@langs, 'Undefined');
foreach my $l (@langs) {
eval "require LXRng::Lang::$l";