locomotivecms_builder 1.0.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- 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/et.yml
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
et:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
blank: "tühi"
|
5
|
+
|
6
|
+
pagination:
|
7
|
+
previous: "« Eelmine"
|
8
|
+
next: "Järgmine »"
|
9
|
+
|
10
|
+
date:
|
11
|
+
formats:
|
12
|
+
default: "%d.%m.%Y"
|
13
|
+
short: "%e %b"
|
14
|
+
long: "%e %B %Y"
|
15
|
+
long_ordinal: "%e %B %Y"
|
16
|
+
only_day: "%e"
|
17
|
+
|
18
|
+
day_names: [Pühapäev, Esmaspäev, Teisipäev, Kolmapäev, Neljapäev, Reede, Laupäev]
|
19
|
+
abbr_day_names: [Pü, Es, Te, Ko, Ne, Re, La]
|
20
|
+
month_names: [~, Jaanuar, Veebruar, Märts, Aprill, Mai, Juuni, Juuli, August, September, Oktoober, November, Detsember]
|
21
|
+
abbr_month_names: [~, Jaan., Veeb., Mär., Apr., Mai, Jun, Jul, Aug., Sept., Okt., Nov., Dez.]
|
22
|
+
order: [ day, month, year ]
|
23
|
+
|
24
|
+
time:
|
25
|
+
formats:
|
26
|
+
default: "%d %B %Y %H:%M"
|
27
|
+
time: "%H:%M"
|
28
|
+
short: "%d %b %H:%M"
|
29
|
+
long: "%A %d %B %Y %H:%M:%S %Z"
|
30
|
+
long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
|
31
|
+
only_second: "%S"
|
32
|
+
am: 'ennelõunat'
|
33
|
+
pm: 'pealelõunat'
|
34
|
+
|
35
|
+
datetime:
|
36
|
+
distance_in_words:
|
37
|
+
half_a_minute: 'pool minutit'
|
38
|
+
less_than_x_seconds:
|
39
|
+
one: 'vähem kui 1 sekund'
|
40
|
+
other: 'vähem kui %{count} sekundit'
|
41
|
+
x_seconds:
|
42
|
+
one: 'üks sekund'
|
43
|
+
other: '%{count} sekundit'
|
44
|
+
less_than_x_minutes:
|
45
|
+
one: 'vähem kui üks minut'
|
46
|
+
other: 'vähem kui %{count} minutit'
|
47
|
+
x_minutes:
|
48
|
+
one: 'üks minut'
|
49
|
+
other: '%{count} minutit'
|
50
|
+
about_x_hours:
|
51
|
+
one: 'umber üks tund'
|
52
|
+
other: 'umbes %{count} tundi'
|
53
|
+
x_days:
|
54
|
+
one: 'üks päev'
|
55
|
+
other: '%{count} päeva'
|
56
|
+
about_x_months:
|
57
|
+
one: 'umbes üks kuu'
|
58
|
+
other: 'umbes %{count} kuud'
|
59
|
+
x_months:
|
60
|
+
one: 'üks kuu'
|
61
|
+
other: '%{count} kuud'
|
62
|
+
almost_x_years:
|
63
|
+
one: 'peaaegu üks aasta'
|
64
|
+
other: 'peaaegu %{count} aastat'
|
65
|
+
about_x_years:
|
66
|
+
one: 'umbes üks aasta'
|
67
|
+
other: 'umbes %{count} aastat'
|
68
|
+
over_x_years:
|
69
|
+
one: 'üle ühe aasta'
|
70
|
+
other: 'üle %{count} aasta'
|
71
|
+
prompts:
|
72
|
+
second: "Sekundit"
|
73
|
+
minute: "Minutit"
|
74
|
+
hour: "Tundi"
|
75
|
+
day: "Päeva"
|
76
|
+
month: "Kuud"
|
77
|
+
year: "Aastat"
|
78
|
+
|
79
|
+
number:
|
80
|
+
format:
|
81
|
+
precision: 2
|
82
|
+
separator: ' '
|
83
|
+
delimiter: '.'
|
84
|
+
significant: false
|
85
|
+
strip_insignificant_zeros: false
|
86
|
+
currency:
|
87
|
+
format:
|
88
|
+
unit: '€'
|
89
|
+
format: '%n%u'
|
90
|
+
separator: ","
|
91
|
+
delimiter: ""
|
92
|
+
precision: 2
|
93
|
+
significant: false
|
94
|
+
strip_insignificant_zeros: false
|
95
|
+
percentage:
|
96
|
+
format:
|
97
|
+
delimiter: ""
|
98
|
+
precision:
|
99
|
+
format:
|
100
|
+
delimiter: ""
|
101
|
+
human:
|
102
|
+
format:
|
103
|
+
delimiter: ""
|
104
|
+
precision: 1
|
105
|
+
significant: true
|
106
|
+
strip_insignificant_zeros: true
|
107
|
+
storage_units:
|
108
|
+
# Storage units output formatting.
|
109
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
110
|
+
format: "%n %u"
|
111
|
+
units:
|
112
|
+
byte:
|
113
|
+
one: "Bait"
|
114
|
+
other: "Baiti"
|
115
|
+
kb: "KB"
|
116
|
+
mb: "MB"
|
117
|
+
gb: "GB"
|
118
|
+
tb: "TB"
|
119
|
+
decimal_units:
|
120
|
+
format: "%n %u"
|
121
|
+
units:
|
122
|
+
unit: ""
|
123
|
+
thousand: Tuhat
|
124
|
+
million: Miljon
|
125
|
+
billion:
|
126
|
+
one: Miljard
|
127
|
+
others: Miljardit
|
128
|
+
trillion: Triljon
|
129
|
+
quadrillion:
|
130
|
+
one: Kvadriljon
|
131
|
+
others: Kvadriljonit
|
132
|
+
|
133
|
+
support:
|
134
|
+
array:
|
135
|
+
sentence_connector: 'ja'
|
136
|
+
skip_last_comma: true
|
137
|
+
words_connector: ", "
|
138
|
+
two_words_connector: " ja "
|
139
|
+
last_word_connector: " ja "
|
140
|
+
|
data/locales/fr.yml
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
fr:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
blank: "doit être rempli(e)"
|
5
|
+
|
6
|
+
pagination:
|
7
|
+
previous: "« Précédent"
|
8
|
+
next: "Suivant »"
|
9
|
+
date:
|
10
|
+
formats:
|
11
|
+
default: "%d/%m/%Y"
|
12
|
+
short: "%e %b"
|
13
|
+
long: "%e %B %Y"
|
14
|
+
long_ordinal: "%e %B %Y"
|
15
|
+
only_day: "%e"
|
16
|
+
|
17
|
+
day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
|
18
|
+
abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
|
19
|
+
# month_names: [~, janvier, février, mars, avril, mai, juin, juillet, août, septembre, octobre, novembre, décembre]
|
20
|
+
# abbr_month_names: [~, jan., fév., mar., avr., mai, juin, juil., août, sept., oct., nov., déc.]
|
21
|
+
month_names:
|
22
|
+
- ~
|
23
|
+
- janvier
|
24
|
+
- février
|
25
|
+
- mars
|
26
|
+
- avril
|
27
|
+
- mai
|
28
|
+
- juin
|
29
|
+
- juillet
|
30
|
+
- août
|
31
|
+
- septembre
|
32
|
+
- octobre
|
33
|
+
- novembre
|
34
|
+
- décembre
|
35
|
+
abbr_month_names:
|
36
|
+
- ~
|
37
|
+
- jan.
|
38
|
+
- fév.
|
39
|
+
- mar.
|
40
|
+
- avr.
|
41
|
+
- mai
|
42
|
+
- juin
|
43
|
+
- juil.
|
44
|
+
- août
|
45
|
+
- sept.
|
46
|
+
- oct.
|
47
|
+
- nov.
|
48
|
+
- déc.
|
49
|
+
order: [day, month, year]
|
50
|
+
|
51
|
+
time:
|
52
|
+
formats:
|
53
|
+
default: "%d %B %Y %H:%M"
|
54
|
+
time: "%H:%M"
|
55
|
+
short: "%d %b %H:%M"
|
56
|
+
long: "%A %d %B %Y %H:%M:%S %Z"
|
57
|
+
long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
|
58
|
+
only_second: "%S"
|
59
|
+
am: 'am'
|
60
|
+
pm: 'pm'
|
61
|
+
|
62
|
+
datetime:
|
63
|
+
distance_in_words:
|
64
|
+
half_a_minute: "une demi-minute"
|
65
|
+
less_than_x_seconds:
|
66
|
+
zero: "moins d'une seconde"
|
67
|
+
one: "moins de 1 seconde"
|
68
|
+
other: "moins de %{count} secondes"
|
69
|
+
x_seconds:
|
70
|
+
one: "1 seconde"
|
71
|
+
other: "%{count} secondes"
|
72
|
+
less_than_x_minutes:
|
73
|
+
zero: "moins d'une minute"
|
74
|
+
one: "moins de 1 minute"
|
75
|
+
other: "moins de %{count} minutes"
|
76
|
+
x_minutes:
|
77
|
+
one: "1 minute"
|
78
|
+
other: "%{count} minutes"
|
79
|
+
about_x_hours:
|
80
|
+
one: "environ une heure"
|
81
|
+
other: "environ %{count} heures"
|
82
|
+
x_days:
|
83
|
+
one: "1 jour"
|
84
|
+
other: "%{count} jours"
|
85
|
+
about_x_months:
|
86
|
+
one: "environ un mois"
|
87
|
+
other: "environ %{count} mois"
|
88
|
+
x_months:
|
89
|
+
one: "1 mois"
|
90
|
+
other: "%{count} mois"
|
91
|
+
about_x_years:
|
92
|
+
one: "environ un an"
|
93
|
+
other: "environ %{count} ans"
|
94
|
+
over_x_years:
|
95
|
+
one: "plus d'un an"
|
96
|
+
other: "plus de %{count} ans"
|
97
|
+
prompts:
|
98
|
+
year: "Année"
|
99
|
+
month: "Mois"
|
100
|
+
day: "Jour"
|
101
|
+
hour: "Heure"
|
102
|
+
minute: "Minute"
|
103
|
+
second: "Seconde"
|
104
|
+
|
105
|
+
number:
|
106
|
+
format:
|
107
|
+
precision: 3
|
108
|
+
separator: ','
|
109
|
+
delimiter: ' '
|
110
|
+
currency:
|
111
|
+
format:
|
112
|
+
unit: '€'
|
113
|
+
precision: 2
|
114
|
+
format: '%n %u'
|
115
|
+
human:
|
116
|
+
format:
|
117
|
+
precision: 2
|
118
|
+
storage_units:
|
119
|
+
format: '%n %u'
|
120
|
+
units:
|
121
|
+
byte: 'Octet'
|
122
|
+
kb: 'ko'
|
123
|
+
mb: 'Mo'
|
124
|
+
gb: 'Go'
|
125
|
+
tb: 'To'
|
126
|
+
|
127
|
+
support:
|
128
|
+
array:
|
129
|
+
sentence_connector: 'et'
|
130
|
+
skip_last_comma: true
|
131
|
+
words_connector: ", "
|
132
|
+
two_words_connector: " et "
|
133
|
+
last_word_connector: " et "
|
data/locales/it.yml
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
it:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
blank: "non può essere lasciato in bianco"
|
5
|
+
|
6
|
+
pagination:
|
7
|
+
previous: "« Precedente"
|
8
|
+
next: "Successiva »"
|
9
|
+
|
10
|
+
date:
|
11
|
+
formats:
|
12
|
+
default: "%d/%m/%Y"
|
13
|
+
short: "%d %b"
|
14
|
+
long: "%d %B %Y"
|
15
|
+
long_ordinal: "%d %B %Y"
|
16
|
+
only_day: "%e"
|
17
|
+
|
18
|
+
day_names: [Domenica, Lunedì, Martedì, Mercoledì, Giovedì, Venerdì, Sabato]
|
19
|
+
abbr_day_names: [Dom, Lun, Mar, Mer, Gio, Ven, Sab]
|
20
|
+
month_names: [~, Gennaio, Febbraio, Marzo, Aprile, Maggio, Giugno, Luglio, Agosto, Settembre, Ottobre, Novembre, Dicembre]
|
21
|
+
abbr_month_names: [~, Gen, Feb, Mar, Apr, Mag, Giu, Lug, Ago, Set, Ott, Nov, Dic]
|
22
|
+
order: [day, month, year]
|
23
|
+
|
24
|
+
time:
|
25
|
+
formats:
|
26
|
+
default: "%a %d %b %Y, %H:%M:%S %z"
|
27
|
+
time: "%H:%M"
|
28
|
+
short: "%d %b %H:%M"
|
29
|
+
long: "%d %B %Y %H:%M"
|
30
|
+
long_ordinal: "%d %B %Y %H:%M"
|
31
|
+
only_second: "%S"
|
32
|
+
am: 'am'
|
33
|
+
pm: 'pm'
|
34
|
+
|
35
|
+
datetime:
|
36
|
+
distance_in_words:
|
37
|
+
half_a_minute: "mezzo minuto"
|
38
|
+
less_than_x_seconds:
|
39
|
+
one: "meno di un secondo"
|
40
|
+
other: "meno di %{count} secondi"
|
41
|
+
x_seconds:
|
42
|
+
one: "1 secondo"
|
43
|
+
other: "%{count} secondi"
|
44
|
+
less_than_x_minutes:
|
45
|
+
one: "meno di un minuto"
|
46
|
+
other: "meno di %{count} minuti"
|
47
|
+
x_minutes:
|
48
|
+
one: "1 minuto"
|
49
|
+
other: "%{count} minuti"
|
50
|
+
about_x_hours:
|
51
|
+
one: "circa un'ora"
|
52
|
+
other: "circa %{count} ore"
|
53
|
+
x_days:
|
54
|
+
one: "1 giorno"
|
55
|
+
other: "%{count} giorni"
|
56
|
+
about_x_months:
|
57
|
+
one: "circa un mese"
|
58
|
+
other: "circa %{count} mesi"
|
59
|
+
x_months:
|
60
|
+
one: "1 mese"
|
61
|
+
other: "%{count} mesi"
|
62
|
+
about_x_years:
|
63
|
+
one: "circa un anno"
|
64
|
+
other: "circa %{count} anni"
|
65
|
+
over_x_years:
|
66
|
+
one: "oltre un anno"
|
67
|
+
other: "oltre %{count} anni"
|
68
|
+
almost_x_years:
|
69
|
+
one: "circa 1 anno"
|
70
|
+
other: "circa %{count} anni"
|
71
|
+
prompts:
|
72
|
+
year: "Anno"
|
73
|
+
month: "Mese"
|
74
|
+
day: "Giorno"
|
75
|
+
hour: "Ora"
|
76
|
+
minute: "Minuto"
|
77
|
+
second: "Secondi"
|
78
|
+
|
79
|
+
number:
|
80
|
+
format:
|
81
|
+
delimiter: ""
|
82
|
+
precision: 2
|
83
|
+
significant: false
|
84
|
+
strip_insignificant_zeros: false
|
85
|
+
separator: "."
|
86
|
+
|
87
|
+
currency:
|
88
|
+
format:
|
89
|
+
format: "%n %u"
|
90
|
+
unit: "€"
|
91
|
+
separator: "."
|
92
|
+
delimiter: ","
|
93
|
+
precision: 2
|
94
|
+
significant: false
|
95
|
+
strip_insignificant_zeros: false
|
96
|
+
|
97
|
+
percentage:
|
98
|
+
format:
|
99
|
+
delimiter: ""
|
100
|
+
# precision:
|
101
|
+
|
102
|
+
precision:
|
103
|
+
format:
|
104
|
+
# separator:
|
105
|
+
delimiter: ""
|
106
|
+
# precision:
|
107
|
+
|
108
|
+
human:
|
109
|
+
format:
|
110
|
+
# separator:
|
111
|
+
delimiter: ""
|
112
|
+
precision: 1
|
113
|
+
significant: true
|
114
|
+
strip_insignificant_zeros: true
|
115
|
+
storage_units:
|
116
|
+
format: "%n %u"
|
117
|
+
units:
|
118
|
+
byte:
|
119
|
+
one: "Byte"
|
120
|
+
other: "Byte"
|
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: "Mila"
|
130
|
+
million: "Milioni"
|
131
|
+
billion: "Miliardi"
|
132
|
+
trillion: "Bilioni"
|
133
|
+
quadrillion: "Biliardi"
|
134
|
+
|
135
|
+
support:
|
136
|
+
array:
|
137
|
+
sentence_connector: 'e'
|
138
|
+
skip_last_comma: true
|
139
|
+
words_connector: ", "
|
140
|
+
two_words_connector: " e "
|
141
|
+
last_word_connector: " e "
|
data/locales/nb.yml
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
nb:
|
2
|
+
date:
|
3
|
+
formats:
|
4
|
+
default: "%d.%m.%Y"
|
5
|
+
|
6
|
+
errors:
|
7
|
+
messages:
|
8
|
+
blank: "kan ikke være blank"
|
9
|
+
|
10
|
+
pagination:
|
11
|
+
previous: "« Previous"
|
12
|
+
next: "Next »"
|
13
|
+
support:
|
14
|
+
array:
|
15
|
+
words_connector: ", "
|
16
|
+
two_words_connector: " og "
|
17
|
+
last_word_connector: " og "
|
18
|
+
select:
|
19
|
+
prompt: "Velg"
|
20
|
+
date:
|
21
|
+
formats:
|
22
|
+
default: "%d.%m.%Y"
|
23
|
+
short: "%e. %b"
|
24
|
+
long: "%e. %B %Y"
|
25
|
+
day_names:
|
26
|
+
- søndag
|
27
|
+
- mandag
|
28
|
+
- tirsdag
|
29
|
+
- onsdag
|
30
|
+
- torsdag
|
31
|
+
- fredag
|
32
|
+
- lørdag
|
33
|
+
abbr_day_names:
|
34
|
+
- søn
|
35
|
+
- man
|
36
|
+
- tir
|
37
|
+
- ons
|
38
|
+
- tor
|
39
|
+
- fre
|
40
|
+
- lør
|
41
|
+
month_names:
|
42
|
+
- ~
|
43
|
+
- januar
|
44
|
+
- februar
|
45
|
+
- mars
|
46
|
+
- april
|
47
|
+
- mai
|
48
|
+
- juni
|
49
|
+
- juli
|
50
|
+
- august
|
51
|
+
- september
|
52
|
+
- oktober
|
53
|
+
- november
|
54
|
+
- desember
|
55
|
+
abbr_month_names:
|
56
|
+
- ~
|
57
|
+
- jan
|
58
|
+
- feb
|
59
|
+
- mar
|
60
|
+
- apr
|
61
|
+
- mai
|
62
|
+
- jun
|
63
|
+
- jul
|
64
|
+
- aug
|
65
|
+
- sep
|
66
|
+
- okt
|
67
|
+
- nov
|
68
|
+
- des
|
69
|
+
order:
|
70
|
+
- :day
|
71
|
+
- :month
|
72
|
+
- :year
|
73
|
+
time:
|
74
|
+
formats:
|
75
|
+
default: "%A, %e. %B %Y, %H:%M"
|
76
|
+
short: "%e. %B, %H:%M"
|
77
|
+
long: "%A, %e. %B %Y, %H:%M"
|
78
|
+
am: ""
|
79
|
+
pm: ""
|
80
|
+
datetime:
|
81
|
+
distance_in_words:
|
82
|
+
half_a_minute: "et halvt minutt"
|
83
|
+
less_than_x_seconds:
|
84
|
+
one: "mindre enn 1 sekund"
|
85
|
+
other: "mindre enn %{count} sekunder"
|
86
|
+
x_seconds:
|
87
|
+
one: "1 sekund"
|
88
|
+
other: "%{count} sekunder"
|
89
|
+
less_than_x_minutes:
|
90
|
+
one: "mindre enn 1 minutt"
|
91
|
+
other: "mindre enn %{count} minutter"
|
92
|
+
x_minutes:
|
93
|
+
one: "1 minutt"
|
94
|
+
other: "%{count} minutter"
|
95
|
+
about_x_hours:
|
96
|
+
one: "rundt 1 time"
|
97
|
+
other: "rundt %{count} timer"
|
98
|
+
x_days:
|
99
|
+
one: "1 dag"
|
100
|
+
other: "%{count} dager"
|
101
|
+
about_x_months:
|
102
|
+
one: "rundt 1 måned"
|
103
|
+
other: "rundt %{count} måneder"
|
104
|
+
x_months:
|
105
|
+
one: "1 måned"
|
106
|
+
other: "%{count} måneder"
|
107
|
+
about_x_years:
|
108
|
+
one: "rundt 1 år"
|
109
|
+
other: "rundt %{count} år"
|
110
|
+
over_x_years:
|
111
|
+
one: "over 1 år"
|
112
|
+
other: "over %{count} år"
|
113
|
+
almost_x_years:
|
114
|
+
one: "nesten 1 år"
|
115
|
+
other: "nesten %{count} år"
|
116
|
+
prompts:
|
117
|
+
year: "År"
|
118
|
+
month: "Måned"
|
119
|
+
day: "Dag"
|
120
|
+
hour: "Time"
|
121
|
+
minute: "Minutt"
|
122
|
+
second: "Sekund"
|
123
|
+
number:
|
124
|
+
format: &number_format
|
125
|
+
precision: 2
|
126
|
+
separator: ","
|
127
|
+
delimiter: " "
|
128
|
+
significant: false
|
129
|
+
strip_insignificant_zeros: true
|
130
|
+
currency:
|
131
|
+
format:
|
132
|
+
unit: "kr"
|
133
|
+
format: "%n %u"
|
134
|
+
<<: *number_format
|
135
|
+
precision:
|
136
|
+
format:
|
137
|
+
delimiter: ""
|
138
|
+
human:
|
139
|
+
format:
|
140
|
+
precision: 1
|
141
|
+
separator: ","
|
142
|
+
delimiter: " "
|
143
|
+
significant: false
|
144
|
+
strip_insignificant_zeros: true
|
145
|
+
storage_units:
|
146
|
+
# Storage units output formatting.
|
147
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
148
|
+
format: "%n %u"
|
149
|
+
units:
|
150
|
+
byte:
|
151
|
+
one: "Byte"
|
152
|
+
other: "Bytes"
|
153
|
+
kb: "kB"
|
154
|
+
mb: "MB"
|
155
|
+
gb: "GB"
|
156
|
+
tb: "TB"
|
157
|
+
decimal_units:
|
158
|
+
format: "%n %u"
|
159
|
+
units:
|
160
|
+
unit: ""
|
161
|
+
thousand: "tusen"
|
162
|
+
million:
|
163
|
+
one: "million"
|
164
|
+
other: "millioner"
|
165
|
+
billion:
|
166
|
+
one: "milliard"
|
167
|
+
other: "milliarder"
|
168
|
+
trillion:
|
169
|
+
one: "billion"
|
170
|
+
other: "billioner"
|
171
|
+
quadrillion:
|
172
|
+
one: "billiard"
|
173
|
+
other: "billiarder"
|
174
|
+
|
175
|
+
percentage:
|
176
|
+
format:
|
177
|
+
delimiter: ""
|