forked from pejuko/i18n-translators-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi18n-translators-tools.gemspec
99 lines (83 loc) · 3.32 KB
/
i18n-translators-tools.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# -*- coding: utf-8 -*-
# vi: fenc=utf-8:expandtab:ts=2:sw=2:sts=2
#
# @author: Petr Kovar <[email protected]>
require 'rubygems'
require 'find'
spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.summary = "I18n translation utility which helps to manage files with locales."
s.homepage = "http://github.com/pejuko/i18n-translators-tools"
s.email = "[email protected]"
s.authors = ["Petr Kovar"]
s.name = 'i18n-translators-tools'
s.version = '0.2.4'
s.date = Time.now.strftime("%Y-%m-%d")
s.add_dependency('i18n', '>= 0.5.0')
s.add_dependency('ya2yaml')
s.require_path = 'lib'
s.files = ["bin/i18n-translate", "README.md", "i18n-translators-tools.gemspec", "Rakefile"]
s.files += Dir["lib/**/*.rb", "test/**/*.{rb,yml,po}"]
s.executables = ["i18n-translate"]
s.post_install_message = <<EOF
=============================================================================
I18N TRANSLATORS TOOLS
-----------------------------------------------------------------------------
Supported formats:
* yml
* rb
* ts
* po
* properties
Backends:
* 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)
Functions:
* merge
* convert
* translate (built-in simple console translator)
* statistics
Changelog:
v0.2.1
* fix: I18n::Backend::Translate now returns nil if translation is empty
string (this allows fallbacks)
v0.2.2
* 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
v0.2.3
* 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
v0.2.4
* enhanced support for java properties
* hard/soft merges. hard deletes deleted keys in target and soft set them to
obsolete
* 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 README.md and CHANGELOG.md
-----------------------------------------------------------------------------
http://github.com/pejuko/i18n-translators-tools
=============================================================================
EOF
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 README.md file and run i18n-translate
without parameters for more information.
EOF
end