Created
April 20, 2012 14:50
-
-
Save smeghead/2429253 to your computer and use it in GitHub Desktop.
Locale::Maketext::Simpleが動かない
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msgid "hello" | |
msgstr "konnnitiwa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Locale::Maketext::Simple { Style => 'gettext', }; | |
sub text { | |
Locale::Maketext::Simple->import({Path => '.'}); | |
loc_lang('ja'); | |
return loc('hello'); | |
} | |
print text, "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment