App-Bernard

 view release on metacpan or  search on metacpan

lib/App/Bernard.pm  view on Meta::CPAN

the source alphabet and C<"Latn"> as the target
alphabet.  In other words, you can't yet undo
a transliteration into Shavian.  This may be
added one day.

This entire option is not yet implemented.

=head2 -n <file>, --names <file>

This switch only makes sense with gettext .po files.
It means that the msgids in the file are not English
strings, but identifiers, and that the English strings
are in the .po file whose name is supplied.  This is
often found in Nokia catalogues.

This is not yet implemented.

=head2 -c, --check

Runs the resulting file through C<"msgfmt -c"> to check
its validity.

lib/App/Bernard/Filetype/TextXGettextTranslation.pm  view on Meta::CPAN

	    if ($should_change) {
		
		$item->{'flags'}->{'fuzzy'} = 1;
		
		for my $key (keys %{$item}) {
		    if ($key =~ /^msgstr/) {
			undef $item->{$key};
		    }
		}

		if (defined $item->{'msgid_plural'}) {
		    $item->{'msgstr[0]'} = $transliterate->($item->{'msgid'});
		    $item->{'msgstr[1]'} = $transliterate->($item->{'msgid_plural'});
		} else {
		    $item->{'msgstr'} = $transliterate->($item->{'msgid'});
		}
	    }

	}
	$rebuilder->($item);
    };

    my $dater = Locale::PO::Callback::set_date($maybe_transliterate);

    my $lcp = Locale::PO::Callback->new($dater);

t/basic/input-basic.po  view on Meta::CPAN

msgid ""
msgstr ""
"Project-Id-Version: Demo of a .po file\n"
"PO-Revision-Date: 1975-01-30 00:00 +0000\n"
"Last-Translator: Thomas Thurman <marnanel@cpan.org>\n"
"Language-Team: test <test@example.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

msgid "This will not be affected"
msgstr "because it has a translation"

msgid "This will be affected, because it's empty"
msgstr ""

#, fuzzy
msgid "This will be affected"
msgstr "because it's marked fuzzy"

#, fuzzy
#: src/test.c:177
msgid ""
"This will be affected both because it's fuzzy, and "
"also because it's empty"
msgstr ""

t/basic/output-stdout  view on Meta::CPAN

msgid ""
msgstr ""
"Project-Id-Version: Demo of a .po file\n"
"PO-Revision-Date: 2010-05-21 05:04 -0400\n"
"Last-Translator: Thomas Thurman <marnanel@cpan.org>\n"
"Language-Team: Shavian <ubuntu-l10n-en-shaw@launchpad.net>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n!=1;\n"

msgid "This will not be affected"
msgstr "because it has a translation"

#, fuzzy
msgid "This will be affected, because it's empty"
msgstr "𐑞𐑦𐑕 𐑢𐑦𐑤 𐑚𐑰 𐑩𐑓𐑧𐑒𐑑𐑩𐑛, 𐑚𐑦𐑒𐑪𐑟 𐑦𐑑'𐑕 𐑧𐑥𐑐𐑑𐑦"

#, fuzzy
msgid "This will be affected"
msgstr "𐑞𐑦𐑕 𐑢𐑦𐑤 𐑚𐑰 𐑩𐑓𐑧𐑒𐑑𐑩𐑛"

#, fuzzy
#: src/test.c:177
msgid ""
"This will be affected both because it's fuzzy, and also because it's empty"
msgstr "𐑞𐑦𐑕 𐑢𐑦𐑤 𐑚𐑰 𐑩𐑓𐑧𐑒𐑑𐑩𐑛 𐑚𐑴𐑔 𐑚𐑦𐑒𐑪𐑟 𐑦𐑑'𐑕 𐑓𐑳𐑟𐑦, 𐑯 𐑷𐑤𐑕𐑴 𐑚𐑦𐑒𐑪𐑟 𐑦𐑑'𐑕 𐑧𐑥𐑐𐑑𐑦"

t/basic_-i/input-basic.po  view on Meta::CPAN

msgid ""
msgstr ""
"Project-Id-Version: Demo of a .po file\n"
"PO-Revision-Date: 1975-01-30 00:00 +0000\n"
"Last-Translator: Thomas Thurman <marnanel@cpan.org>\n"
"Language-Team: test <test@example.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

msgid "This will not be affected"
msgstr "because it has a translation"

msgid "This will be affected, because it's empty"
msgstr ""

#, fuzzy
msgid "This will be affected"
msgstr "because it's marked fuzzy"

#, fuzzy
#: src/test.c:177
msgid ""
"This will be affected both because it's fuzzy, and "
"also because it's empty"
msgstr ""

t/basic_-i/output-basic.po  view on Meta::CPAN

msgid ""
msgstr ""
"Project-Id-Version: Demo of a .po file\n"
"PO-Revision-Date: 2010-05-21 05:04 -0400\n"
"Last-Translator: Thomas Thurman <marnanel@cpan.org>\n"
"Language-Team: Shavian <ubuntu-l10n-en-shaw@launchpad.net>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n!=1;\n"

msgid "This will not be affected"
msgstr "because it has a translation"

#, fuzzy
msgid "This will be affected, because it's empty"
msgstr "𐑞𐑦𐑕 𐑢𐑦𐑤 𐑚𐑰 𐑩𐑓𐑧𐑒𐑑𐑩𐑛, 𐑚𐑦𐑒𐑪𐑟 𐑦𐑑'𐑕 𐑧𐑥𐑐𐑑𐑦"

#, fuzzy
msgid "This will be affected"
msgstr "𐑞𐑦𐑕 𐑢𐑦𐑤 𐑚𐑰 𐑩𐑓𐑧𐑒𐑑𐑩𐑛"

#, fuzzy
#: src/test.c:177
msgid ""
"This will be affected both because it's fuzzy, and also because it's empty"
msgstr "𐑞𐑦𐑕 𐑢𐑦𐑤 𐑚𐑰 𐑩𐑓𐑧𐑒𐑑𐑩𐑛 𐑚𐑴𐑔 𐑚𐑦𐑒𐑪𐑟 𐑦𐑑'𐑕 𐑓𐑳𐑟𐑦, 𐑯 𐑷𐑤𐑕𐑴 𐑚𐑦𐑒𐑪𐑟 𐑦𐑑'𐑕 𐑧𐑥𐑐𐑑𐑦"

t/basic_-o/input-basic.po  view on Meta::CPAN

msgid ""
msgstr ""
"Project-Id-Version: Demo of a .po file\n"
"PO-Revision-Date: 1975-01-30 00:00 +0000\n"
"Last-Translator: Thomas Thurman <marnanel@cpan.org>\n"
"Language-Team: test <test@example.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

msgid "This will not be affected"
msgstr "because it has a translation"

msgid "This will be affected, because it's empty"
msgstr ""

#, fuzzy
msgid "This will be affected"
msgstr "because it's marked fuzzy"

#, fuzzy
#: src/test.c:177
msgid ""
"This will be affected both because it's fuzzy, and "
"also because it's empty"
msgstr ""

t/basic_-o/output-result.po  view on Meta::CPAN

msgid ""
msgstr ""
"Project-Id-Version: Demo of a .po file\n"
"PO-Revision-Date: 2010-05-21 05:04 -0400\n"
"Last-Translator: Thomas Thurman <marnanel@cpan.org>\n"
"Language-Team: Shavian <ubuntu-l10n-en-shaw@launchpad.net>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n!=1;\n"

msgid "This will not be affected"
msgstr "because it has a translation"

#, fuzzy
msgid "This will be affected, because it's empty"
msgstr "𐑞𐑦𐑕 𐑢𐑦𐑤 𐑚𐑰 𐑩𐑓𐑧𐑒𐑑𐑩𐑛, 𐑚𐑦𐑒𐑪𐑟 𐑦𐑑'𐑕 𐑧𐑥𐑐𐑑𐑦"

#, fuzzy
msgid "This will be affected"
msgstr "𐑞𐑦𐑕 𐑢𐑦𐑤 𐑚𐑰 𐑩𐑓𐑧𐑒𐑑𐑩𐑛"

#, fuzzy
#: src/test.c:177
msgid ""
"This will be affected both because it's fuzzy, and also because it's empty"
msgstr "𐑞𐑦𐑕 𐑢𐑦𐑤 𐑚𐑰 𐑩𐑓𐑧𐑒𐑑𐑩𐑛 𐑚𐑴𐑔 𐑚𐑦𐑒𐑪𐑟 𐑦𐑑'𐑕 𐑓𐑳𐑟𐑦, 𐑯 𐑷𐑤𐑕𐑴 𐑚𐑦𐑒𐑪𐑟 𐑦𐑑'𐑕 𐑧𐑥𐑐𐑑𐑦"



( run in 1.047 second using v1.01-cache-2.11-cpan-ceb78f64989 )