From e279cae8be610fa4fc0ecbf21d27d59e9953d9a0 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 24 Jan 2006 19:54:58 +0000 Subject: [PATCH] Lirama::Loc --- {Lyrical => Lirama}/Loc.pm | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) rename {Lyrical => Lirama}/Loc.pm (83%) diff --git a/Lyrical/Loc.pm b/Lirama/Loc.pm similarity index 83% rename from Lyrical/Loc.pm rename to Lirama/Loc.pm index 8dfaeb2..cd3529f 100644 --- a/Lyrical/Loc.pm +++ b/Lirama/Loc.pm @@ -1,4 +1,4 @@ -package Lyrical::Loc; +package Lirama::Loc; use strict; use warnings; @@ -9,7 +9,7 @@ our @ISA = qw(Exporter); our @EXPORT = qw(langpref); our @EXPORT_OK = qw(@langpref loc); -our @langpref = qw(en eo nl sv de fr ru kr); +our @langpref = qw(en eo nl sv el hu de fr ru kr fi); sub langpref { # @_ is order of languages (prefered language last) @@ -75,15 +75,20 @@ sub NEXTKEY { 1; +__END__ + + =head1 NAME -Lyrical::Loc - Localize strings +Lirama::Loc - Localize strings =head1 SYNOPSIS - use Lyrical::Loc; - langpref(qw/en eo/); - tie my %loc, "Lyrical::Loc", { + use Lirama::Loc; + + langpref(qw/en eo/); # prefer esperanto texts + + tie my %loc, "Lirama::Loc", { test => { en => "this is a test", eo => "cxi tio estas testo", @@ -95,8 +100,16 @@ Lyrical::Loc - Localize strings =head1 DESCRIPTION +Returns a text in the preferred language. + +=head1 SEE ALSO + +L + =head1 AUTHOR -Mischa Poslawsky +Mischa POSLAWSKY + +Copyright 2005 Mischa POSLAWSKY. All rights reserved. =cut -- 2.30.0