habluhablu 0.2.1 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -2
- data/Gemfile.lock +1 -1
- data/README.md +5 -3
- 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 +108 -16
- 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: 037df725642b4986782de3965e626feb2b59a6b4baddf6bf4d6ddfa1ebe0830f
|
4
|
+
data.tar.gz: acbd741f6a3270ad5ad73ebc0ab33ab4460dd556a4670b8fbb86156cf31a75a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faf759d481c2b1acb7750ffd6c0375d8d79cb33903a757a052d0d14eb0653a874bbcb00d5d26012fe0aecfd8f3ccfe08829e5f38128bca4125e21659f16e1a01
|
7
|
+
data.tar.gz: 48167c3fbd17c81caf42fd9d0f57fb78849a3e8797ed7fa40096f794ded56f68dd0155568c8a5717354f950e1718dc65da91c65589ad988206d8bae445a25717
|
data/.rubocop.yml
CHANGED
@@ -17,7 +17,7 @@ Style/StringLiteralsInInterpolation:
|
|
17
17
|
EnforcedStyle: double_quotes
|
18
18
|
|
19
19
|
Layout/LineLength:
|
20
|
-
|
20
|
+
Enabled: false
|
21
21
|
|
22
22
|
Metrics/MethodLength:
|
23
23
|
Exclude:
|
@@ -42,4 +42,9 @@ Lint/ScriptPermission:
|
|
42
42
|
|
43
43
|
Metrics/ClassLength:
|
44
44
|
Exclude:
|
45
|
-
- 'lib/languages/languages.rb'
|
45
|
+
- 'lib/languages/languages.rb'
|
46
|
+
|
47
|
+
Style/OptionalBooleanParameter:
|
48
|
+
Exclude:
|
49
|
+
- 'lib/languages/languages.rb'
|
50
|
+
- 'lib/habluhablu.rb'
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -34,9 +34,11 @@ Or install it yourself as:
|
|
34
34
|
|
35
35
|
### Usage
|
36
36
|
|
37
|
-
Generate file for a specific language using `habluhablu -l <symbol>` command.
|
38
|
-
|
39
|
-
|
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
|
+
|
40
42
|
`habluhablu --help`
|
41
43
|
|
42
44
|
There is also an option to add countries flag using bootstrap (for more informations go to languages/Countries_Flags.md).
|
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.7"
|
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 = {
|
@@ -12,14 +14,15 @@ class Languages
|
|
12
14
|
"welcome" => "مرحبا",
|
13
15
|
"registration" => "عنوان البريد الإلكتروني",
|
14
16
|
"log_in" => "تسجيل الدخول",
|
15
|
-
"log_in_with" => "سجّل الدخول باستخدام حساب", # Example: 'with Facebook'
|
17
|
+
"log_in_with" => "#{replace} سجّل الدخول باستخدام حساب", # Example: 'with Facebook'
|
16
18
|
"log_out" => "تسجيل الخروج",
|
17
19
|
"email_address" => "عنوان البريد الإلكتروني",
|
18
20
|
"username" => "اسم االمستخدم",
|
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: {
|
@@ -27,44 +30,63 @@ class Languages
|
|
27
30
|
"welcome" => "Welcome",
|
28
31
|
"registration" => "Registartion",
|
29
32
|
"log_in" => "Log in",
|
30
|
-
"log_in_with" => "Log in with", # Example: 'with Facebook'
|
33
|
+
"log_in_with" => "Log in with #{replace}", # Example: 'with Facebook'
|
31
34
|
"log_out" => "Log out",
|
32
35
|
"email_address" => "Email address",
|
33
36
|
"username" => "Username",
|
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",
|
45
|
-
"log_in_with" => "Iniciar sesión con", # Example: 'with Facebook'
|
57
|
+
"log_in_with" => "Iniciar sesión con #{replace}", # Example: 'with Facebook'
|
46
58
|
"log_out" => "Cerrar la sesión",
|
47
59
|
"email_address" => "Dirección de correo electrónico",
|
48
60
|
"username" => "Nombre de usuario",
|
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ę",
|
60
|
-
"log_in_with" => "Zaloguj się za pomocą", # Example: 'with Facebook'
|
81
|
+
"log_in_with" => "Zaloguj się za pomocą #{replace}", # Example: 'with Facebook'
|
61
82
|
"log_out" => "Wyolguj się",
|
62
83
|
"email_address" => "Adres email",
|
63
84
|
"username" => "Nazwa użytkownika",
|
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: {
|
@@ -73,14 +95,15 @@ class Languages
|
|
73
95
|
"welcome" => "שלום",
|
74
96
|
"registration" => "הירשם",
|
75
97
|
"log_in" => "להתחבר",
|
76
|
-
"log_in_with" => "התחבר ל", # Example: 'with Facebook'
|
98
|
+
"log_in_with" => "#{replace}התחבר ל", # Example: 'with Facebook'
|
77
99
|
"log_out" => "להתנתק",
|
78
100
|
"email_address" => "אימייל",
|
79
101
|
"username" => "שם משתמש",
|
80
102
|
"password" => "סיסמה",
|
81
103
|
"remember_me" => "זכור אותי",
|
82
104
|
"forgot_password" => "שכחת את הסיסמא?",
|
83
|
-
"do_not_have_account" => "אין לך חשבון?"
|
105
|
+
"do_not_have_account" => "אין לך חשבון?",
|
106
|
+
"lorem" => "כדי יסוד מונחים מועמדים של, דת דפים מאמרשיחהצפה זאת. אתה דת שונה כלשהו, גם אחר ליום בשפות, או ניווט פולנית לחיבור ארץ. ויש בקלות ואמנות אירועים או, אל אינו כלכלה שתי."
|
84
107
|
}
|
85
108
|
},
|
86
109
|
fr: {
|
@@ -88,14 +111,15 @@ class Languages
|
|
88
111
|
"welcome" => "Bienvenu", # bienvenue female
|
89
112
|
"registration" => "Créer un compte",
|
90
113
|
"log_in" => "Connexion",
|
91
|
-
"log_in_with" => "Se connecter avec", # Example: 'with Facebook'
|
114
|
+
"log_in_with" => "Se connecter avec #{replace}", # Example: 'with Facebook'
|
92
115
|
"log_out" => "Déconnexion",
|
93
116
|
"email_address" => "Adresse e-mail",
|
94
117
|
"username" => "Nom d'utilisateur",
|
95
118
|
"password" => "Mot de passe",
|
96
119
|
"remember_me" => "Mémoriser",
|
97
120
|
"forgot_password" => "Mot de passe oublié",
|
98
|
-
"do_not_have_account" => "Vous n'avez pas de compte?"
|
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."
|
99
123
|
}
|
100
124
|
},
|
101
125
|
it: {
|
@@ -103,14 +127,15 @@ class Languages
|
|
103
127
|
"welcome" => "Benvenuto", # benvenuta female
|
104
128
|
"registration" => "Iscriviti",
|
105
129
|
"log_in" => "Accedi",
|
106
|
-
"log_in_with" => "Accedi con", # Example: 'with Facebook'
|
130
|
+
"log_in_with" => "Accedi con #{replace}", # Example: 'with Facebook'
|
107
131
|
"log_out" => "Esci",
|
108
132
|
"email_address" => "Indirizzo e-mail",
|
109
133
|
"username" => "Nome utente",
|
110
134
|
"password" => "Password",
|
111
135
|
"remember_me" => "Ricordami",
|
112
136
|
"forgot_password" => "Ho dimenticato la password",
|
113
|
-
"do_not_have_account" => "Non possiedi un account?"
|
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."
|
114
139
|
}
|
115
140
|
},
|
116
141
|
de: {
|
@@ -118,14 +143,81 @@ class Languages
|
|
118
143
|
"welcome" => "Willkommen",
|
119
144
|
"registration" => "Registrieren",
|
120
145
|
"log_in" => "Anmelden",
|
121
|
-
"log_in_with" => "Anmeldung mit", # Example: 'with Facebook'
|
146
|
+
"log_in_with" => "Anmeldung mit #{replace}", # Example: 'with Facebook'
|
122
147
|
"log_out" => "Abmelden",
|
123
148
|
"email_address" => "E-Mail-Adresse",
|
124
149
|
"username" => "Nutzername",
|
125
150
|
"password" => "Passwort",
|
126
151
|
"remember_me" => "Merken",
|
127
152
|
"forgot_password" => "Passwort vergessen?",
|
128
|
-
"do_not_have_account" => "Hast du noch kein FACEBOOK-Konto?" # Change facebook!
|
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 #{replace}", # 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" => "#{replace} ile giriş yap", # Example: 'with 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 #{tr_register} hesabın yok mu?", # Example: 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" => ""
|
129
221
|
}
|
130
222
|
}
|
131
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.7
|
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:
|