habluhablu 0.2.0 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +50 -29
- data/Gemfile.lock +55 -55
- data/README.md +52 -49
- data/exe/habluhablu +30 -7
- data/habluhablu.gemspec +1 -1
- data/lib/habluhablu.rb +52 -43
- data/lib/habluhablu/version.rb +5 -5
- data/lib/languages/languages.rb +142 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 622b7f9e835ed5d23abdd90daceb817bf116d62b2d591fbdc777b3b17144c660
|
4
|
+
data.tar.gz: c0568cd89ad6c6afac070cc44b592d858cf4797611b213465ffd2b42e6e42f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f42d1dbbab0fb5731853625e801443ad4e226dfa0c99a686a2b33a4b86aaf0724ad0159b4e3812e2f17ae0d2ab47d9f260223427a32486c869958467b6f97d2
|
7
|
+
data.tar.gz: ea018c7e91a3cd8033eb357a4303327fc45406822f0ba074d80fe15befb1e654bc3d8bbddbff6cd58bf25d5429f3cfdb93091b98b1ce97bed22e57f29102cbb0
|
data/.rubocop.yml
CHANGED
@@ -1,29 +1,50 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.7
|
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
|
-
Style/
|
28
|
-
Exclude:
|
29
|
-
- 'lib
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.7
|
3
|
+
SuggestExtensions: false
|
4
|
+
NewCops: enable
|
5
|
+
Exclude:
|
6
|
+
- 'spec/**/*'
|
7
|
+
|
8
|
+
Layout/EndOfLine:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Style/StringLiterals:
|
12
|
+
Enabled: true
|
13
|
+
EnforcedStyle: double_quotes
|
14
|
+
|
15
|
+
Style/StringLiteralsInInterpolation:
|
16
|
+
Enabled: true
|
17
|
+
EnforcedStyle: double_quotes
|
18
|
+
|
19
|
+
Layout/LineLength:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Metrics/MethodLength:
|
23
|
+
Exclude:
|
24
|
+
- 'lib/languages/languages.rb'
|
25
|
+
Max: 20
|
26
|
+
|
27
|
+
Style/IfUnlessModifier:
|
28
|
+
Exclude:
|
29
|
+
- 'lib/**/*'
|
30
|
+
|
31
|
+
Style/RaiseArgs:
|
32
|
+
Exclude:
|
33
|
+
- 'lib/habluhablu.rb'
|
34
|
+
|
35
|
+
Style/IfWithBooleanLiteralBranches:
|
36
|
+
Exclude:
|
37
|
+
- 'lib/languages/languages.rb'
|
38
|
+
|
39
|
+
Lint/ScriptPermission:
|
40
|
+
Exclude:
|
41
|
+
- 'bin/console'
|
42
|
+
|
43
|
+
Metrics/ClassLength:
|
44
|
+
Exclude:
|
45
|
+
- 'lib/languages/languages.rb'
|
46
|
+
|
47
|
+
Style/OptionalBooleanParameter:
|
48
|
+
Exclude:
|
49
|
+
- 'lib/languages/languages.rb'
|
50
|
+
- 'lib/habluhablu.rb'
|
data/Gemfile.lock
CHANGED
@@ -1,55 +1,55 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
habluhablu (0.2.
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
ast (2.4.2)
|
10
|
-
diff-lcs (1.4.4)
|
11
|
-
parallel (1.20.1)
|
12
|
-
parser (3.0.1.1)
|
13
|
-
ast (~> 2.4.1)
|
14
|
-
rainbow (3.0.0)
|
15
|
-
rake (13.0.3)
|
16
|
-
regexp_parser (2.1.1)
|
17
|
-
rexml (3.2.5)
|
18
|
-
rspec (3.10.0)
|
19
|
-
rspec-core (~> 3.10.0)
|
20
|
-
rspec-expectations (~> 3.10.0)
|
21
|
-
rspec-mocks (~> 3.10.0)
|
22
|
-
rspec-core (3.10.1)
|
23
|
-
rspec-support (~> 3.10.0)
|
24
|
-
rspec-expectations (3.10.1)
|
25
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
-
rspec-support (~> 3.10.0)
|
27
|
-
rspec-mocks (3.10.2)
|
28
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
-
rspec-support (~> 3.10.0)
|
30
|
-
rspec-support (3.10.2)
|
31
|
-
rubocop (1.14.0)
|
32
|
-
parallel (~> 1.10)
|
33
|
-
parser (>= 3.0.0.0)
|
34
|
-
rainbow (>= 2.2.2, < 4.0)
|
35
|
-
regexp_parser (>= 1.8, < 3.0)
|
36
|
-
rexml
|
37
|
-
rubocop-ast (>= 1.5.0, < 2.0)
|
38
|
-
ruby-progressbar (~> 1.7)
|
39
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
40
|
-
rubocop-ast (1.5.0)
|
41
|
-
parser (>= 3.0.1.1)
|
42
|
-
ruby-progressbar (1.11.0)
|
43
|
-
unicode-display_width (2.0.0)
|
44
|
-
|
45
|
-
PLATFORMS
|
46
|
-
x64-mingw32
|
47
|
-
|
48
|
-
DEPENDENCIES
|
49
|
-
habluhablu!
|
50
|
-
rake (~> 13.0)
|
51
|
-
rspec (~> 3.0)
|
52
|
-
rubocop (~> 1.7)
|
53
|
-
|
54
|
-
BUNDLED WITH
|
55
|
-
2.2.14
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
habluhablu (0.2.6)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.2)
|
10
|
+
diff-lcs (1.4.4)
|
11
|
+
parallel (1.20.1)
|
12
|
+
parser (3.0.1.1)
|
13
|
+
ast (~> 2.4.1)
|
14
|
+
rainbow (3.0.0)
|
15
|
+
rake (13.0.3)
|
16
|
+
regexp_parser (2.1.1)
|
17
|
+
rexml (3.2.5)
|
18
|
+
rspec (3.10.0)
|
19
|
+
rspec-core (~> 3.10.0)
|
20
|
+
rspec-expectations (~> 3.10.0)
|
21
|
+
rspec-mocks (~> 3.10.0)
|
22
|
+
rspec-core (3.10.1)
|
23
|
+
rspec-support (~> 3.10.0)
|
24
|
+
rspec-expectations (3.10.1)
|
25
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
+
rspec-support (~> 3.10.0)
|
27
|
+
rspec-mocks (3.10.2)
|
28
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
+
rspec-support (~> 3.10.0)
|
30
|
+
rspec-support (3.10.2)
|
31
|
+
rubocop (1.14.0)
|
32
|
+
parallel (~> 1.10)
|
33
|
+
parser (>= 3.0.0.0)
|
34
|
+
rainbow (>= 2.2.2, < 4.0)
|
35
|
+
regexp_parser (>= 1.8, < 3.0)
|
36
|
+
rexml
|
37
|
+
rubocop-ast (>= 1.5.0, < 2.0)
|
38
|
+
ruby-progressbar (~> 1.7)
|
39
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
40
|
+
rubocop-ast (1.5.0)
|
41
|
+
parser (>= 3.0.1.1)
|
42
|
+
ruby-progressbar (1.11.0)
|
43
|
+
unicode-display_width (2.0.0)
|
44
|
+
|
45
|
+
PLATFORMS
|
46
|
+
x64-mingw32
|
47
|
+
|
48
|
+
DEPENDENCIES
|
49
|
+
habluhablu!
|
50
|
+
rake (~> 13.0)
|
51
|
+
rspec (~> 3.0)
|
52
|
+
rubocop (~> 1.7)
|
53
|
+
|
54
|
+
BUNDLED WITH
|
55
|
+
2.2.14
|
data/README.md
CHANGED
@@ -1,49 +1,52 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
HabluHablu
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
## Supported languages
|
8
|
-
|
9
|
-
- English
|
10
|
-
- Polish
|
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
|
-
Generate
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/habluhablu.svg)](https://badge.fury.io/rb/habluhablu)
|
2
|
+
|
3
|
+
# HabluHablu
|
4
|
+
|
5
|
+
HabluHablu is a CLI written in Ruby, which allows you to generate language file with translations of the most useful phrases.
|
6
|
+
|
7
|
+
## Supported languages
|
8
|
+
|
9
|
+
- English
|
10
|
+
- Polish
|
11
|
+
- Arabic
|
12
|
+
- Spanish
|
13
|
+
- Hebrew
|
14
|
+
- If you want to help me out and add your language, don't hesitate!
|
15
|
+
- In progress...
|
16
|
+
|
17
|
+
### Installation
|
18
|
+
|
19
|
+
Add this line to your application's Gemfile:
|
20
|
+
|
21
|
+
Install [I18n gem](https://github.com/ruby-i18n/i18n)
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
gem 'habluhablu'
|
25
|
+
```
|
26
|
+
|
27
|
+
And then execute:
|
28
|
+
|
29
|
+
$ bundle install
|
30
|
+
|
31
|
+
Or install it yourself as:
|
32
|
+
|
33
|
+
$ gem install habluhablu
|
34
|
+
|
35
|
+
### Usage
|
36
|
+
|
37
|
+
Generate file for a specific language using `habluhablu -l <symbol>` command.
|
38
|
+
Generate an example language file using `habluhablu -l example` command (it generates empty file with keywords to fill).
|
39
|
+
Generate files for a more languages using `habluhablu -m <symbols>(separated by '_')` command.
|
40
|
+
[List of symbols](https://www.w3.org/International/O-charset-lang.html)
|
41
|
+
|
42
|
+
`habluhablu --help`
|
43
|
+
|
44
|
+
There is also an option to add countries flag using bootstrap (for more informations go to languages/Countries_Flags.md).
|
45
|
+
|
46
|
+
### Contributing
|
47
|
+
|
48
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/patrickgramatowski/habluhablu_gem.
|
49
|
+
|
50
|
+
### License
|
51
|
+
|
52
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/exe/habluhablu
CHANGED
@@ -8,14 +8,37 @@ args = {}
|
|
8
8
|
OptionParser.new do |opts|
|
9
9
|
opts.banner = "Generate files including basic phrases translations (using with I18n gem)"
|
10
10
|
|
11
|
-
opts.on("-l", "--language SYMBOL", "
|
11
|
+
opts.on("-l", "--language SYMBOL", "Symbol of the language you want to generate file for (en, es, ...).")
|
12
|
+
opts.on("-m", "--multi SYMBOLS", "Symbols of languages you want to generate files for (en es pl ar)")
|
13
|
+
opts.on("-k", "--keyword KEYWORD", "Add your own keyword for all language files (.yml).")
|
12
14
|
end.parse!(into: args)
|
13
15
|
|
14
|
-
|
15
|
-
if
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
if args[:multi].nil?
|
17
|
+
if args[:keyword].nil?
|
18
|
+
Habluhablu.hablu(args[:language])
|
19
|
+
if File.exist?("config/locales/#{args[:language]}.yml")
|
20
|
+
puts "..."
|
21
|
+
sleep 0.5
|
22
|
+
puts "Everything was generated successfully!"
|
23
|
+
else
|
24
|
+
puts "Something went wrong!"
|
25
|
+
end
|
26
|
+
else
|
27
|
+
Habluhablu.keyword(args[:keyword])
|
28
|
+
puts "..."
|
29
|
+
sleep 0.5
|
30
|
+
puts "Everything was added successfully!"
|
31
|
+
end
|
19
32
|
else
|
20
|
-
|
33
|
+
languages_array = args[:multi].split("_")
|
34
|
+
languages_array.each do |language|
|
35
|
+
Habluhablu.hablu(language)
|
36
|
+
end
|
37
|
+
if File.exist?("config/locales/#{languages_array.last}.yml")
|
38
|
+
puts "..."
|
39
|
+
sleep 0.5
|
40
|
+
puts "Everything was generated successfully!"
|
41
|
+
else
|
42
|
+
puts "Something went wrong!"
|
43
|
+
end
|
21
44
|
end
|
data/habluhablu.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["patrick.gramatowski@gmail.com"]
|
10
10
|
|
11
11
|
spec.summary = "HabluHablu makes it easier to use I18n."
|
12
|
-
spec.description = "
|
12
|
+
spec.description = "Generate language file (for I18n) with translations of the most useful phrases."
|
13
13
|
spec.homepage = "https://github.com/patrickgramatowski/habluhablu_gem"
|
14
14
|
spec.license = "MIT"
|
15
15
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
data/lib/habluhablu.rb
CHANGED
@@ -1,43 +1,52 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "habluhablu/version"
|
4
|
-
require_relative "languages/languages"
|
5
|
-
|
6
|
-
# Module HabluHablu
|
7
|
-
module Habluhablu
|
8
|
-
class Error < StandardError; end
|
9
|
-
|
10
|
-
# Cutom error with helpful message
|
11
|
-
class WrongSymbolError < Error
|
12
|
-
def initialize(language)
|
13
|
-
super("Wrong language symbol: #{language}!")
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
# Cutom error with helpful message
|
18
|
-
class GemI18nError < Error
|
19
|
-
def initialize
|
20
|
-
super("Install I18n gem!")
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.hablu(language)
|
25
|
-
# Check if I18n gem is included
|
26
|
-
# if not, raise the custom error
|
27
|
-
if Dir.exist?("./config/locales").eql?(false)
|
28
|
-
raise GemI18nError.new
|
29
|
-
end
|
30
|
-
|
31
|
-
# Check if specified symbol's language does exist
|
32
|
-
# if not, raise the custom error
|
33
|
-
language_class = Languages.new(language)
|
34
|
-
if language_class.include_language? == false
|
35
|
-
raise WrongSymbolError.new(language)
|
36
|
-
end
|
37
|
-
|
38
|
-
# Create a file of specified language
|
39
|
-
File.open("./config/locales/#{language}.yml", "w") do |f|
|
40
|
-
f.write(language_class.render)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "habluhablu/version"
|
4
|
+
require_relative "languages/languages"
|
5
|
+
|
6
|
+
# Module HabluHablu
|
7
|
+
module Habluhablu
|
8
|
+
class Error < StandardError; end
|
9
|
+
|
10
|
+
# Cutom error with helpful message
|
11
|
+
class WrongSymbolError < Error
|
12
|
+
def initialize(language)
|
13
|
+
super("Wrong language symbol: #{language}!")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
# Cutom error with helpful message
|
18
|
+
class GemI18nError < Error
|
19
|
+
def initialize
|
20
|
+
super("Install I18n gem!")
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.hablu(language)
|
25
|
+
# Check if I18n gem is included
|
26
|
+
# if not, raise the custom error
|
27
|
+
if Dir.exist?("./config/locales").eql?(false)
|
28
|
+
raise GemI18nError.new
|
29
|
+
end
|
30
|
+
|
31
|
+
# Check if specified symbol's language does exist
|
32
|
+
# if not, raise the custom error
|
33
|
+
language_class = Languages.new(language)
|
34
|
+
if language_class.include_language? == false
|
35
|
+
raise WrongSymbolError.new(language)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Create a file of specified language
|
39
|
+
File.open("./config/locales/#{language}.yml", "w") do |f|
|
40
|
+
f.write(language_class.render)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.keyword(keyword)
|
45
|
+
languages = Dir["config/locales/*.yml"]
|
46
|
+
languages.each do |file|
|
47
|
+
File.open(file.to_s, "a") do |f|
|
48
|
+
f.write(%(\n #{keyword}: => ""))
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/lib/habluhablu/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Habluhablu
|
4
|
-
VERSION = "0.2.
|
5
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Habluhablu
|
4
|
+
VERSION = "0.2.6"
|
5
|
+
end
|
data/lib/languages/languages.rb
CHANGED
@@ -4,6 +4,8 @@ require "yaml"
|
|
4
4
|
|
5
5
|
# Class comment
|
6
6
|
class Languages
|
7
|
+
attr_writer :languages
|
8
|
+
|
7
9
|
def initialize(language)
|
8
10
|
@language = language.to_sym
|
9
11
|
@languages = {
|
@@ -19,7 +21,8 @@ class Languages
|
|
19
21
|
"password" => "كلمه المرور",
|
20
22
|
"remember_me" => "تذكرنى",
|
21
23
|
"forgot_password" => "نسيت كلمة مرورك",
|
22
|
-
"do_not_have_account" => "ليس لديك حساب؟"
|
24
|
+
"do_not_have_account" => "ليس لديك حساب؟",
|
25
|
+
"lorem" => "غينيا واستمر العصبة ضرب قد. وباءت الأمريكي الأوربيين هو به،, هو العالم، الثقيلة بال. مع وايرلندا الأوروبيّون كان, قد بحق أسابيع العظمى واعتلاء. انه كل وإقامة المواد. "
|
23
26
|
}
|
24
27
|
},
|
25
28
|
en: {
|
@@ -34,11 +37,20 @@ class Languages
|
|
34
37
|
"password" => "Password",
|
35
38
|
"remember_me" => "Remember me",
|
36
39
|
"forgot_password" => "Forgot password?",
|
37
|
-
"do_not_have_account" => "Don't You have an account?"
|
40
|
+
"do_not_have_account" => "Don't You have an account?",
|
41
|
+
"lorem" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
38
42
|
}
|
39
43
|
},
|
40
44
|
es: {
|
41
45
|
"es" => {
|
46
|
+
"date" => {
|
47
|
+
"months_names" => %w[
|
48
|
+
Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Dieciembre
|
49
|
+
],
|
50
|
+
"abbr_month_names" => %w[
|
51
|
+
Ene Feb Mar Abr May Jun Jul Ago Set Oct Nov Dic
|
52
|
+
]
|
53
|
+
},
|
42
54
|
"welcome" => "Bienvenido",
|
43
55
|
"registration" => "Regístrate",
|
44
56
|
"log_in" => "Iniciar sesión",
|
@@ -49,11 +61,20 @@ class Languages
|
|
49
61
|
"password" => "Contraseña",
|
50
62
|
"remember_me" => "Recordarme",
|
51
63
|
"forgot_password" => "¿Has olvidado tu contraseña?",
|
52
|
-
"do_not_have_account" => "¿No tienes una cuenta?"
|
64
|
+
"do_not_have_account" => "¿No tienes una cuenta?",
|
65
|
+
"lorem" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
53
66
|
}
|
54
67
|
},
|
55
68
|
pl: {
|
56
69
|
"pl" => {
|
70
|
+
"date" => {
|
71
|
+
"months_names" => %w[
|
72
|
+
Styczeń Luty Marzec Kwiecień Maj Czerwiec Lipiec Sierpień Wrzesień Październik Listopad Grudzień
|
73
|
+
],
|
74
|
+
"abbr_month_names" => %w[
|
75
|
+
Sty Lut Mar Kwi Maj Cze Lip Sie Wrz Paź Lis Gru
|
76
|
+
]
|
77
|
+
},
|
57
78
|
"welcome" => "Witaj",
|
58
79
|
"registration" => "Zarejestruj się",
|
59
80
|
"log_in" => "Zaloguj się",
|
@@ -64,7 +85,8 @@ class Languages
|
|
64
85
|
"password" => "Hasło",
|
65
86
|
"remember_me" => "Zapamiętaj mnie!",
|
66
87
|
"forgot_password" => "Zapomniałeś hasła?",
|
67
|
-
"do_not_have_account" => "Nie masz jeszcze konta?"
|
88
|
+
"do_not_have_account" => "Nie masz jeszcze konta?",
|
89
|
+
"lorem" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
68
90
|
}
|
69
91
|
},
|
70
92
|
iw: {
|
@@ -80,7 +102,122 @@ class Languages
|
|
80
102
|
"password" => "סיסמה",
|
81
103
|
"remember_me" => "זכור אותי",
|
82
104
|
"forgot_password" => "שכחת את הסיסמא?",
|
83
|
-
"do_not_have_account" => "אין לך חשבון?"
|
105
|
+
"do_not_have_account" => "אין לך חשבון?",
|
106
|
+
"lorem" => "כדי יסוד מונחים מועמדים של, דת דפים מאמרשיחהצפה זאת. אתה דת שונה כלשהו, גם אחר ליום בשפות, או ניווט פולנית לחיבור ארץ. ויש בקלות ואמנות אירועים או, אל אינו כלכלה שתי."
|
107
|
+
}
|
108
|
+
},
|
109
|
+
fr: {
|
110
|
+
"fr" => {
|
111
|
+
"welcome" => "Bienvenu", # bienvenue female
|
112
|
+
"registration" => "Créer un compte",
|
113
|
+
"log_in" => "Connexion",
|
114
|
+
"log_in_with" => "Se connecter avec", # Example: 'with Facebook'
|
115
|
+
"log_out" => "Déconnexion",
|
116
|
+
"email_address" => "Adresse e-mail",
|
117
|
+
"username" => "Nom d'utilisateur",
|
118
|
+
"password" => "Mot de passe",
|
119
|
+
"remember_me" => "Mémoriser",
|
120
|
+
"forgot_password" => "Mot de passe oublié",
|
121
|
+
"do_not_have_account" => "Vous n'avez pas de compte?",
|
122
|
+
"lorem" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
123
|
+
}
|
124
|
+
},
|
125
|
+
it: {
|
126
|
+
"it" => {
|
127
|
+
"welcome" => "Benvenuto", # benvenuta female
|
128
|
+
"registration" => "Iscriviti",
|
129
|
+
"log_in" => "Accedi",
|
130
|
+
"log_in_with" => "Accedi con", # Example: 'with Facebook'
|
131
|
+
"log_out" => "Esci",
|
132
|
+
"email_address" => "Indirizzo e-mail",
|
133
|
+
"username" => "Nome utente",
|
134
|
+
"password" => "Password",
|
135
|
+
"remember_me" => "Ricordami",
|
136
|
+
"forgot_password" => "Ho dimenticato la password",
|
137
|
+
"do_not_have_account" => "Non possiedi un account?",
|
138
|
+
"lorem" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
139
|
+
}
|
140
|
+
},
|
141
|
+
de: {
|
142
|
+
"de" => {
|
143
|
+
"welcome" => "Willkommen",
|
144
|
+
"registration" => "Registrieren",
|
145
|
+
"log_in" => "Anmelden",
|
146
|
+
"log_in_with" => "Anmeldung mit", # Example: 'with Facebook'
|
147
|
+
"log_out" => "Abmelden",
|
148
|
+
"email_address" => "E-Mail-Adresse",
|
149
|
+
"username" => "Nutzername",
|
150
|
+
"password" => "Passwort",
|
151
|
+
"remember_me" => "Merken",
|
152
|
+
"forgot_password" => "Passwort vergessen?",
|
153
|
+
"do_not_have_account" => "Hast du noch kein FACEBOOK-Konto?", # Change facebook!
|
154
|
+
"lorem" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
155
|
+
}
|
156
|
+
},
|
157
|
+
pt: {
|
158
|
+
"pt" => {
|
159
|
+
"date" => {
|
160
|
+
"months_names" => %w[
|
161
|
+
],
|
162
|
+
"abbr_month_names" => %w[
|
163
|
+
]
|
164
|
+
},
|
165
|
+
"welcome" => "Bem-vindo",
|
166
|
+
"registration" => "Cadastrar",
|
167
|
+
"log_in" => "Entrar",
|
168
|
+
"log_in_with" => "Entrar com", # Example: 'with Facebook'
|
169
|
+
"log_out" => "Fazer logoff",
|
170
|
+
"email_address" => "Endereço de E-mail",
|
171
|
+
"username" => "Nome de usuário",
|
172
|
+
"password" => "Senha",
|
173
|
+
"remember_me" => "Lembrar de mim",
|
174
|
+
"forgot_password" => "Esqueceu Sua Senha",
|
175
|
+
"do_not_have_account" => "Não tem uma conta da?", # Example: da Facebook
|
176
|
+
"lorem" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
177
|
+
}
|
178
|
+
},
|
179
|
+
tr: {
|
180
|
+
"tr" => {
|
181
|
+
"date" => {
|
182
|
+
"months_names" => %w[
|
183
|
+
],
|
184
|
+
"abbr_month_names" => %w[
|
185
|
+
]
|
186
|
+
},
|
187
|
+
"welcome" => "Hoşgeldiniz",
|
188
|
+
"registration" => "Kayıt Ol",
|
189
|
+
"log_in" => "Giriş Yap",
|
190
|
+
"log_in_with" => "FACEBOOK ile giriş yap", # Example: 'with Facebook', reaplce facebook!
|
191
|
+
"log_out" => "Çıkış Yap",
|
192
|
+
"email_address" => "E-posta Adresi",
|
193
|
+
"username" => "Kullanıcı adı",
|
194
|
+
"password" => "Şifre",
|
195
|
+
"remember_me" => "Beni hatırla",
|
196
|
+
"forgot_password" => "Şifreni Mi Unuttun?",
|
197
|
+
"do_not_have_account" => "Bir FACEBOOK hesabın yok mu?", # Replace facebook!
|
198
|
+
"lorem" => "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
199
|
+
}
|
200
|
+
},
|
201
|
+
example: {
|
202
|
+
"example" => {
|
203
|
+
"date" => {
|
204
|
+
"months_names" => %w[
|
205
|
+
],
|
206
|
+
"abbr_month_names" => %w[
|
207
|
+
]
|
208
|
+
},
|
209
|
+
"welcome" => "",
|
210
|
+
"registration" => "",
|
211
|
+
"log_in" => "",
|
212
|
+
"log_in_with" => "", # Example: 'with Facebook'
|
213
|
+
"log_out" => "",
|
214
|
+
"email_address" => "",
|
215
|
+
"username" => "",
|
216
|
+
"password" => "",
|
217
|
+
"remember_me" => "",
|
218
|
+
"forgot_password" => "",
|
219
|
+
"do_not_have_account" => "",
|
220
|
+
"lorem" => ""
|
84
221
|
}
|
85
222
|
}
|
86
223
|
}
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: habluhablu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Gramatowski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
13
|
+
description: Generate language file (for I18n) with translations of the most useful
|
14
|
+
phrases.
|
15
15
|
email:
|
16
16
|
- patrick.gramatowski@gmail.com
|
17
17
|
executables:
|