Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
100 lines (83 sloc) 3.32 KB
# -*- coding: utf-8 -*-
# vi: fenc=utf-8:expandtab:ts=2:sw=2:sts=2
# @author: Petr Kovar <>
require 'rubygems'
require 'find'
spec = do |s|
s.platform = Gem::Platform::RUBY
s.summary = "I18n translation utility which helps to manage files with locales."
s.homepage = "" = ""
s.authors = ["Petr Kovar"] = 'i18n-translators-tools'
s.version = '0.2.4' ="%Y-%m-%d")
s.add_dependency('i18n', '>= 0.5.0')
s.require_path = 'lib'
s.files = ["bin/i18n-translate", "", "i18n-translators-tools.gemspec", "Rakefile"]
s.files += Dir["lib/**/*.rb", "test/**/*.{rb,yml,po}"]
s.executables = ["i18n-translate"]
s.post_install_message = <<EOF
Supported formats:
* yml
* rb
* ts
* po
* properties
* Extended format. i18n-translators-tools brings extended format
I18n::Backend::Simple.send(:include, I18n::Backend::Translate)
* Gettext po
I18n::Backend::Simple.send(:include, I18n::Backend::PO)
* QT Linguist TS
I18n::Backend::Simple.send(:include, I18n::Backend::TS)
* Java Properties files
I18n::Backend::Simple.send(:include, I18n::Backend::Properties)
* merge
* convert
* translate (built-in simple console translator)
* statistics
* fix: I18n::Backend::Translate now returns nil if translation is empty
string (this allows fallbacks)
* fix: don't merge if default file doesn't exist (locale stays untouched)
* fix: for default format autodetection works again
* merge can be more verbose
* fix: hash_to_keys can work with enhanced format => default can be in
enchanced format
* default file can be now in enhanced format. if translation field is missing
* i18n-translate <source file> <target file>
automaticlay perform convert action from one file to another
* enhanced support for java properties
* hard/soft merges. hard deletes deleted keys in target and soft set them to
* processors now generate keys list from provided data and not from @tr.default
* flag obsolete added
* delete function
* i18n-0.5.0 compatibility (for older i18n user v0.2.3)
For more information read and
s.description = <<EOF
This package brings you useful utility and library which can help you to handle
locale files and translations in your Ruby projects.
It is build upon i18n library and extends it's simple format so you can simply
track field changes or keep translator's notes. Conversion back to simple format
is possible and as simple as call 'i18n-translate strip'. Offers also built-in
simple console editor. Supported formats are YAML, Ruby, Gettext po,
QT Linguist TS and Java Properties. Read file and run i18n-translate
without parameters for more information.
Jump to Line
Something went wrong with that request. Please try again.