Why not regular dictionary like gettext?
ppixregexplain.plPickTheLanguage( $cgi ); ... <title>@{[ text('title') ]}</title> ... <h1>@{[ text('The Choosening') ]}</h1> sub PickTheLanguage { ... warn ... our $LANG = 'fr'; # from $query ## ensure loaded %dictionary = ( fr => { title => "French", "The C +hoosening" => "Le choisirning" } ); } sub text { $dictionary{$LANG}{"@_"} || "@_"; }
In reply to Re: RFC: improvising multi language HTML (gettext)
by Anonymous Monk
in thread RFC: improvising multi language HTML
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |