Commit graph

23 commits

Author SHA1 Message Date
taca
4222db0d4e Update ruby-gettext to 3.0.0.
## <a id="3-0-0">3.0.0</a>: 2013-08-31

This is a new major version up release!

This release removes many deprecated APIs and improves internal
APIs. We want to keep backward compatibility as much as possible but
some existing codes may be broken by gettext gem API change. If your
code breaks by gettext gem 3.0.0, please report your problem. We will
fix the problem and release a new version.

### Improvements

  * Removed deprecated APIs
    * `require "gettext/parser/erb"`.
       Use `require "gettext/tools/parser/erb"` instead.
    * `require "gettext/parser/glade"`.
      Use `require "gettext/tools/parser/glade"` instead.
    * `require "gettext/parser/ruby"`.
      Use `require "gettext/tools/parser/ruby"` instead.
    * `require "gettext/utils"`.
      Use `require "gettext/tools"` instead.
    * `GetText.msgmerge`. Use `GetText::Tools::MsgMerge.run` instead.
    * `GetText.create_mofiles`. Use `GetText::Tools::Task` instead.
    * `GetText::PoParser`. Use `GetText::POParser` instead.
    * `require "gettext/tools/poparser"`.
       Use `require "gettext/po_parser"` instead.
    * `require "gettext/runtime/mofile"`.
       Use `require "gettext/mo"` instead.
    * `GetText::MoFile`. Use `GetText::MO` instead.
    * `GetText::Task`. Use `GetText::Tools::Task` instead.
    * `GetText.set_locale_all`. Use `GetText.set_locale` instead.
    * `GetText.setlocale`. Use `GetText.set_locale` instead.
    * `GetText::Tools::MsgMerge::PoData`. Use `GetText::POEntry` instead.
  * Removed Ruby 1.8 support.
  * Supported Rake 10.1.0.
  * Stopped to remove `TRANSLATORS:` tag because GNU gettext doesn't
    remove it.
  * Stopped to use `TRANSLATORS:` as comment tag. It is GNU gettext
    compatible behavior.
  * rxgettext: Added `--add-comments[=TAG]` option that exists in
    xgettext. [GitHub #16] [Reported by Ladislav Slezák]
  * Supported escaping tab character as `\t`.

### Fixes

  * po: Added a missing new line for multiple extracted comments.
    [GitHub #17] [Patch by Ladislav Slezák]
  * Fixed a bug that encoding may not be set.
  * Fixed a bug that `\n` is escaped as `\\n`.
    [GitHub #18] [Debian #716916] [Reported by Ladislav Slezák]
    [Reported by Francesco Poli]

### Thanks

  * Ladislav Slezák
  * Francesco Poli

## <a id="2-3-9">2.3.9</a>: 2013-04-21

This is a msgmerge updated release.

### Improvements

  * [tools] Used the more modern word "cannot" instead of "can
    not". [GitHub #15] [Patch by Benjamin Kerensa]
  * Cleared license descriptions. [Suggested by Jérémy Bobbio]

### Fixes

  * Avoided including native extentions in this gem for Windows users.

### Thanks

  * Benjamin Kerensa
  * Jérémy Bobbio
2013-09-15 09:59:08 +00:00
obache
e0ce95f581 Update ruby-gettext to 2.3.9.
## 2.3.9: 2013-04-21

This is a msgmerge updated release.

### Improvements

  * [tools] Used the more modern word "cannot" instead of "can
    not". [GitHub #15] [Patch by Benjamin Kerensa]
  * Cleared license descriptions. [Suggested by Jérémy Bobbio]

### Fixes

  * Avoided including native extentions in this gem for Windows users.

### Thanks

  * Benjamin Kerensa
  * Jérémy Bobbio

## 2.3.8: 2013-04-05

This is a msgmerge improved release.

### Improvements

  * Added licence information to the gemspec.
    [GitHub #13] [Patch by jordimassaguerpla]
  * Supported Ruby 2.0.0.
    [GitHub #14] [Reported by mtasaka]

### Fixes

  * [rxgettext] Fixed a bug that the comment for the previous message
    also exists in the current message.
    [Debian #684184] [Reported by Francesco Poli] [Patch by Jérémy Bobbio]

### Thanks

  * jordimassaguerpla
  * mtasaka
  * Francesco Poli
  * Jérémy Bobbio
2013-04-21 12:56:02 +00:00
obache
c2d68cf5c9 fix missing dependency on ruby-levenshtein 2013-01-26 10:55:43 +00:00
taca
74f5e351cb Update ruby-gettext to 2.3.7.
# News

## <a id="2-3-7">2.3.7</a>: 2013-01-11

This is a msgmerge improved release.

### Improvements

  * [msgmerge] Speeded up fuzzy matching.

### Fixes

  * [msgmerge] Fix the bug that msgmerge adds needless fuzzy flag from
    not fuzzy entries in merged PO.
  * [POEntry] Pretty formated all messages except msgstr.

## <a id="2-3-6">2.3.6</a>: 2012-12-19

This is a bug fix release.

### Fixes

  * [POEntry] Fixed the bug that obsolete comment mark (#~) is added
    to already comment.
  * [msgmerge] Fixed the bug that no separator (blank line) didn't exist
    between each obsolete entry.
  * [msgmerge] Fixed tne bug that obsolete entries in old PO file are
    added to new PO file. Any obsolete entries in old PO file aren't
    treated for merging.
2013-01-12 06:45:21 +00:00
taca
6abcba797a Update ruby-gettext to 2.3.5.
# News
## <a id="2-3-5">2.3.5</a>: 2012-12-11

This is a bug fix release.

### Fixes

  * [POParser] Fixed the class name for backward compatibility.

## <a id="2-3-4">2.3.4</a>: 2012-12-11

This is a many changes and new implements release.

### Improvements

  * [Merger] Implemented "fuzzy-match" with Levenshtein distance.
  * Added the class "PO" for management PO entries. Please use PO
    instead of PoData. (see details in
    http://rubydoc.info/gems/gettext/GetText/PO.html)
  * [POEntry (renamed from PoMessages)] Supported to specify msgstr.
  * [POEntry] Stored comments each type
    (translator\_comment, extracted\_comment, flag, previous).
    see
    http://www.gnu.org/software/gettext/manual/html_node/PO-Files.html
    for details of comment type.
  * [POEntry] Checked if specified type is valid in #type=.
  * [PoParser][MO] Concatenated msgctxt, msgid, msgid\_plural to
    "#{msgctxt}\004#{msgid}\000"{msgid\_plural}" by MO instead of
    PoParser. PoData and MO treat a concatenated string as msgid, but
    PO doesn't.
  * [PoParser] Parsed each type comment from whole comment.

### Changes

  * Rename some classes and methods.
    * PoMessage to PoEntry. This isn't "message" but "entry".
      (See http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files)
    * PoMessages#== to POEntry#mergeable?.
    * PoMessages#to\_po\_str to POEntry#to\_s.
    * PoMessages#sources(sources=) to POEntry#references(references=)
    * MoFile to MO. For backword compatible, MoFile can be used now.
    * PoParser to POParser. For backword compatible, PoParser can be used now.
  * Raised no error when POEntry doesn't have references.
    It is useful for no references in .PO file.

# News
## <a id="2-3-3">2.3.3</a>: 2012-10-18

It's a package fix and msginit improvement release.

### Improvements

  * [msginit] Supported plural forms for Bosnian, Catalan, Norwegian
    Bokmal and Chinese.

### Fixes

  * Fixed the bug that messages (i.e. the help message for rmsgfmt)
    aren't localized in each environment. However, some
    messages aren't tranlated or resolved fuzzy. Please
    help us to translate or resolve them.
    [Github #12][Reported by mtasaka]
  * Used String#% to localize some messages.

### Thanks

  * mtasaka

## <a id="2-3-2">2.3.2</a>: 2012-09-20

It's a bug fix release.

### Fixes

  * Fixed the bug that untranslated messages are included in a .mo file.
    [Github #11][Reported by Ramón Cahenzli]

### Thanks

  * Ramón Cahenzli
2012-12-16 16:20:59 +00:00
taca
0421ee35d3 Update ruby-gettext to 2.3.1.
## 2.3.1: 2012-09-13

It's a Bug and package fix release.
Then, it's also encoding support release, only if you use Ruby 1.9.

### Improvements

  * [xgettext] Added backword compatibility method
    (GetText::RGetText.run).
    [Suggested by Fotos Georgiadis]
  * [xgettext] Removed deprecated parse argument support.
  * [erb parer] Assumed the encoding in the magic comment of the
    input file as the encoding of it.
  * [ruby parser] Assumed the encoding in the magic comment of the
    input file as the encoding of it.
  * [xgettext] Added the "--output-encoding" option to set encoding of
    output pot file.
  * [xgettext] Used UTF-8 as the default encoding of output pot file.
  * [xgettext] Supported multiple encoding sources.

### Changes

  * [MoFile] Returned nil instead of "" as msgstr when its msgid isn't
    translated (when this msgstr is "").
  * [PoParser] Converted msgstr from "" to nil when parsing.

### Fixes

  * Added missing .yardopts file. [Reported by Takahiro Kambe]
  * [news] Fixed Eddie Lau name instead of github name.
  * [msginit] Added the "Plural-Forms:" entry to the header even if a
    pot file doesn't have it.
  * [msgmerge] Fixed the bug the new line between a header and
    contents doesn't exist.
  * [msginit] Fixed the bug that msgstr with msgid_plural aren't
    generated in output po file.
  * [xgettext] Supported class based xgettext parser add API.
    [GitHub #10] [Suggested by Michael Grosser]
  * [erb parer] Fixed erb parser bug with unicode msgid in Ruby 1.9
    ERB templates.
    [Github #9] [Patch by Fotos Georgiadis]
  * Added missing documents for GetText::Tools::XGetText.

### Thanks

  * Takahiro Kambe
  * Michael Grosser
  * Fotos Georgiadis
2012-09-14 16:02:44 +00:00
taca
a3083199cc Update HOMEPAGE and LICENSE. 2012-08-29 16:28:21 +00:00
taca
2bcc9cc069 Update ruby-gettext to 2.3.0.
# News
## 2.3.0: 2012-08-28

Various improvements, changes and fixes release.

### Improvements

  * Improved TextDomain#translate\_singluar\_message performance.
    [Base idea is provided by @angelf]
  * Added msginit command.
  * [xgettext] Added command line options for package name, version,
    copyright holder and msgid bugs address.[Github#8]
    [Reported by Francesco Poli (wintermute) and 375gnu, and patch by 375gnu]
  * [xgettext] Supported s\_ and ns\_ with parameter.
  * [poparser] Reported warnings when fuzzy message is used.
    [Reported by Michael Grosser]
  * Used %{...} to check the availability of String#% with hash and
    raise Error if this syntax isn't supported.
  * Searched mo files under LC_MESSAGES/ directory.
  * Updated documents for tools.

### Changes

  * Renamed the package name from "Ruby-GetText-Package" to "gettext".
  * Renamed RGetText to XGetText, RMsgMerge to MsgMerge, RMsgFmt to MsgFmt.
  * Renamed rgettext to rxgettext, rmsgmerge to msgmerge, rmsgfmt to msgfmt.
  * Defined tools(XGetText, MsgMerge, MsgFmt) as Class under GetText::Tools
    module.
  * Removed shortcuts for tools in GetText module.
    Please use GetText::Tools:XXX.run instead of GetText.xxx.
  * Changed API of tools.
    e.g.) Before: GetText.rsmgfmt(targetfile, output\_path)
          Now: GetText::Tools::MsgFmt.run(targetfile, "-o", output\_path)
  * [xgettext] Used relative path for source path.
    This path appears in generated pot file.
  * [xgettext] Returned the pot header instead of "" as the translation of
    "" msgid.
  * [poparser] Treated not translated msgid when parsing po file.
    A translation of no translated msgid is msgid itself even now.
  * [xgettext] Removed descriptions of ruby in information by "-v" option.

### Fixes

  * Included msgctxt when generating .po file. [Patch by 3dd13]
  * Fixed a typo in msgmerge. [Patch by Yves-Eric Martin]
  * [msgmerge] Followed PoParser API change.
  * [ruby-parser] Reseted the last comment when po message is stored.[Github#6]
    [Reported by 375gnu and Francesco Poli (wintermute), and Patch by 375gnu]
  * [ruby-parser] Processed RubyToken::TkDSTRING too.[Github#6]
    [Reported by 375gnu and Francesco Poli (wintermute), and Patch by 375gnu]
  * [msgmerge] Fixed not to add fuzzy to header message.
  * [msgmerge] Escaped backslash and "\n".

### Thanks

  * @angelf
  * Francesco Poli (wintermute)
  * 375gnu
  * Michael Grosser
  * 3dd13
  * Yves-Eric Martin
2012-08-29 16:24:18 +00:00
taca
8a4af971ef Update ruby-gettext o 2.2.1.
= Ruby-GetText-Package-2.2.1 (2012-05-20)
 * Supported non ASCII string in msgid. [GitHub#1]
   [Patch by Urban Hafner]
 * Stopped overriding String#% on Ruby 1.9.
 * Fixed a bug that "\" is too escaped.
 * Removed GetText.bindtext dependency from GetText::PoParser.
 * Ranamed GetText::MOFile to GetText::MoFile but GetText::MOFile
   is still available.

Thanks to:
 * Urban Hafner
2012-06-02 00:37:25 +00:00
taca
156f1843ea Update ruby-gettext package to 2.2.0.
Ruby 1.9 support release.

### Improvements

  * Supported ruby-1.9. [Patch by hallelujah]
  * Supported $SAFE=1. [Patch by bon]
  * Improved argument check. [Suggested by Morus Walter]
  * Supported ruby-1.8.6 again. [Bug#27447] [Reported by Mamoru Tasaka]

### Fixes

  * Fixed Ukrainan translation path. [Bug#28277] [Reported by Gunnar Wolf]
  * Fixed a bug that only the last path in GETTEXT_PATH environment
    variable is used. [Bug#28345] [Reported by Ivan Pirlik]
  * Fixed a bug that Ruby-GetText-Package modifies $LOAD_PATH. [Bug#28094]
    [Reported by Tatsuki Sugiura]
2012-03-12 15:41:37 +00:00
taca
38560438cc * Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk.
* Update HOMEPAGE.
* Add LICENSE.
* Ajust new ruby package's framework.
2010-09-10 05:41:27 +00:00
taca
58d5e88ab3 Remove an emacs's temporary file.
Bump PKGREVISION.
2010-02-02 02:18:38 +00:00
fhajny
d21b7326c9 Updated ruby-gettext to 2.1.0.
Too many changes to report here. As of 2.0.0, some functionality has been
split off into ruby-locale, and Rails related functionality is now in
ruby-gettext-activerecord and ruby-gettext-rails.
2009-12-07 12:09:20 +00:00
joerg
7fdde28ea5 Convert @exec/@unexec to @pkgdir or drop it. 2009-06-14 18:48:07 +00:00
joerg
bacea7cad5 Remove @dirrm entries from PLISTs 2009-06-14 17:48:39 +00:00
taca
8e8c259a92 Update ruby-gettext package to 1.93.0.
= Ruby-GetText-Package-1.93.0 (2008-09-14)
 * Bulgarian added.
 * Estonian updated.
 * French updated.
 * Japanese updated.
 * np_, npgettext support.
 * Fixed bugs.
   - detect the correct charset on POSIX OS.
   - updatepo task works again on Windows OS(with broken GNU msgmerge).
   - Remove BOM from po-files before GNU msgmerge is executed.
     (GNU msgmerge doesn't support BOM)
   - Work with xx(double x) library and the library which uses xx library
     such as rcov.
   - Fixed expire_fragment with rails < 2.1.

 (NOTE) Rails-2.2 has not been supported yet.

Thanks to:
  Translators:
    Vincent Isambart, Erkki Eilonen, Sava Chankov.

  Bug reports, suggestions and patches:
    Vladimir Dobriakov, Tatsuki Sugiura, Cesar Duque Calle,
    Remy-Christophe Schermesser, Donald Piret.
2008-09-15 18:09:29 +00:00
taca
c0b8b081f4 Update ruby-gettext package to 1.92.0.
= Ruby-GetText-Package-1.92.0 (2008-08-02)
 * Fixed a memory leak(again)
 * Fixed bugs.
 * Improve to support mo-files.
    * Support revision 1 of mo-file format.
    * Freeze msgstrs.
 * msgctxt - pgettext(msgctxt, msgid) support
    (eg)
    p_("File", "Open")  #=> "Open" is shown in English.
 * Update translations
   * Catalan, Chinese(Simplified), Chinese(Traditional), (English), Esperanto, German,
     Greek, Hungarian, Latvian, Japanese, Norwegian, Portuguese(pt_BR), Russian, Serbian,
     Spanish, Ukrainian, Vietnamese,
 * Rails Support
    * Support rubyonrails-2.1.0 (2.0.0 or later).
       * Add new validations for activerecord-2.1.0.
         (:greater_than, :greater_than_or_equal_to, :equal_to,
          :less_than, :less_than_or_equal_to,:odd, :even)
       * validates_(format|inclusion)_of accepts %{val} as the value
          (eg)
           validates_inclusion_of :name, :in => %w(a, b), :message => N_("%{fn} can't be %{val}")
       * Work Fragment caching on rails-2.1.0.
       * Support ActiveRecord::Base.abstract_class.
       * Work ActiveRecord::Errors#[]
       * Work render_partial.

Thanks to:
  Translators:
    Slobodan Paunovic, Yuri Kozlov, Patrick Lenz, Malte Milatz, Ngoc DAO Thanh, David Espada,
    Antonio S. de A. Terceiro, David Espada, Runar Ingebrigtsen, Tamas Tompa, Yang Bob, damphyr,
    Ramon Salvado, Alex Rootoff, Aivars Akots

  Bug reports, suggestions and patches:
    Hans de Graaff, Tatsuki Sugiura, Andreas Neuhaus, Loiseleur Michel

= Ruby-GetText-Package-1.91.0 (2008-05-11)
 * Works again on Win32 + JRuby-1.1.1
 * Fixed memory leaks.
 * Fixed bugs.
 * Speed up.
 * Support Serbian(sr)
 * Rails Support
    * rubyonrails-1.2.x isn't supported(2.0.0 or later are supported).
    * Localize ActionView::Helpers::FormBuilder#label.
      e.g.)
       <% form_for(@article) do |f| %>
           <p><%= f.label :lastupdate %></p>
       <% end %>
        => msgid "Article|Lastupdate" is used as the label string.

Thanks to:
  Translators:
    Slobodan Paunovic
  Bug reports, suggestions and patches:
    Paul Clegg, Locomotyphus, Simone Carletti, Dao Ngoc, Karl Palmskog,
    Tatsuki Sugiura, Bernd Ahlers, craccho.
2008-09-15 08:52:44 +00:00
obache
b6ae3ea59f Drop maintainership.
This package was switched from stable to development version for RoR 2.0.
I'm not in the area.
2008-04-10 07:19:41 +00:00
jlam
e41420fdde Update ruby-gettext to version 1.90.0. Changes from 1.10.0 include:
+ Install as a Ruby gem.

* Support Ukrainian(ua), Hungarian(hu)
* JRuby supported.
* Become a pure ruby library (Remove .so extention).
* Locale modules separate from lib/gettext/ to lib/locale/.
* Locale modules are refactored. System locales become read only.
* Fix bugs.
* Enhance to support Ruby on Rails.
  * error_messages_for can accept custom error dialog messages.
  * Add GetText::Rails.available_locales, .normalized_locale
    and fragment_cache_key/expire_fragment reimplement to use these methods
    to restrict cached locale files.
2008-04-04 15:17:08 +00:00
obache
cf0999e894 DESTDIR ready. 2008-02-12 03:01:03 +00:00
obache
e68d7ee2be Update ruby-gettext to 1.10.0.
* Support Vietnamese(vi), Bosnian(bs), Croatian(hr), Norwegian(nb)
* Cache messages. Both _() and n_() become 1.3-1.8 times faster than older version.
* Add GetText.ns_()
* Fix bugs.
* Enhance to support Ruby on Rails.
* Work with script/generate scaffold_resource.
* error_messages_for accepts plural models.
* Support Action/Fragment caching.
2007-08-06 15:42:30 +00:00
obache
3889d68a00 Fix PKGNAME, remove redundant 'ruby'. 2007-05-26 12:10:25 +00:00
obache
3b12e633e2 Import ruby-gettext version 1.9.0.
Ruby-GetText-Package is a localization(L10n) library and tools which modeled
after GNU gettext package.

It converts the messages to localized messages properly using client-side locale
information.
2007-05-26 06:21:30 +00:00