locomotivecms_builder 1.0.0.alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +31 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +68 -0
- data/Rakefile +47 -0
- data/TODO +57 -0
- data/bin/builder +9 -0
- data/generators/blank/Gemfile.tt +20 -0
- data/generators/blank/app/content_types/.empty_directory +1 -0
- data/generators/blank/app/views/pages/404.liquid +11 -0
- data/generators/blank/app/views/pages/index.liquid +19 -0
- data/generators/blank/app/views/snippets/.empty_directory +1 -0
- data/generators/blank/config/deploy.yml +12 -0
- data/generators/blank/config/site.yml.tt +16 -0
- data/generators/blank/config/translations.yml +8 -0
- data/generators/blank/config.ru +3 -0
- data/generators/blank/data/.empty_directory +1 -0
- data/generators/blank/public/fonts/.empty_directory +1 -0
- data/generators/blank/public/images/.empty_directory +1 -0
- data/generators/blank/public/javascripts/.empty_directory +1 -0
- data/generators/blank/public/samples/.empty_directory +1 -0
- data/generators/blank/public/stylesheets/.empty_directory +1 -0
- data/generators/bootstrap/Gemfile.tt +20 -0
- data/generators/bootstrap/app/content_types/.empty_directory +1 -0
- data/generators/bootstrap/app/views/pages/404.liquid +13 -0
- data/generators/bootstrap/app/views/pages/404.liquid.haml +10 -0
- data/generators/bootstrap/app/views/pages/index.liquid +85 -0
- data/generators/bootstrap/app/views/pages/index.liquid.haml +72 -0
- data/generators/bootstrap/app/views/snippets/footer.liquid +3 -0
- data/generators/bootstrap/app/views/snippets/footer.liquid.haml +2 -0
- data/generators/bootstrap/config/deploy.yml +12 -0
- data/generators/bootstrap/config/site.yml.tt +16 -0
- data/generators/bootstrap/config/translations.yml +8 -0
- data/generators/bootstrap/config.ru +3 -0
- data/generators/bootstrap/data/.empty_directory +1 -0
- data/generators/bootstrap/public/fonts/FontAwesome.otf +0 -0
- data/generators/bootstrap/public/fonts/font-awesome-ie7.min.css +23 -0
- data/generators/bootstrap/public/fonts/font-awesome.css +469 -0
- data/generators/bootstrap/public/fonts/font-awesome.min.css +34 -0
- data/generators/bootstrap/public/fonts/fontawesome-webfont.eot +0 -0
- data/generators/bootstrap/public/fonts/fontawesome-webfont.ttf +0 -0
- data/generators/bootstrap/public/fonts/fontawesome-webfont.woff +0 -0
- data/generators/bootstrap/public/javascripts/bootstrap.js +2159 -0
- data/generators/bootstrap/public/javascripts/bootstrap.min.js +6 -0
- data/generators/bootstrap/public/samples/.empty_directory +1 -0
- data/generators/bootstrap/public/stylesheets/application.css.scss +39 -0
- data/generators/bootstrap/public/stylesheets/bootstrap-responsive.css +1092 -0
- data/generators/bootstrap/public/stylesheets/bootstrap-responsive.min.css +9 -0
- data/generators/bootstrap/public/stylesheets/bootstrap.css +5652 -0
- data/generators/bootstrap/public/stylesheets/bootstrap.min.css +726 -0
- data/generators/content_type/app/content_types/%name%.yml.tt +58 -0
- data/generators/content_type/data/%name%.yml.tt +24 -0
- data/generators/page/template.liquid.haml.tt +35 -0
- data/generators/page/template.liquid.tt +1 -0
- data/generators/snippet/template.liquid.haml.tt +4 -0
- data/generators/snippet/template.liquid.tt +4 -0
- data/lib/locomotive/builder/cli.rb +225 -0
- data/lib/locomotive/builder/exceptions.rb +17 -0
- data/lib/locomotive/builder/generators/content_type.rb +47 -0
- data/lib/locomotive/builder/generators/page.rb +57 -0
- data/lib/locomotive/builder/generators/site/base.rb +30 -0
- data/lib/locomotive/builder/generators/site/blank.rb +23 -0
- data/lib/locomotive/builder/generators/site/bootstrap.rb +35 -0
- data/lib/locomotive/builder/generators/site.rb +97 -0
- data/lib/locomotive/builder/generators/snippet.rb +54 -0
- data/lib/locomotive/builder/liquid/drops/base.rb +44 -0
- data/lib/locomotive/builder/liquid/drops/content_entry.rb +48 -0
- data/lib/locomotive/builder/liquid/drops/content_types.rb +121 -0
- data/lib/locomotive/builder/liquid/drops/page.rb +36 -0
- data/lib/locomotive/builder/liquid/drops/site.rb +21 -0
- data/lib/locomotive/builder/liquid/errors.rb +7 -0
- data/lib/locomotive/builder/liquid/filters/date.rb +98 -0
- data/lib/locomotive/builder/liquid/filters/html.rb +154 -0
- data/lib/locomotive/builder/liquid/filters/misc.rb +28 -0
- data/lib/locomotive/builder/liquid/filters/resize.rb +18 -0
- data/lib/locomotive/builder/liquid/filters/text.rb +50 -0
- data/lib/locomotive/builder/liquid/filters/translate.rb +24 -0
- data/lib/locomotive/builder/liquid/patches.rb +47 -0
- data/lib/locomotive/builder/liquid/tags/consume.rb +58 -0
- data/lib/locomotive/builder/liquid/tags/csrf.rb +34 -0
- data/lib/locomotive/builder/liquid/tags/editable/base.rb +46 -0
- data/lib/locomotive/builder/liquid/tags/editable/control.rb +19 -0
- data/lib/locomotive/builder/liquid/tags/editable/file.rb +15 -0
- data/lib/locomotive/builder/liquid/tags/editable/long_text.rb +15 -0
- data/lib/locomotive/builder/liquid/tags/editable/short_text.rb +15 -0
- data/lib/locomotive/builder/liquid/tags/editable.rb +5 -0
- data/lib/locomotive/builder/liquid/tags/extends.rb +25 -0
- data/lib/locomotive/builder/liquid/tags/google_analytics.rb +28 -0
- data/lib/locomotive/builder/liquid/tags/inline_editor.rb +16 -0
- data/lib/locomotive/builder/liquid/tags/locale_switcher.rb +180 -0
- data/lib/locomotive/builder/liquid/tags/nav.rb +167 -0
- data/lib/locomotive/builder/liquid/tags/paginate.rb +105 -0
- data/lib/locomotive/builder/liquid/tags/seo.rb +74 -0
- data/lib/locomotive/builder/liquid/tags/snippet.rb +42 -0
- data/lib/locomotive/builder/liquid/tags/with_scope.rb +43 -0
- data/lib/locomotive/builder/liquid.rb +19 -0
- data/lib/locomotive/builder/listen.rb +48 -0
- data/lib/locomotive/builder/misc/core_ext.rb +29 -0
- data/lib/locomotive/builder/misc/dragonfly.rb +82 -0
- data/lib/locomotive/builder/misc/httparty.rb +47 -0
- data/lib/locomotive/builder/misc/i18n.rb +2 -0
- data/lib/locomotive/builder/misc/will_paginate.rb +16 -0
- data/lib/locomotive/builder/misc.rb +5 -0
- data/lib/locomotive/builder/server/dynamic_assets.rb +31 -0
- data/lib/locomotive/builder/server/entry_submission.rb +116 -0
- data/lib/locomotive/builder/server/favicon.rb +17 -0
- data/lib/locomotive/builder/server/locale.rb +42 -0
- data/lib/locomotive/builder/server/middleware.rb +54 -0
- data/lib/locomotive/builder/server/not_found.rb +18 -0
- data/lib/locomotive/builder/server/page.rb +59 -0
- data/lib/locomotive/builder/server/path.rb +34 -0
- data/lib/locomotive/builder/server/renderer.rb +105 -0
- data/lib/locomotive/builder/server/templatized_page.rb +32 -0
- data/lib/locomotive/builder/server.rb +78 -0
- data/lib/locomotive/builder/standalone_server.rb +33 -0
- data/lib/locomotive/builder/version.rb +5 -0
- data/lib/locomotive/builder.rb +167 -0
- data/locales/de.yml +143 -0
- data/locales/en.yml +164 -0
- data/locales/es.yml +119 -0
- data/locales/et.yml +140 -0
- data/locales/fr.yml +133 -0
- data/locales/it.yml +141 -0
- data/locales/nb.yml +177 -0
- data/locales/nl.yml +148 -0
- data/locales/pl.yml +189 -0
- data/locales/pt-BR.yml +125 -0
- data/locales/ru.yml +210 -0
- data/locomotivecms_builder.gemspec +42 -0
- data/spec/integration/cassettes/pull.yml +590 -0
- data/spec/integration/cassettes/push.yml +775 -0
- data/spec/integration/integration_helper.rb +15 -0
- data/spec/integration/server_spec.rb +37 -0
- data/spec/integration/sites_spec.rb +27 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/support/helpers.rb +13 -0
- metadata +468 -0
data/locales/nl.yml
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
nl:
|
|
2
|
+
errors:
|
|
3
|
+
messages:
|
|
4
|
+
blank: "kan ikke være blank"
|
|
5
|
+
|
|
6
|
+
number:
|
|
7
|
+
format:
|
|
8
|
+
separator: ","
|
|
9
|
+
precision: 2
|
|
10
|
+
delimiter: .
|
|
11
|
+
human:
|
|
12
|
+
storage_units:
|
|
13
|
+
format: "%n %u"
|
|
14
|
+
units:
|
|
15
|
+
kb: KB
|
|
16
|
+
tb: TB
|
|
17
|
+
gb: GB
|
|
18
|
+
byte:
|
|
19
|
+
one: Byte
|
|
20
|
+
other: Bytes
|
|
21
|
+
mb: MB
|
|
22
|
+
currency:
|
|
23
|
+
format:
|
|
24
|
+
format: "%u %n"
|
|
25
|
+
unit: !binary |
|
|
26
|
+
4oKs
|
|
27
|
+
|
|
28
|
+
separator: .
|
|
29
|
+
precision: 2
|
|
30
|
+
delimiter: .
|
|
31
|
+
|
|
32
|
+
time:
|
|
33
|
+
am: "'s ochtends"
|
|
34
|
+
formats:
|
|
35
|
+
default: "%a %d %b %Y %H:%M:%S %Z"
|
|
36
|
+
time: "%H:%M"
|
|
37
|
+
short: "%d %b %H:%M"
|
|
38
|
+
only_second: "%S"
|
|
39
|
+
datetime:
|
|
40
|
+
formats:
|
|
41
|
+
default: "%d-%m-%YT%H:%M:%S%Z"
|
|
42
|
+
long: "%d %B %Y %H:%M"
|
|
43
|
+
pm: "'s middages"
|
|
44
|
+
date:
|
|
45
|
+
month_names:
|
|
46
|
+
-
|
|
47
|
+
- Januari
|
|
48
|
+
- Februari
|
|
49
|
+
- Maart
|
|
50
|
+
- April
|
|
51
|
+
- Mei
|
|
52
|
+
- Juni
|
|
53
|
+
- Juli
|
|
54
|
+
- Augustus
|
|
55
|
+
- September
|
|
56
|
+
- Oktober
|
|
57
|
+
- November
|
|
58
|
+
- December
|
|
59
|
+
abbr_day_names:
|
|
60
|
+
- Zon
|
|
61
|
+
- Maa
|
|
62
|
+
- Din
|
|
63
|
+
- Woe
|
|
64
|
+
- Don
|
|
65
|
+
- Vri
|
|
66
|
+
- Zat
|
|
67
|
+
order:
|
|
68
|
+
- :day
|
|
69
|
+
- :month
|
|
70
|
+
- :year
|
|
71
|
+
formats:
|
|
72
|
+
only_day: "%e"
|
|
73
|
+
default: "%d/%m/%Y"
|
|
74
|
+
short: "%e %b"
|
|
75
|
+
long: "%e %B %Y"
|
|
76
|
+
day_names:
|
|
77
|
+
- Zondag
|
|
78
|
+
- Maandag
|
|
79
|
+
- Dinsdag
|
|
80
|
+
- Woensdag
|
|
81
|
+
- Donderdag
|
|
82
|
+
- Vrijdag
|
|
83
|
+
- Zaterdag
|
|
84
|
+
abbr_month_names:
|
|
85
|
+
-
|
|
86
|
+
- Jan
|
|
87
|
+
- Feb
|
|
88
|
+
- Mar
|
|
89
|
+
- Apr
|
|
90
|
+
- Mei
|
|
91
|
+
- Jun
|
|
92
|
+
- Jul
|
|
93
|
+
- Aug
|
|
94
|
+
- Sep
|
|
95
|
+
- Okt
|
|
96
|
+
- Nov
|
|
97
|
+
- Dec
|
|
98
|
+
support:
|
|
99
|
+
array:
|
|
100
|
+
words_connector: ","
|
|
101
|
+
last_word_connector: ", en"
|
|
102
|
+
two_words_connector: en
|
|
103
|
+
datetime:
|
|
104
|
+
format:
|
|
105
|
+
default: "%Y-%m-%dT%H:%M:%S%Z"
|
|
106
|
+
prompts:
|
|
107
|
+
minute: Minuut
|
|
108
|
+
second: Seconden
|
|
109
|
+
month: Maand
|
|
110
|
+
hour: Uur
|
|
111
|
+
day: Dag
|
|
112
|
+
year: Jaar
|
|
113
|
+
distance_in_words:
|
|
114
|
+
less_than_x_minutes:
|
|
115
|
+
one: "minder dan \xC3\xA9\xC3\xA9n minuut"
|
|
116
|
+
other: minder dan {{count}} minuten
|
|
117
|
+
x_days:
|
|
118
|
+
one: 1 dag
|
|
119
|
+
other: "{{count}} dagen"
|
|
120
|
+
x_seconds:
|
|
121
|
+
one: 1 seconde
|
|
122
|
+
other: "{{count}} seconden"
|
|
123
|
+
about_x_hours:
|
|
124
|
+
one: "ongeveer \xC3\xA9\xC3\xA9n uur"
|
|
125
|
+
other: ongeveer {{count}} uur
|
|
126
|
+
less_than_x_seconds:
|
|
127
|
+
one: "minder dan \xC3\xA9\xC3\xA9n seconde"
|
|
128
|
+
other: minder dan {{count}} seconden
|
|
129
|
+
x_months:
|
|
130
|
+
one: 1 maand
|
|
131
|
+
other: "{{count}} maanden"
|
|
132
|
+
x_minutes:
|
|
133
|
+
one: 1 minuut
|
|
134
|
+
other: "{{count}} minuten"
|
|
135
|
+
about_x_years:
|
|
136
|
+
one: "ongeveer \xC3\xA9\xC3\xA9n jaar"
|
|
137
|
+
other: ongeveer {{count}} jaren
|
|
138
|
+
about_x_months:
|
|
139
|
+
one: "ongeveer \xC3\xA9\xC3\xA9n maand"
|
|
140
|
+
other: ongeveer {{count}} maanden
|
|
141
|
+
over_x_years:
|
|
142
|
+
one: "langer dan \xC3\xA9\xC3\xA9n jaar"
|
|
143
|
+
other: langer {{count}} jaar
|
|
144
|
+
half_a_minute: halve minuut
|
|
145
|
+
|
|
146
|
+
pagination:
|
|
147
|
+
previous: "« Vorige"
|
|
148
|
+
next: "Volgende »"
|
data/locales/pl.yml
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
pl:
|
|
2
|
+
errors:
|
|
3
|
+
messages:
|
|
4
|
+
blank: "nie może być puste"
|
|
5
|
+
|
|
6
|
+
date:
|
|
7
|
+
formats:
|
|
8
|
+
default: "%d-%m-%Y"
|
|
9
|
+
short: "%d %b"
|
|
10
|
+
long: "%B %d, %Y"
|
|
11
|
+
long_ordinal: "%B %d, %Y"
|
|
12
|
+
only_day: "%e"
|
|
13
|
+
day_names:
|
|
14
|
+
- niedziela
|
|
15
|
+
- poniedziałek
|
|
16
|
+
- wtorek
|
|
17
|
+
- środa
|
|
18
|
+
- czwartek
|
|
19
|
+
- piątek
|
|
20
|
+
- sobota
|
|
21
|
+
abbr_day_names:
|
|
22
|
+
- nie
|
|
23
|
+
- pon
|
|
24
|
+
- wto
|
|
25
|
+
- śro
|
|
26
|
+
- czw
|
|
27
|
+
- pia
|
|
28
|
+
- sob
|
|
29
|
+
month_names:
|
|
30
|
+
- ~
|
|
31
|
+
- styczeń
|
|
32
|
+
- luty
|
|
33
|
+
- marzec
|
|
34
|
+
- kwiecień
|
|
35
|
+
- maj
|
|
36
|
+
- czerwiec
|
|
37
|
+
- lipiec
|
|
38
|
+
- sierpień
|
|
39
|
+
- wrzesień
|
|
40
|
+
- październik
|
|
41
|
+
- listopad
|
|
42
|
+
- grudzień
|
|
43
|
+
abbr_month_names:
|
|
44
|
+
- ~
|
|
45
|
+
- sty
|
|
46
|
+
- lut
|
|
47
|
+
- mar
|
|
48
|
+
- kwi
|
|
49
|
+
- maj
|
|
50
|
+
- cze
|
|
51
|
+
- lip
|
|
52
|
+
- sie
|
|
53
|
+
- wrz
|
|
54
|
+
- paź
|
|
55
|
+
- lis
|
|
56
|
+
- gru
|
|
57
|
+
order:
|
|
58
|
+
- :day
|
|
59
|
+
- :month
|
|
60
|
+
- :year
|
|
61
|
+
|
|
62
|
+
pagination:
|
|
63
|
+
previous: "« Poprzednia"
|
|
64
|
+
next: "Następna »"
|
|
65
|
+
|
|
66
|
+
time:
|
|
67
|
+
formats:
|
|
68
|
+
default: "%a, %d %b %Y %H:%M:%S %z"
|
|
69
|
+
short: "%d %b %H:%M"
|
|
70
|
+
long: "%B %d, %Y %H:%M"
|
|
71
|
+
am: "przed południem"
|
|
72
|
+
pm: "po południu"
|
|
73
|
+
|
|
74
|
+
support:
|
|
75
|
+
array:
|
|
76
|
+
words_connector: ", "
|
|
77
|
+
two_words_connector: " i "
|
|
78
|
+
last_word_connector: " oraz "
|
|
79
|
+
|
|
80
|
+
select:
|
|
81
|
+
prompt: "Wybierz"
|
|
82
|
+
|
|
83
|
+
number:
|
|
84
|
+
format:
|
|
85
|
+
separator: ","
|
|
86
|
+
delimiter: " "
|
|
87
|
+
precision: 3
|
|
88
|
+
significant: false
|
|
89
|
+
strip_insignificant_zeros: false
|
|
90
|
+
|
|
91
|
+
currency:
|
|
92
|
+
format:
|
|
93
|
+
format: "%u %n"
|
|
94
|
+
unit: "PLN"
|
|
95
|
+
separator: ","
|
|
96
|
+
delimiter: " "
|
|
97
|
+
precision: 2
|
|
98
|
+
significant: false
|
|
99
|
+
strip_insignificant_zeros: true
|
|
100
|
+
|
|
101
|
+
percentage:
|
|
102
|
+
format:
|
|
103
|
+
delimiter: ""
|
|
104
|
+
|
|
105
|
+
precision:
|
|
106
|
+
format:
|
|
107
|
+
delimiter: ""
|
|
108
|
+
|
|
109
|
+
human:
|
|
110
|
+
format:
|
|
111
|
+
delimiter: ""
|
|
112
|
+
precision: 3
|
|
113
|
+
significant: true
|
|
114
|
+
strip_insignificant_zeros: true
|
|
115
|
+
storage_units:
|
|
116
|
+
format: "%n %u"
|
|
117
|
+
units:
|
|
118
|
+
byte:
|
|
119
|
+
one: "bajt"
|
|
120
|
+
other: "bajty"
|
|
121
|
+
kb: "KB"
|
|
122
|
+
mb: "MB"
|
|
123
|
+
gb: "GB"
|
|
124
|
+
tb: "TB"
|
|
125
|
+
decimal_units:
|
|
126
|
+
format: "%n %u"
|
|
127
|
+
units:
|
|
128
|
+
unit: ""
|
|
129
|
+
thousand: Tysiąc
|
|
130
|
+
million: Milion
|
|
131
|
+
billion: Miliard
|
|
132
|
+
trillion: Bilion
|
|
133
|
+
quadrillion: Biliard
|
|
134
|
+
|
|
135
|
+
datetime:
|
|
136
|
+
distance_in_words:
|
|
137
|
+
half_a_minute: "pół minuty"
|
|
138
|
+
less_than_x_seconds:
|
|
139
|
+
one: "mniej niż sekundę"
|
|
140
|
+
few: "mniej niż %{count} sekundy"
|
|
141
|
+
other: "mniej niż %{count} sekund"
|
|
142
|
+
x_seconds:
|
|
143
|
+
one: "1 sekunda"
|
|
144
|
+
few: "%{count} sekundy"
|
|
145
|
+
other: "%{count} sekund"
|
|
146
|
+
less_than_x_minutes:
|
|
147
|
+
one: "mniej niż minutę"
|
|
148
|
+
few: "mniej niż %{count} minuty"
|
|
149
|
+
other: "mniej niż %{count} minut"
|
|
150
|
+
x_minutes:
|
|
151
|
+
one: "1 minuta"
|
|
152
|
+
few: "%{count} minuty"
|
|
153
|
+
other: "%{count} minut"
|
|
154
|
+
about_x_hours:
|
|
155
|
+
one: "około godziny"
|
|
156
|
+
few: "około %{count} godziny"
|
|
157
|
+
other: "około %{count} godzin"
|
|
158
|
+
x_days:
|
|
159
|
+
one: "1 dzień"
|
|
160
|
+
few: "%{count} dni"
|
|
161
|
+
other: "%{count} dni"
|
|
162
|
+
about_x_months:
|
|
163
|
+
one: "około miesiąca"
|
|
164
|
+
few: "około %{count} miesiące"
|
|
165
|
+
other: "około %{count} miesięcy"
|
|
166
|
+
x_months:
|
|
167
|
+
one: "1 miesiąc"
|
|
168
|
+
few: "%{count} miesiące"
|
|
169
|
+
other: "%{count} miesięcy"
|
|
170
|
+
about_x_years:
|
|
171
|
+
one: "około rok"
|
|
172
|
+
few: "około %{count} lata"
|
|
173
|
+
other: "około %{count} lat"
|
|
174
|
+
over_x_years:
|
|
175
|
+
one: "ponad rok"
|
|
176
|
+
few: "ponad %{count} lata"
|
|
177
|
+
other: "ponad %{count} lat"
|
|
178
|
+
almost_x_years:
|
|
179
|
+
one: "prawie rok"
|
|
180
|
+
few: "prawie %{count} lata"
|
|
181
|
+
other: "prawie %{count} lat"
|
|
182
|
+
prompts:
|
|
183
|
+
year: "Rok"
|
|
184
|
+
month: "Miesiąc"
|
|
185
|
+
day: "Dzień"
|
|
186
|
+
hour: "Godzina"
|
|
187
|
+
minute: "Minuta"
|
|
188
|
+
second: "Sekundy"
|
|
189
|
+
|
data/locales/pt-BR.yml
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
pt-BR:
|
|
2
|
+
errors:
|
|
3
|
+
messages:
|
|
4
|
+
blank: "não pode ficar em branco"
|
|
5
|
+
|
|
6
|
+
date:
|
|
7
|
+
formats:
|
|
8
|
+
default: "%d/%m/%Y"
|
|
9
|
+
|
|
10
|
+
pagination:
|
|
11
|
+
previous: "« Anterior"
|
|
12
|
+
next: "Próximo »"
|
|
13
|
+
|
|
14
|
+
date:
|
|
15
|
+
formats:
|
|
16
|
+
default: "%d/%m/%Y"
|
|
17
|
+
short: "%e %b"
|
|
18
|
+
long: "%e %B %Y"
|
|
19
|
+
long_ordinal: "%e %B %Y"
|
|
20
|
+
only_day: "%e"
|
|
21
|
+
|
|
22
|
+
day_names: [Domingo, Segunda, Terça, Quarta, Quinta, Sexta, Sábado]
|
|
23
|
+
abbr_day_names: [Dom, Seg, Ter, Qua, Qui, Sex, Sáb]
|
|
24
|
+
|
|
25
|
+
month_names: [~, Janeiro, Fevereiro, Março, Abril, Maio, Junho, Julho, Agosto, Setembro, Outubro, Novembro, Dezembro]
|
|
26
|
+
abbr_month_names: [~, Jan, Fev, Mar, Abr, Mai, Jun, Jul, Ago, Set, Out, Nov, Dez]
|
|
27
|
+
order: [day, month, year]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
time:
|
|
31
|
+
formats:
|
|
32
|
+
default: "%d %B %Y %H:%M"
|
|
33
|
+
time: "%H:%M"
|
|
34
|
+
short: "%d %b %H:%M"
|
|
35
|
+
long: "%A %d %B %Y %H:%M:%S %Z"
|
|
36
|
+
long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
|
|
37
|
+
only_second: "%S"
|
|
38
|
+
am: 'am'
|
|
39
|
+
pm: 'pm'
|
|
40
|
+
|
|
41
|
+
datetime:
|
|
42
|
+
distance_in_words:
|
|
43
|
+
half_a_minute: 'meio minuto'
|
|
44
|
+
less_than_x_seconds:
|
|
45
|
+
one: 'menos de 1 segundo'
|
|
46
|
+
other: 'menos de %{count} segundos'
|
|
47
|
+
|
|
48
|
+
x_seconds:
|
|
49
|
+
one: '1 segundo'
|
|
50
|
+
other: '%{count} segundos'
|
|
51
|
+
|
|
52
|
+
less_than_x_minutes:
|
|
53
|
+
one: 'menos de um minuto'
|
|
54
|
+
other: 'menos de %{count} minutos'
|
|
55
|
+
|
|
56
|
+
x_minutes:
|
|
57
|
+
one: '1 minuto'
|
|
58
|
+
other: '%{count} minutos'
|
|
59
|
+
|
|
60
|
+
about_x_hours:
|
|
61
|
+
one: 'aproximadamente 1 hora'
|
|
62
|
+
other: 'aproximadamente %{count} horas'
|
|
63
|
+
|
|
64
|
+
x_days:
|
|
65
|
+
one: '1 dia'
|
|
66
|
+
other: '%{count} dias'
|
|
67
|
+
|
|
68
|
+
about_x_months:
|
|
69
|
+
one: 'aproximadamente 1 mês'
|
|
70
|
+
other: 'aproximadamente %{count} meses'
|
|
71
|
+
|
|
72
|
+
x_months:
|
|
73
|
+
one: '1 mês'
|
|
74
|
+
other: '%{count} meses'
|
|
75
|
+
|
|
76
|
+
about_x_years:
|
|
77
|
+
one: 'aproximadamente 1 ano'
|
|
78
|
+
other: 'aproximadamente %{count} anos'
|
|
79
|
+
|
|
80
|
+
over_x_years:
|
|
81
|
+
one: 'mais de 1 ano'
|
|
82
|
+
other: 'mais de %{count} anos'
|
|
83
|
+
|
|
84
|
+
almost_x_years:
|
|
85
|
+
one: 'quase 1 ano'
|
|
86
|
+
other: 'quase %{count} anos'
|
|
87
|
+
|
|
88
|
+
prompts:
|
|
89
|
+
year: "Ano"
|
|
90
|
+
month: "Mês"
|
|
91
|
+
day: "Dia"
|
|
92
|
+
hour: "Hora"
|
|
93
|
+
minute: "Minuto"
|
|
94
|
+
second: "Segundos"
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
number:
|
|
98
|
+
format:
|
|
99
|
+
precision: 3
|
|
100
|
+
separator: ','
|
|
101
|
+
delimiter: '. '
|
|
102
|
+
currency:
|
|
103
|
+
format:
|
|
104
|
+
unit: 'R$'
|
|
105
|
+
precision: 2
|
|
106
|
+
format: '%n %u'
|
|
107
|
+
human:
|
|
108
|
+
format:
|
|
109
|
+
precision: 2
|
|
110
|
+
storage_units:
|
|
111
|
+
format: '%n %u'
|
|
112
|
+
units:
|
|
113
|
+
byte: 'Byte'
|
|
114
|
+
kb: 'Kb'
|
|
115
|
+
mb: 'Mb'
|
|
116
|
+
gb: 'Gb'
|
|
117
|
+
tb: 'Tb'
|
|
118
|
+
|
|
119
|
+
support:
|
|
120
|
+
array:
|
|
121
|
+
sentence_connector: ' e '
|
|
122
|
+
skip_last_comma: true
|
|
123
|
+
words_connector: ", "
|
|
124
|
+
two_words_connector: " e "
|
|
125
|
+
last_word_connector: " e "
|
data/locales/ru.yml
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
ru:
|
|
2
|
+
errors:
|
|
3
|
+
messages:
|
|
4
|
+
blank: "can not be blank"
|
|
5
|
+
|
|
6
|
+
pagination:
|
|
7
|
+
previous: "« Предыдущая"
|
|
8
|
+
next: "Следующая »"
|
|
9
|
+
|
|
10
|
+
date:
|
|
11
|
+
formats:
|
|
12
|
+
# Форматы указываются в виде, поддерживаемом strftime.
|
|
13
|
+
# По умолчанию используется default.
|
|
14
|
+
# Можно добавлять собственные форматы
|
|
15
|
+
#
|
|
16
|
+
#
|
|
17
|
+
# Use the strftime parameters for formats.
|
|
18
|
+
# When no format has been given, it uses default.
|
|
19
|
+
# You can provide other formats here if you like!
|
|
20
|
+
default: "%d.%m.%Y"
|
|
21
|
+
short: "%d %b"
|
|
22
|
+
long: "%d %B %Y"
|
|
23
|
+
|
|
24
|
+
# Названия дней недели -- контекстные и отдельностоящие
|
|
25
|
+
day_names: [воскресенье, понедельник, вторник, среда, четверг, пятница, суббота]
|
|
26
|
+
standalone_day_names: [Воскресенье, Понедельник, Вторник, Среда, Четверг, Пятница, Суббота]
|
|
27
|
+
abbr_day_names: [Вс, Пн, Вт, Ср, Чт, Пт, Сб]
|
|
28
|
+
|
|
29
|
+
# Названия месяцев -- сокращенные и полные, плюс отдельностоящие.
|
|
30
|
+
# Не забудьте nil в начале массиве (~)
|
|
31
|
+
#
|
|
32
|
+
#
|
|
33
|
+
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
|
34
|
+
month_names: [~, января, февраля, марта, апреля, мая, июня, июля, августа, сентября, октября, ноября, декабря]
|
|
35
|
+
standalone_month_names: [~, Январь, Февраль, Март, Апрель, Май, Июнь, Июль, Август, Сентябрь, Октябрь, Ноябрь, Декабрь]
|
|
36
|
+
abbr_month_names: [~, янв., февр., марта, апр., мая, июня, июля, авг., сент., окт., нояб., дек.]
|
|
37
|
+
standalone_abbr_month_names: [~, янв., февр., март, апр., май, июнь, июль, авг., сент., окт., нояб., дек.]
|
|
38
|
+
|
|
39
|
+
# Порядок компонентов даты для хелперов
|
|
40
|
+
#
|
|
41
|
+
#
|
|
42
|
+
# Used in date_select and datime_select.
|
|
43
|
+
order:
|
|
44
|
+
- :day
|
|
45
|
+
- :month
|
|
46
|
+
- :year
|
|
47
|
+
|
|
48
|
+
time:
|
|
49
|
+
# Форматы времени
|
|
50
|
+
formats:
|
|
51
|
+
default: "%a, %d %b %Y, %H:%M:%S %z"
|
|
52
|
+
short: "%d %b, %H:%M"
|
|
53
|
+
long: "%d %B %Y, %H:%M"
|
|
54
|
+
|
|
55
|
+
# am/pm решено перевести как "утра/вечера" :)
|
|
56
|
+
am: "утра"
|
|
57
|
+
pm: "вечера"
|
|
58
|
+
|
|
59
|
+
number:
|
|
60
|
+
# Используется в number_with_delimiter()
|
|
61
|
+
# Также является установками по умолчанию для 'currency', 'percentage', 'precision', 'human'
|
|
62
|
+
#
|
|
63
|
+
# Used in number_with_delimiter()
|
|
64
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
|
|
65
|
+
format:
|
|
66
|
+
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
|
|
67
|
+
separator: "."
|
|
68
|
+
# Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three)
|
|
69
|
+
delimiter: " "
|
|
70
|
+
# Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00)
|
|
71
|
+
precision: 3
|
|
72
|
+
|
|
73
|
+
# Used in number_to_currency()
|
|
74
|
+
currency:
|
|
75
|
+
format:
|
|
76
|
+
# Формат отображения валюты и обозначение самой валюты
|
|
77
|
+
#
|
|
78
|
+
#
|
|
79
|
+
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
|
|
80
|
+
format: "%n %u"
|
|
81
|
+
unit: "руб."
|
|
82
|
+
# These three are to override number.format and are optional
|
|
83
|
+
separator: "."
|
|
84
|
+
delimiter: " "
|
|
85
|
+
precision: 2
|
|
86
|
+
|
|
87
|
+
# Used in number_to_percentage()
|
|
88
|
+
percentage:
|
|
89
|
+
format:
|
|
90
|
+
# These three are to override number.format and are optional
|
|
91
|
+
# separator:
|
|
92
|
+
delimiter: ""
|
|
93
|
+
|
|
94
|
+
# Used in number_to_precision()
|
|
95
|
+
precision:
|
|
96
|
+
format:
|
|
97
|
+
# These three are to override number.format and are optional
|
|
98
|
+
# separator:
|
|
99
|
+
delimiter: ""
|
|
100
|
+
# precision:
|
|
101
|
+
|
|
102
|
+
# Used in number_to_human_size()
|
|
103
|
+
human:
|
|
104
|
+
format:
|
|
105
|
+
# These three are to override number.format and are optional
|
|
106
|
+
# separator:
|
|
107
|
+
delimiter: ""
|
|
108
|
+
precision: 1
|
|
109
|
+
|
|
110
|
+
# Rails 2.2
|
|
111
|
+
# storage_units: [байт, КБ, МБ, ГБ, ТБ]
|
|
112
|
+
|
|
113
|
+
# Rails 2.3
|
|
114
|
+
storage_units:
|
|
115
|
+
# Storage units output formatting.
|
|
116
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
|
117
|
+
format: "%n %u"
|
|
118
|
+
units:
|
|
119
|
+
byte:
|
|
120
|
+
one: "байт"
|
|
121
|
+
few: "байта"
|
|
122
|
+
many: "байт"
|
|
123
|
+
other: "байта"
|
|
124
|
+
kb: "КБ"
|
|
125
|
+
mb: "МБ"
|
|
126
|
+
gb: "ГБ"
|
|
127
|
+
tb: "ТБ"
|
|
128
|
+
|
|
129
|
+
# Используется в хелперах distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
|
|
130
|
+
#
|
|
131
|
+
#
|
|
132
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
|
|
133
|
+
datetime:
|
|
134
|
+
distance_in_words:
|
|
135
|
+
half_a_minute: "меньше минуты"
|
|
136
|
+
less_than_x_seconds:
|
|
137
|
+
one: "меньше %{count} секунды"
|
|
138
|
+
few: "меньше %{count} секунд"
|
|
139
|
+
many: "меньше %{count} секунд"
|
|
140
|
+
other: "меньше %{count} секунды"
|
|
141
|
+
x_seconds:
|
|
142
|
+
one: "%{count} секунда"
|
|
143
|
+
few: "%{count} секунды"
|
|
144
|
+
many: "%{count} секунд"
|
|
145
|
+
other: "%{count} секунды"
|
|
146
|
+
less_than_x_minutes:
|
|
147
|
+
one: "меньше %{count} минуты"
|
|
148
|
+
few: "меньше %{count} минут"
|
|
149
|
+
many: "меньше %{count} минут"
|
|
150
|
+
other: "меньше %{count} минуты"
|
|
151
|
+
x_minutes:
|
|
152
|
+
one: "%{count} минуту"
|
|
153
|
+
few: "%{count} минуты"
|
|
154
|
+
many: "%{count} минут"
|
|
155
|
+
other: "%{count} минуты"
|
|
156
|
+
about_x_hours:
|
|
157
|
+
one: "около %{count} часа"
|
|
158
|
+
few: "около %{count} часов"
|
|
159
|
+
many: "около %{count} часов"
|
|
160
|
+
other: "около %{count} часа"
|
|
161
|
+
x_days:
|
|
162
|
+
one: "%{count} день"
|
|
163
|
+
few: "%{count} дня"
|
|
164
|
+
many: "%{count} дней"
|
|
165
|
+
other: "%{count} дня"
|
|
166
|
+
about_x_months:
|
|
167
|
+
one: "около %{count} месяца"
|
|
168
|
+
few: "около %{count} месяцев"
|
|
169
|
+
many: "около %{count} месяцев"
|
|
170
|
+
other: "около %{count} месяца"
|
|
171
|
+
x_months:
|
|
172
|
+
one: "%{count} месяц"
|
|
173
|
+
few: "%{count} месяца"
|
|
174
|
+
many: "%{count} месяцев"
|
|
175
|
+
other: "%{count} месяца"
|
|
176
|
+
about_x_years:
|
|
177
|
+
one: "около %{count} года"
|
|
178
|
+
few: "около %{count} лет"
|
|
179
|
+
many: "около %{count} лет"
|
|
180
|
+
other: "около %{count} лет"
|
|
181
|
+
over_x_years:
|
|
182
|
+
one: "больше %{count} года"
|
|
183
|
+
few: "больше %{count} лет"
|
|
184
|
+
many: "больше %{count} лет"
|
|
185
|
+
other: "больше %{count} лет"
|
|
186
|
+
almost_x_years:
|
|
187
|
+
one: "почти %{count} год"
|
|
188
|
+
few: "почти %{count} года"
|
|
189
|
+
many: "почти %{count} лет"
|
|
190
|
+
other: "почти %{count} лет"
|
|
191
|
+
prompts:
|
|
192
|
+
year: "Год"
|
|
193
|
+
month: "Месяц"
|
|
194
|
+
day: "День"
|
|
195
|
+
hour: "Часов"
|
|
196
|
+
minute: "Минут"
|
|
197
|
+
second: "Секунд"
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
# Used in array.to_sentence.
|
|
201
|
+
support:
|
|
202
|
+
array:
|
|
203
|
+
# Rails 2.2
|
|
204
|
+
sentence_connector: "и"
|
|
205
|
+
skip_last_comma: true
|
|
206
|
+
|
|
207
|
+
# Rails 2.3
|
|
208
|
+
words_connector: ", "
|
|
209
|
+
two_words_connector: " и "
|
|
210
|
+
last_word_connector: " и "
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'locomotive/builder/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |gem|
|
|
7
|
+
gem.name = 'locomotivecms_builder'
|
|
8
|
+
gem.version = Locomotive::Builder::VERSION
|
|
9
|
+
gem.authors = ['Didier Lafforgue', 'Rodrigo Alvarez']
|
|
10
|
+
gem.email = ['did@locomotivecms.com', 'papipo@gmail.com']
|
|
11
|
+
gem.description = %q{The LocomotiveCMS builder is a site generator for the LocomotiveCMS engine}
|
|
12
|
+
gem.summary = %q{The LocomotiveCMS builder is a site generator for the LocomotiveCMS engine powered by all the efficient and modern HTML development tools (Haml, SASS, Compass, Less).}
|
|
13
|
+
gem.homepage = 'http://www.locomotivecms.com'
|
|
14
|
+
|
|
15
|
+
gem.files = `git ls-files`.split($/)
|
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
18
|
+
gem.require_paths = ['lib']
|
|
19
|
+
gem.executables = ['builder']
|
|
20
|
+
|
|
21
|
+
gem.add_dependency 'thor'
|
|
22
|
+
gem.add_dependency 'thin'
|
|
23
|
+
gem.add_dependency 'locomotive_liquid', '~> 2.4.1'
|
|
24
|
+
gem.add_dependency 'RedCloth', '~> 4.2.9'
|
|
25
|
+
gem.add_dependency 'dragonfly', '~> 0.9.12'
|
|
26
|
+
gem.add_dependency 'rack-cache', '~> 1.1'
|
|
27
|
+
gem.add_dependency 'rack-rescue', '~> 0.1.2'
|
|
28
|
+
|
|
29
|
+
gem.add_dependency 'listen', '~> 0.7.0'
|
|
30
|
+
|
|
31
|
+
gem.add_dependency 'rmagick', '2.12.2'
|
|
32
|
+
gem.add_dependency 'httmultiparty', '~> 0.3.8'
|
|
33
|
+
gem.add_dependency 'will_paginate', '~> 3.0.3'
|
|
34
|
+
gem.add_dependency 'locomotivecms_mounter', '1.0.0.alpha1'
|
|
35
|
+
|
|
36
|
+
gem.add_dependency 'faker', '~> 0.9.5'
|
|
37
|
+
|
|
38
|
+
gem.add_development_dependency 'rspec'
|
|
39
|
+
gem.add_development_dependency 'vcr'
|
|
40
|
+
gem.add_development_dependency 'webmock', '~> 1.8.0'
|
|
41
|
+
gem.add_development_dependency 'rack-test'
|
|
42
|
+
end
|