7
unless (open(LOCALE, "locale|")) {
11
if (/^LC_MESSAGES=\"(.*)\"$/) {
14
} elsif (/^LC_MESSAGES=(.*)$/) {
23
if ($messages eq 'C') {
24
skip("cannot run test in the C locale", 0);
27
if ($messages eq 'POSIX') {
28
skip("cannot run test in the POSIX locale", 0);
32
mkdir "test_data/" . $messages, 0755 unless (-d "test_data/" . $messages);
33
mkdir "test_data/" . $messages . "/LC_MESSAGES", 0755
34
unless (-d "test_data/" . $messages . "/LC_MESSAGES");
35
unless (-r ("test_data/" . $messages . "/LC_MESSAGES/" . $domain . ".mo")) {
36
system "msgfmt", "-o", "test_data/" . $messages . "/LC_MESSAGES/" .
38
"test_data/" . $domain . ".po";
46
skip("could not generate test data, skipping test", 0);