Permalink
Browse files

[Changes for 0.77 - 2008-12-29]

 * Locale::Maketext::Extract::Plugin::FormFu
    - Rewrote the FormFu plugin completely to use the YAML.pm parser.
      Previously, this plugin was completely broken.
    - Resolves bugs:
       - http://rt.cpan.org/Ticket/Display.html?id=42000
         # Locale::Maketext::Extract::Plugin::FormFu broken
       - http://rt.cpan.org/Ticket/Display.html?id=39292
         # Parsing formfu config

 * Locale::Maketext::Extract::Plugin::YAML
    - Improved the accuracy of the line numbers.
    - Added documentation and tests for using folded and block scalars.

 * Locale::Maketext::Extract::Plugin::PPI
    - Added a PPI based Perl plugin - more accurate than the Perl plugin,
      but much slower.
    - Not enabled by default
    - moved the Perl extraction tests into t/51-perlextract.t
    - Resolves bug: http://rt.cpan.org/Ticket/Display.html?id=14701
      # xgettext doesn't handle interpolating functions

 Also, corrected the POD to use the correct names for the plugins.
  • Loading branch information...
1 parent b98cd6c commit 175685b0a813c9980f4b73ef1eb1b3af2098c032 @clintongormley clintongormley committed Dec 30, 2008
View
27 Changes
@@ -1,3 +1,28 @@
+[Changes for 0.77 - 2008-12-29]
+
+ * Locale::Maketext::Extract::Plugin::FormFu
+ - Rewrote the FormFu plugin completely to use the YAML.pm parser.
+ Previously, this plugin was completely broken.
+ - Resolves bugs:
+ - http://rt.cpan.org/Ticket/Display.html?id=42000
+ # Locale::Maketext::Extract::Plugin::FormFu broken
+ - http://rt.cpan.org/Ticket/Display.html?id=39292
+ # Parsing formfu config
+
+ * Locale::Maketext::Extract::Plugin::YAML
+ - Improved the accuracy of the line numbers.
+ - Added documentation and tests for using folded and block scalars.
+
+ * Locale::Maketext::Extract::Plugin::PPI
+ - Added a PPI based Perl plugin - more accurate than the Perl plugin,
+ but much slower.
+ - Not enabled by default
+ - moved the Perl extraction tests into t/51-perlextract.t
+ - Resolves bug: http://rt.cpan.org/Ticket/Display.html?id=14701
+ # xgettext doesn't handle interpolating functions
+
+ Also, corrected the POD to use the correct names for the plugins.
+
[Changes for 0.76 - 2008-12-14]
* Locale::Maketext::Extract / Locale::Maketext::Lexicon::Gettext
@@ -10,7 +35,7 @@
# relative paths to lang files fail
- added tests to prove it
- * Locale::Maketext::Extract::Plugin::TT
+ * Locale::Maketext::Extract::Plugin::TT2
- changed the line string to contain only the start line, and not the range
as this was not consistent with the gettext spec
View
@@ -22,6 +22,7 @@ lib/Locale/Maketext/Extract/Plugin/FormFu.pm
lib/Locale/Maketext/Extract/Plugin/Generic.pm
lib/Locale/Maketext/Extract/Plugin/Mason.pm
lib/Locale/Maketext/Extract/Plugin/Perl.pm
+lib/Locale/Maketext/Extract/Plugin/PPI.pm
lib/Locale/Maketext/Extract/Plugin/TextTemplate.pm
lib/Locale/Maketext/Extract/Plugin/TT2.pm
lib/Locale/Maketext/Extract/Plugin/YAML.pm
@@ -43,6 +44,7 @@ t/2-lmg.t
t/3-big-endian.t
t/4-encodings.t
t/5-extract.t
+t/51-perlextract.t
t/55-runextract.t
t/6-gettext.t
t/7-roundtrip.t
View
@@ -7,3 +7,4 @@
blib
pm_to_blib
^Makefile$
+.project
View
@@ -18,11 +18,12 @@ no_index:
recommends:
HTML::Parser: 3.56
Lingua::EN::Sentence: 0.25
+ PPI: 1.203
Template: 2.20
Template::Constants: 2.75
YAML: 0.66
YAML::Loader: 0.66
requires:
Locale::Maketext: 0.01
perl: 5.005
-version: 0.76
+version: 0.77
View
@@ -3,24 +3,26 @@
use 5.005;
use inc::Module::Install;
-author 'Audrey Tang <cpan@audreyt.org>';
-abstract 'Use other catalog formats in Maketext';
-name 'Locale-Maketext-Lexicon';
-license 'MIT';
-perl_version '5.005';
-all_from 'lib/Locale/Maketext/Lexicon.pm';
-install_script 'script/xgettext.pl';
-requires 'Locale::Maketext' => '0.01';
-recommends 'Template' => '2.20';
-recommends 'Template::Constants' => '2.75';
-recommends 'YAML' => '0.66';
-recommends 'YAML::Loader' => '0.66';
-recommends 'HTML::Parser' => '3.56';
-recommends 'Lingua::EN::Sentence' => '0.25';
-test_requires 'Test::More' => '0';
+author 'Audrey Tang <cpan@audreyt.org>';
+abstract 'Use other catalog formats in Maketext';
+name 'Locale-Maketext-Lexicon';
+license 'MIT';
+perl_version '5.005';
+all_from 'lib/Locale/Maketext/Lexicon.pm';
+install_script 'script/xgettext.pl';
+requires 'Locale::Maketext' => '0.01';
+recommends 'Template' => '2.20';
+recommends 'Template::Constants' => '2.75';
+recommends 'YAML' => '0.66';
+recommends 'YAML::Loader' => '0.66';
+recommends 'HTML::Parser' => '3.56';
+recommends 'Lingua::EN::Sentence' => '0.25';
+recommends 'PPI' => '1.203';
+
+test_requires 'Test::More' => '0';
if ( $^O eq 'MSWin32' ) {
- recommends 'Win32::Console' => '0.09';
+ recommends 'Win32::Console' => '0.09';
}
-include_deps 'Test::More';
+include_deps 'Test::More';
WriteAll;
@@ -1,5 +1,5 @@
package Locale::Maketext::Extract;
-$Locale::Maketext::Extract::VERSION = '0.34';
+$Locale::Maketext::Extract::VERSION = '0.35';
use strict;
use Locale::Maketext::Lexicon();
@@ -80,6 +80,10 @@ Following formats of input files are supported:
Valid localization function names are: C<translate>, C<maketext>,
C<gettext>, C<loc>, C<x>, C<_> and C<__>.
+For a slightly more accurate, but much slower Perl parser, you can use the PPI
+plugin. This does not have a short name (like C<perl>), but must be specified
+in full.
+
=item HTML::Mason (plugin: mason)
Strings inside C<E<lt>&|/lE<gt>I<...>E<lt>/&E<gt>> and
@@ -195,23 +199,27 @@ plugins, and overrides the file types specified in each plugin
=over 4
-=item C<perl> : L<Locale::Maketext::Plugin::Perl>
+=item C<perl> : L<Locale::Maketext::Extract::Plugin::Perl>
+
+For a slightly more accurate but much slower Perl parser, you can use
+the PPI plugin. This does not have a short name, but must be specified in
+full, ie: L<Locale::Maketext::Extract::Plugin::PPI>
-=item C<tt2> : L<Locale::Maketext::Plugin::TT2>
+=item C<tt2> : L<Locale::Maketext::Extract::Plugin::TT2>
-=item C<yaml> : L<Locale::Maketext::Plugin::YAML>
+=item C<yaml> : L<Locale::Maketext::Extract::Plugin::YAML>
-=item C<formfu> : L<Locale::Maketext::Plugin::FormFu>
+=item C<formfu> : L<Locale::Maketext::Extract::Plugin::FormFu>
-=item C<mason> : L<Locale::Maketext::Plugin::Mason>
+=item C<mason> : L<Locale::Maketext::Extract::Plugin::Mason>
-=item C<text> : L<Locale::Maketext::Plugin::TextTemplate>
+=item C<text> : L<Locale::Maketext::Extract::Plugin::TextTemplate>
-=item C<generic> : L<Locale::Maketext::Plugin::Generic>
+=item C<generic> : L<Locale::Maketext::Extract::Plugin::Generic>
=back
-Also, see L<Locale::Maketext::Plugin::Base> for details of how to
+Also, see L<Locale::Maketext::Extract::Plugin::Base> for details of how to
write your own plugin.
=head2 Warnings
@@ -227,19 +227,21 @@ systems and perl source files.
=item L<Locale::Maketext::Lexicon>
-=item L<Locale::Maketext::Plugin::Perl>
+=item L<Locale::Maketext::Extract::Plugin::Perl>
-=item L<Locale::Maketext::Plugin::TT2>
+=item L<Locale::Maketext::Extract::Plugin::PPI>
-=item L<Locale::Maketext::Plugin::YAML>
+=item L<Locale::Maketext::Extract::Plugin::TT2>
-=item L<Locale::Maketext::Plugin::FormFu>
+=item L<Locale::Maketext::Extract::Plugin::YAML>
-=item L<Locale::Maketext::Plugin::Mason>
+=item L<Locale::Maketext::Extract::Plugin::FormFu>
-=item L<Locale::Maketext::Plugin::TextTemplate>
+=item L<Locale::Maketext::Extract::Plugin::Mason>
-=item L<Locale::Maketext::Plugin::Generic>
+=item L<Locale::Maketext::Extract::Plugin::TextTemplate>
+
+=item L<Locale::Maketext::Extract::Plugin::Generic>
=back
Oops, something went wrong.

0 comments on commit 175685b

Please sign in to comment.