locomotivecms_steam 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.travis.yml +4 -0
  4. data/CHANGELOG.md +19 -0
  5. data/Gemfile +8 -0
  6. data/Gemfile.lock +188 -0
  7. data/LICENSE +20 -0
  8. data/README.md +36 -0
  9. data/Rakefile +17 -0
  10. data/bin/publish +28 -0
  11. data/config/locales/de.yml +157 -0
  12. data/config/locales/en.yml +189 -0
  13. data/config/locales/es.yml +133 -0
  14. data/config/locales/et.yml +154 -0
  15. data/config/locales/fr.yml +148 -0
  16. data/config/locales/it.yml +155 -0
  17. data/config/locales/nb.yml +191 -0
  18. data/config/locales/nl.yml +160 -0
  19. data/config/locales/pl.yml +203 -0
  20. data/config/locales/pt-BR.yml +139 -0
  21. data/config/locales/ru.yml +224 -0
  22. data/lib/locomotive/steam/core_ext.rb +5 -0
  23. data/lib/locomotive/steam/core_ext/array.rb +3 -0
  24. data/lib/locomotive/steam/core_ext/boolean/false.rb +3 -0
  25. data/lib/locomotive/steam/core_ext/boolean/true.rb +3 -0
  26. data/lib/locomotive/steam/core_ext/hash.rb +27 -0
  27. data/lib/locomotive/steam/core_ext/string.rb +8 -0
  28. data/lib/locomotive/steam/exceptions.rb +62 -0
  29. data/lib/locomotive/steam/initializers.rb +5 -0
  30. data/lib/locomotive/steam/initializers/i18n.rb +3 -0
  31. data/lib/locomotive/steam/initializers/markdown.rb +27 -0
  32. data/lib/locomotive/steam/initializers/will_paginate.rb +16 -0
  33. data/lib/locomotive/steam/liquid.rb +22 -0
  34. data/lib/locomotive/steam/liquid/drops/base.rb +46 -0
  35. data/lib/locomotive/steam/liquid/drops/content_entry.rb +48 -0
  36. data/lib/locomotive/steam/liquid/drops/content_types.rb +117 -0
  37. data/lib/locomotive/steam/liquid/drops/page.rb +28 -0
  38. data/lib/locomotive/steam/liquid/drops/session_proxy.rb +18 -0
  39. data/lib/locomotive/steam/liquid/drops/site.rb +26 -0
  40. data/lib/locomotive/steam/liquid/errors.rb +17 -0
  41. data/lib/locomotive/steam/liquid/filters/date.rb +136 -0
  42. data/lib/locomotive/steam/liquid/filters/html.rb +188 -0
  43. data/lib/locomotive/steam/liquid/filters/misc.rb +49 -0
  44. data/lib/locomotive/steam/liquid/filters/resize.rb +18 -0
  45. data/lib/locomotive/steam/liquid/filters/text.rb +55 -0
  46. data/lib/locomotive/steam/liquid/filters/translate.rb +28 -0
  47. data/lib/locomotive/steam/liquid/patches.rb +47 -0
  48. data/lib/locomotive/steam/liquid/scopeable.rb +149 -0
  49. data/lib/locomotive/steam/liquid/tags/consume.rb +97 -0
  50. data/lib/locomotive/steam/liquid/tags/csrf.rb +34 -0
  51. data/lib/locomotive/steam/liquid/tags/editable.rb +6 -0
  52. data/lib/locomotive/steam/liquid/tags/editable/base.rb +50 -0
  53. data/lib/locomotive/steam/liquid/tags/editable/control.rb +19 -0
  54. data/lib/locomotive/steam/liquid/tags/editable/file.rb +15 -0
  55. data/lib/locomotive/steam/liquid/tags/editable/long_text.rb +15 -0
  56. data/lib/locomotive/steam/liquid/tags/editable/short_text.rb +20 -0
  57. data/lib/locomotive/steam/liquid/tags/editable/text.rb +15 -0
  58. data/lib/locomotive/steam/liquid/tags/extends.rb +25 -0
  59. data/lib/locomotive/steam/liquid/tags/google_analytics.rb +28 -0
  60. data/lib/locomotive/steam/liquid/tags/hybrid.rb +27 -0
  61. data/lib/locomotive/steam/liquid/tags/inline_editor.rb +16 -0
  62. data/lib/locomotive/steam/liquid/tags/link_to.rb +56 -0
  63. data/lib/locomotive/steam/liquid/tags/locale_switcher.rb +106 -0
  64. data/lib/locomotive/steam/liquid/tags/nav.rb +287 -0
  65. data/lib/locomotive/steam/liquid/tags/paginate.rb +105 -0
  66. data/lib/locomotive/steam/liquid/tags/path_helper.rb +98 -0
  67. data/lib/locomotive/steam/liquid/tags/path_to.rb +36 -0
  68. data/lib/locomotive/steam/liquid/tags/seo.rb +74 -0
  69. data/lib/locomotive/steam/liquid/tags/session_assign.rb +41 -0
  70. data/lib/locomotive/steam/liquid/tags/snippet.rb +63 -0
  71. data/lib/locomotive/steam/liquid/tags/with_scope.rb +44 -0
  72. data/lib/locomotive/steam/listen.rb +64 -0
  73. data/lib/locomotive/steam/logger.rb +54 -0
  74. data/lib/locomotive/steam/monkey_patches.rb +5 -0
  75. data/lib/locomotive/steam/monkey_patches/better_errors.rb +70 -0
  76. data/lib/locomotive/steam/monkey_patches/dragonfly.rb +79 -0
  77. data/lib/locomotive/steam/monkey_patches/haml.rb +15 -0
  78. data/lib/locomotive/steam/monkey_patches/httparty.rb +46 -0
  79. data/lib/locomotive/steam/monkey_patches/mounter.rb +32 -0
  80. data/lib/locomotive/steam/server.rb +81 -0
  81. data/lib/locomotive/steam/server/dynamic_assets.rb +33 -0
  82. data/lib/locomotive/steam/server/entry_submission.rb +120 -0
  83. data/lib/locomotive/steam/server/favicon.rb +18 -0
  84. data/lib/locomotive/steam/server/locale.rb +42 -0
  85. data/lib/locomotive/steam/server/logging.rb +32 -0
  86. data/lib/locomotive/steam/server/middleware.rb +61 -0
  87. data/lib/locomotive/steam/server/page.rb +69 -0
  88. data/lib/locomotive/steam/server/path.rb +34 -0
  89. data/lib/locomotive/steam/server/renderer.rb +118 -0
  90. data/lib/locomotive/steam/server/templatized_page.rb +32 -0
  91. data/lib/locomotive/steam/server/timezone.rb +18 -0
  92. data/lib/locomotive/steam/standalone_server.rb +33 -0
  93. data/lib/locomotive/steam/version.rb +5 -0
  94. data/lib/steam.rb +4 -0
  95. data/locomotivecms_steam.gemspec +42 -0
  96. data/spec/fixtures/default/README +0 -0
  97. data/spec/fixtures/default/app/content_types/bands.yml +19 -0
  98. data/spec/fixtures/default/app/content_types/events.yml +25 -0
  99. data/spec/fixtures/default/app/content_types/messages.yml +17 -0
  100. data/spec/fixtures/default/app/content_types/songs.yml +25 -0
  101. data/spec/fixtures/default/app/content_types/updates.yml +33 -0
  102. data/spec/fixtures/default/app/views/pages/404.liquid.haml +10 -0
  103. data/spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml +7 -0
  104. data/spec/fixtures/default/app/views/pages/about_us.liquid.haml +21 -0
  105. data/spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml +4 -0
  106. data/spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml +4 -0
  107. data/spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml +5 -0
  108. data/spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml +6 -0
  109. data/spec/fixtures/default/app/views/pages/all.liquid.haml +13 -0
  110. data/spec/fixtures/default/app/views/pages/archives/news.liquid.haml +10 -0
  111. data/spec/fixtures/default/app/views/pages/contact.liquid.haml +54 -0
  112. data/spec/fixtures/default/app/views/pages/contest.liquid.haml +18 -0
  113. data/spec/fixtures/default/app/views/pages/events.liquid.haml +42 -0
  114. data/spec/fixtures/default/app/views/pages/filtered.liquid.haml +10 -0
  115. data/spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml +8 -0
  116. data/spec/fixtures/default/app/views/pages/index.fr.liquid.haml +3 -0
  117. data/spec/fixtures/default/app/views/pages/index.liquid.haml +100 -0
  118. data/spec/fixtures/default/app/views/pages/music.fr.liquid.haml +4 -0
  119. data/spec/fixtures/default/app/views/pages/music.liquid.haml +42 -0
  120. data/spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml +16 -0
  121. data/spec/fixtures/default/app/views/pages/songs/template.liquid.haml +18 -0
  122. data/spec/fixtures/default/app/views/pages/songs/template/band.liquid.haml +16 -0
  123. data/spec/fixtures/default/app/views/pages/store.fr.liquid.haml +5 -0
  124. data/spec/fixtures/default/app/views/pages/store.liquid +5 -0
  125. data/spec/fixtures/default/app/views/pages/tags/nav.liquid.haml +6 -0
  126. data/spec/fixtures/default/app/views/pages/tags/nav_in_deep.liquid.haml +6 -0
  127. data/spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml +9 -0
  128. data/spec/fixtures/default/app/views/snippets/A_Complicated-one.liquid.haml +1 -0
  129. data/spec/fixtures/default/app/views/snippets/footer.liquid.haml +6 -0
  130. data/spec/fixtures/default/app/views/snippets/header.liquid.haml +1 -0
  131. data/spec/fixtures/default/app/views/snippets/song.fr.liquid.haml +8 -0
  132. data/spec/fixtures/default/app/views/snippets/song.liquid +12 -0
  133. data/spec/fixtures/default/config/deploy.yml +12 -0
  134. data/spec/fixtures/default/config/deploy_example.yml +12 -0
  135. data/spec/fixtures/default/config/site.yml +15 -0
  136. data/spec/fixtures/default/config/translations.yml +3 -0
  137. data/spec/fixtures/default/data/bands.yml +10 -0
  138. data/spec/fixtures/default/data/events.yml +53 -0
  139. data/spec/fixtures/default/data/songs.yml +46 -0
  140. data/spec/fixtures/default/data/updates.yml +48 -0
  141. data/spec/fixtures/default/public/fonts/chunkfive-webfont.eot +0 -0
  142. data/spec/fixtures/default/public/fonts/chunkfive-webfont.svg +213 -0
  143. data/spec/fixtures/default/public/fonts/chunkfive-webfont.ttf +0 -0
  144. data/spec/fixtures/default/public/fonts/chunkfive-webfont.woff +0 -0
  145. data/spec/fixtures/default/public/fonts/chunkfive.css +8 -0
  146. data/spec/fixtures/default/public/fonts/chunkfive.otf +0 -0
  147. data/spec/fixtures/default/public/images/nav_on.png +0 -0
  148. data/spec/fixtures/default/public/images/photo_frame.png +0 -0
  149. data/spec/fixtures/default/public/images/sep.png +0 -0
  150. data/spec/fixtures/default/public/images/top.jpg +0 -0
  151. data/spec/fixtures/default/public/javascripts/application.js.coffee +2 -0
  152. data/spec/fixtures/default/public/javascripts/common.js +1 -0
  153. data/spec/fixtures/default/public/samples/asset_collections/cover.jpg +0 -0
  154. data/spec/fixtures/default/public/samples/photo.jpg +0 -0
  155. data/spec/fixtures/default/public/samples/photo_2.jpg +0 -0
  156. data/spec/fixtures/default/public/stylesheets/application.css +64 -0
  157. data/spec/fixtures/default/public/stylesheets/other/extra.css.less +8 -0
  158. data/spec/fixtures/default/public/stylesheets/other/style.css.scss +13 -0
  159. data/spec/fixtures/default/public/stylesheets/reboot.css +82 -0
  160. data/spec/integration/integration_helper.rb +15 -0
  161. data/spec/integration/server/basic_spec.rb +170 -0
  162. data/spec/integration/server/contact_form_spec.rb +111 -0
  163. data/spec/integration/server/liquid_spec.rb +91 -0
  164. data/spec/integration/server/with_scope_spec.rb +20 -0
  165. data/spec/locales/locales_spec.rb +22 -0
  166. data/spec/spec_helper.rb +21 -0
  167. data/spec/support.rb +4 -0
  168. data/spec/support/examples/locale_file.rb +14 -0
  169. data/spec/support/examples/matching_locale.rb +8 -0
  170. data/spec/support/helpers.rb +22 -0
  171. data/spec/support/matchers/hash.rb +5 -0
  172. metadata +564 -0
@@ -0,0 +1,148 @@
1
+ fr:
2
+ locomotive:
3
+ locales:
4
+ en: Anglais
5
+ de: Allemand
6
+ fr: Français
7
+ pl: Polonais
8
+ pt-BR: "Portugais"
9
+ it: "Italien"
10
+ nl: "Hollandais"
11
+ nb: "Norvégien"
12
+ es: Espagnol
13
+ ru: Russe
14
+ et: Estonien
15
+ ja: Japonais
16
+
17
+ errors:
18
+ messages:
19
+ blank: "doit être rempli(e)"
20
+
21
+ pagination:
22
+ previous: "« Précédent"
23
+ next: "Suivant »"
24
+ date:
25
+ formats:
26
+ default: "%d/%m/%Y"
27
+ short: "%e %b"
28
+ long: "%e %B %Y"
29
+ long_ordinal: "%e %B %Y"
30
+ only_day: "%e"
31
+
32
+ day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
33
+ abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
34
+ # month_names: [~, janvier, février, mars, avril, mai, juin, juillet, août, septembre, octobre, novembre, décembre]
35
+ # abbr_month_names: [~, jan., fév., mar., avr., mai, juin, juil., août, sept., oct., nov., déc.]
36
+ month_names:
37
+ - ~
38
+ - janvier
39
+ - février
40
+ - mars
41
+ - avril
42
+ - mai
43
+ - juin
44
+ - juillet
45
+ - août
46
+ - septembre
47
+ - octobre
48
+ - novembre
49
+ - décembre
50
+ abbr_month_names:
51
+ - ~
52
+ - jan.
53
+ - fév.
54
+ - mar.
55
+ - avr.
56
+ - mai
57
+ - juin
58
+ - juil.
59
+ - août
60
+ - sept.
61
+ - oct.
62
+ - nov.
63
+ - déc.
64
+ order: [day, month, year]
65
+
66
+ time:
67
+ formats:
68
+ default: "%d %B %Y %H:%M"
69
+ time: "%H:%M"
70
+ short: "%d %b %H:%M"
71
+ long: "%A %d %B %Y %H:%M:%S %Z"
72
+ long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
73
+ only_second: "%S"
74
+ am: 'am'
75
+ pm: 'pm'
76
+
77
+ datetime:
78
+ distance_in_words:
79
+ half_a_minute: "une demi-minute"
80
+ less_than_x_seconds:
81
+ zero: "moins d'une seconde"
82
+ one: "moins de 1 seconde"
83
+ other: "moins de %{count} secondes"
84
+ x_seconds:
85
+ one: "1 seconde"
86
+ other: "%{count} secondes"
87
+ less_than_x_minutes:
88
+ zero: "moins d'une minute"
89
+ one: "moins de 1 minute"
90
+ other: "moins de %{count} minutes"
91
+ x_minutes:
92
+ one: "1 minute"
93
+ other: "%{count} minutes"
94
+ about_x_hours:
95
+ one: "environ une heure"
96
+ other: "environ %{count} heures"
97
+ x_days:
98
+ one: "1 jour"
99
+ other: "%{count} jours"
100
+ about_x_months:
101
+ one: "environ un mois"
102
+ other: "environ %{count} mois"
103
+ x_months:
104
+ one: "1 mois"
105
+ other: "%{count} mois"
106
+ about_x_years:
107
+ one: "environ un an"
108
+ other: "environ %{count} ans"
109
+ over_x_years:
110
+ one: "plus d'un an"
111
+ other: "plus de %{count} ans"
112
+ prompts:
113
+ year: "Année"
114
+ month: "Mois"
115
+ day: "Jour"
116
+ hour: "Heure"
117
+ minute: "Minute"
118
+ second: "Seconde"
119
+
120
+ number:
121
+ format:
122
+ precision: 3
123
+ separator: ','
124
+ delimiter: ' '
125
+ currency:
126
+ format:
127
+ unit: '€'
128
+ precision: 2
129
+ format: '%n %u'
130
+ human:
131
+ format:
132
+ precision: 2
133
+ storage_units:
134
+ format: '%n %u'
135
+ units:
136
+ byte: 'Octet'
137
+ kb: 'ko'
138
+ mb: 'Mo'
139
+ gb: 'Go'
140
+ tb: 'To'
141
+
142
+ support:
143
+ array:
144
+ sentence_connector: 'et'
145
+ skip_last_comma: true
146
+ words_connector: ", "
147
+ two_words_connector: " et "
148
+ last_word_connector: " et "
@@ -0,0 +1,155 @@
1
+ it:
2
+ locomotive:
3
+ locales:
4
+ en: Inglese
5
+ de: Tedesco
6
+ fr: Francese
7
+ pl: Polacco
8
+ pt-BR: "Portoghese Brasiliano"
9
+ it: Italiano
10
+ nl: Olandese
11
+ nb: Norvegese
12
+ es: Spagnolo
13
+ ru: Russo
14
+ et: Estone
15
+
16
+ errors:
17
+ messages:
18
+ blank: "non può essere lasciato in bianco"
19
+
20
+ pagination:
21
+ previous: "« Precedente"
22
+ next: "Successiva »"
23
+
24
+ date:
25
+ formats:
26
+ default: "%d/%m/%Y"
27
+ short: "%d %b"
28
+ long: "%d %B %Y"
29
+ long_ordinal: "%d %B %Y"
30
+ only_day: "%e"
31
+
32
+ day_names: [Domenica, Lunedì, Martedì, Mercoledì, Giovedì, Venerdì, Sabato]
33
+ abbr_day_names: [Dom, Lun, Mar, Mer, Gio, Ven, Sab]
34
+ month_names: [~, Gennaio, Febbraio, Marzo, Aprile, Maggio, Giugno, Luglio, Agosto, Settembre, Ottobre, Novembre, Dicembre]
35
+ abbr_month_names: [~, Gen, Feb, Mar, Apr, Mag, Giu, Lug, Ago, Set, Ott, Nov, Dic]
36
+ order: [day, month, year]
37
+
38
+ time:
39
+ formats:
40
+ default: "%a %d %b %Y, %H:%M:%S %z"
41
+ time: "%H:%M"
42
+ short: "%d %b %H:%M"
43
+ long: "%d %B %Y %H:%M"
44
+ long_ordinal: "%d %B %Y %H:%M"
45
+ only_second: "%S"
46
+ am: 'am'
47
+ pm: 'pm'
48
+
49
+ datetime:
50
+ distance_in_words:
51
+ half_a_minute: "mezzo minuto"
52
+ less_than_x_seconds:
53
+ one: "meno di un secondo"
54
+ other: "meno di %{count} secondi"
55
+ x_seconds:
56
+ one: "1 secondo"
57
+ other: "%{count} secondi"
58
+ less_than_x_minutes:
59
+ one: "meno di un minuto"
60
+ other: "meno di %{count} minuti"
61
+ x_minutes:
62
+ one: "1 minuto"
63
+ other: "%{count} minuti"
64
+ about_x_hours:
65
+ one: "circa un'ora"
66
+ other: "circa %{count} ore"
67
+ x_days:
68
+ one: "1 giorno"
69
+ other: "%{count} giorni"
70
+ about_x_months:
71
+ one: "circa un mese"
72
+ other: "circa %{count} mesi"
73
+ x_months:
74
+ one: "1 mese"
75
+ other: "%{count} mesi"
76
+ about_x_years:
77
+ one: "circa un anno"
78
+ other: "circa %{count} anni"
79
+ over_x_years:
80
+ one: "oltre un anno"
81
+ other: "oltre %{count} anni"
82
+ almost_x_years:
83
+ one: "circa 1 anno"
84
+ other: "circa %{count} anni"
85
+ prompts:
86
+ year: "Anno"
87
+ month: "Mese"
88
+ day: "Giorno"
89
+ hour: "Ora"
90
+ minute: "Minuto"
91
+ second: "Secondi"
92
+
93
+ number:
94
+ format:
95
+ delimiter: ""
96
+ precision: 2
97
+ significant: false
98
+ strip_insignificant_zeros: false
99
+ separator: "."
100
+
101
+ currency:
102
+ format:
103
+ format: "%n %u"
104
+ unit: "€"
105
+ separator: "."
106
+ delimiter: ","
107
+ precision: 2
108
+ significant: false
109
+ strip_insignificant_zeros: false
110
+
111
+ percentage:
112
+ format:
113
+ delimiter: ""
114
+ # precision:
115
+
116
+ precision:
117
+ format:
118
+ # separator:
119
+ delimiter: ""
120
+ # precision:
121
+
122
+ human:
123
+ format:
124
+ # separator:
125
+ delimiter: ""
126
+ precision: 1
127
+ significant: true
128
+ strip_insignificant_zeros: true
129
+ storage_units:
130
+ format: "%n %u"
131
+ units:
132
+ byte:
133
+ one: "Byte"
134
+ other: "Byte"
135
+ kb: "Kb"
136
+ mb: "Mb"
137
+ gb: "Gb"
138
+ tb: "Tb"
139
+ decimal_units:
140
+ format: "%n %u"
141
+ units:
142
+ unit: ""
143
+ thousand: "Mila"
144
+ million: "Milioni"
145
+ billion: "Miliardi"
146
+ trillion: "Bilioni"
147
+ quadrillion: "Biliardi"
148
+
149
+ support:
150
+ array:
151
+ sentence_connector: 'e'
152
+ skip_last_comma: true
153
+ words_connector: ", "
154
+ two_words_connector: " e "
155
+ last_word_connector: " e "
@@ -0,0 +1,191 @@
1
+ nb:
2
+ locomotive:
3
+ locales:
4
+ en: Engelsk
5
+ de: Tysk
6
+ fr: Fransk
7
+ pl: Polsk
8
+ pt-BR: "Brazilian Portuguese"
9
+ it: Italiensk
10
+ nl: Nederlandsk
11
+ nb: Norsk
12
+ es: Spansk
13
+ ru: Russisk
14
+ et: Estisk
15
+
16
+ date:
17
+ formats:
18
+ default: "%d.%m.%Y"
19
+
20
+ errors:
21
+ messages:
22
+ blank: "kan ikke være blank"
23
+
24
+ pagination:
25
+ previous: "« Previous"
26
+ next: "Next »"
27
+ support:
28
+ array:
29
+ words_connector: ", "
30
+ two_words_connector: " og "
31
+ last_word_connector: " og "
32
+ select:
33
+ prompt: "Velg"
34
+ date:
35
+ formats:
36
+ default: "%d.%m.%Y"
37
+ short: "%e. %b"
38
+ long: "%e. %B %Y"
39
+ day_names:
40
+ - søndag
41
+ - mandag
42
+ - tirsdag
43
+ - onsdag
44
+ - torsdag
45
+ - fredag
46
+ - lørdag
47
+ abbr_day_names:
48
+ - søn
49
+ - man
50
+ - tir
51
+ - ons
52
+ - tor
53
+ - fre
54
+ - lør
55
+ month_names:
56
+ - ~
57
+ - januar
58
+ - februar
59
+ - mars
60
+ - april
61
+ - mai
62
+ - juni
63
+ - juli
64
+ - august
65
+ - september
66
+ - oktober
67
+ - november
68
+ - desember
69
+ abbr_month_names:
70
+ - ~
71
+ - jan
72
+ - feb
73
+ - mar
74
+ - apr
75
+ - mai
76
+ - jun
77
+ - jul
78
+ - aug
79
+ - sep
80
+ - okt
81
+ - nov
82
+ - des
83
+ order:
84
+ - :day
85
+ - :month
86
+ - :year
87
+ time:
88
+ formats:
89
+ default: "%A, %e. %B %Y, %H:%M"
90
+ short: "%e. %B, %H:%M"
91
+ long: "%A, %e. %B %Y, %H:%M"
92
+ am: ""
93
+ pm: ""
94
+ datetime:
95
+ distance_in_words:
96
+ half_a_minute: "et halvt minutt"
97
+ less_than_x_seconds:
98
+ one: "mindre enn 1 sekund"
99
+ other: "mindre enn %{count} sekunder"
100
+ x_seconds:
101
+ one: "1 sekund"
102
+ other: "%{count} sekunder"
103
+ less_than_x_minutes:
104
+ one: "mindre enn 1 minutt"
105
+ other: "mindre enn %{count} minutter"
106
+ x_minutes:
107
+ one: "1 minutt"
108
+ other: "%{count} minutter"
109
+ about_x_hours:
110
+ one: "rundt 1 time"
111
+ other: "rundt %{count} timer"
112
+ x_days:
113
+ one: "1 dag"
114
+ other: "%{count} dager"
115
+ about_x_months:
116
+ one: "rundt 1 måned"
117
+ other: "rundt %{count} måneder"
118
+ x_months:
119
+ one: "1 måned"
120
+ other: "%{count} måneder"
121
+ about_x_years:
122
+ one: "rundt 1 år"
123
+ other: "rundt %{count} år"
124
+ over_x_years:
125
+ one: "over 1 år"
126
+ other: "over %{count} år"
127
+ almost_x_years:
128
+ one: "nesten 1 år"
129
+ other: "nesten %{count} år"
130
+ prompts:
131
+ year: "År"
132
+ month: "Måned"
133
+ day: "Dag"
134
+ hour: "Time"
135
+ minute: "Minutt"
136
+ second: "Sekund"
137
+ number:
138
+ format: &number_format
139
+ precision: 2
140
+ separator: ","
141
+ delimiter: " "
142
+ significant: false
143
+ strip_insignificant_zeros: true
144
+ currency:
145
+ format:
146
+ unit: "kr"
147
+ format: "%n %u"
148
+ <<: *number_format
149
+ precision:
150
+ format:
151
+ delimiter: ""
152
+ human:
153
+ format:
154
+ precision: 1
155
+ separator: ","
156
+ delimiter: " "
157
+ significant: false
158
+ strip_insignificant_zeros: true
159
+ storage_units:
160
+ # Storage units output formatting.
161
+ # %u is the storage unit, %n is the number (default: 2 MB)
162
+ format: "%n %u"
163
+ units:
164
+ byte:
165
+ one: "Byte"
166
+ other: "Bytes"
167
+ kb: "kB"
168
+ mb: "MB"
169
+ gb: "GB"
170
+ tb: "TB"
171
+ decimal_units:
172
+ format: "%n %u"
173
+ units:
174
+ unit: ""
175
+ thousand: "tusen"
176
+ million:
177
+ one: "million"
178
+ other: "millioner"
179
+ billion:
180
+ one: "milliard"
181
+ other: "milliarder"
182
+ trillion:
183
+ one: "billion"
184
+ other: "billioner"
185
+ quadrillion:
186
+ one: "billiard"
187
+ other: "billiarder"
188
+
189
+ percentage:
190
+ format:
191
+ delimiter: ""