ckpages 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/ckpages/application.coffee +9 -0
- data/app/assets/javascripts/ckpages/ckeditor_basepath.js +1 -0
- data/app/assets/javascripts/ckpages/ckeditor_init.js.erb +1 -0
- data/app/assets/javascripts/ckpages/ckeditor_replace.js.erb +16 -0
- data/app/assets/javascripts/ckpages/pages.js.coffee +39 -0
- data/app/assets/javascripts/ckpages/plugin_uploads.js.coffee +5 -0
- data/app/assets/stylesheets/ckpages/application.scss +34 -0
- data/app/controllers/ckpages/application_controller.rb +4 -0
- data/app/controllers/ckpages/ascendant404_controller.rb +13 -0
- data/app/controllers/ckpages/ascendant_controller.rb +19 -0
- data/app/controllers/ckpages/pages_controller.rb +66 -0
- data/app/controllers/ckpages/parts_controller.rb +63 -0
- data/app/controllers/ckpages/plugin_uploads_controller.rb +24 -0
- data/app/controllers/ckpages/uploads_controller.rb +41 -0
- data/app/helpers/ckpages/application_helper.rb +27 -0
- data/app/models/ckpages/page.rb +17 -0
- data/app/models/ckpages/part.rb +4 -0
- data/app/models/ckpages/upload.rb +5 -0
- data/app/uploaders/ckpages/application_uploader.rb +51 -0
- data/app/views/application/_ckpart.html.erb +1 -0
- data/app/views/ckpages/pages/_form.html.erb +35 -0
- data/app/views/ckpages/pages/edit.html.erb +5 -0
- data/app/views/ckpages/pages/index.html.erb +52 -0
- data/app/views/ckpages/pages/new.html.erb +5 -0
- data/app/views/ckpages/pages/show.html.erb +96 -0
- data/app/views/ckpages/parts/_form.html.erb +14 -0
- data/app/views/ckpages/parts/edit.html.erb +6 -0
- data/app/views/ckpages/parts/index.html.erb +44 -0
- data/app/views/ckpages/parts/new.html.erb +6 -0
- data/app/views/ckpages/parts/show.html.erb +21 -0
- data/app/views/ckpages/plugin_uploads/index.html.erb +23 -0
- data/app/views/ckpages/public/show.html.erb +19 -0
- data/app/views/ckpages/public404/show.html.erb +19 -0
- data/app/views/ckpages/uploads/index.html.erb +35 -0
- data/app/views/ckpages/uploads/show.html.erb +13 -0
- data/app/views/layouts/ckpages/application.html.erb +24 -0
- data/config/initializers/carrierwave.rb +1 -0
- data/config/initializers/simple_form.rb +166 -0
- data/config/initializers/simple_form_bootstrap.rb +136 -0
- data/config/locales/ru.yml +42 -0
- data/config/locales/simple_form.en.yml +31 -0
- data/config/routes.rb +29 -0
- data/db/migrate/20150424201308_create_ckpages_pages.rb +15 -0
- data/db/migrate/20150425115824_create_ckpages_uploads.rb +9 -0
- data/db/migrate/20150425152740_add_breadcrumb_to_ckpages_pages.rb +14 -0
- data/db/migrate/20150511111424_create_ckpages_parts.rb +10 -0
- data/db/migrate/20150819230152_add_columns_to_ckpages_uploads.rb +7 -0
- data/lib/ckpages.rb +12 -0
- data/lib/ckpages/engine.rb +8 -0
- data/lib/ckpages/version.rb +3 -0
- data/lib/tasks/ckpages_tasks.rake +4 -0
- data/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/ckpages/public404_controller.rb +3 -0
- data/test/dummy/app/controllers/ckpages/public_controller.rb +2 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/ckpages/public/show.html.erb +1 -0
- data/test/dummy/app/views/layouts/application.html.erb +35 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/ckpages.rb +1 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/locales/ru.yml +257 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/schema.rb +61 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.js +0 -0
- data/test/dummy/public/assets/application-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css +16 -0
- data/test/dummy/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot +0 -0
- data/test/dummy/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa42abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg +288 -0
- data/test/dummy/public/assets/bootstrap/glyphicons-halflings-regular-a26394f7ede100ca118eff2eda08596275a9839b959c226e15439557a5a80742.woff +0 -0
- data/test/dummy/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf +0 -0
- data/test/dummy/public/assets/bootstrap/glyphicons-halflings-regular-fe185d11a49676890d47bb783312a0cda5a44c4039214094e7957b4c040ef11c.woff2 +0 -0
- data/test/dummy/public/assets/ckpages/application-7743f5f42fc250d6d26375695a35e216ffb9f55bc3b9136f2ab0397aed2e91aa.css +5659 -0
- data/test/dummy/public/assets/ckpages/application-7a1ae892892ee8f88dc20d562ed46adc99be442a63038ba9be56d42c27dea964.js +121 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/fixtures/ckpages/pages.yml +21 -0
- data/test/integration/ckpages/public_test.rb +37 -0
- data/test/models/ckpages/page_test.rb +34 -0
- data/test/models/ckpages/upload_test.rb +9 -0
- data/test/test_helper.rb +20 -0
- metadata +334 -0
@@ -0,0 +1,79 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both threaded web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like
|
20
|
+
# NGINX, varnish or squid.
|
21
|
+
# config.action_dispatch.rack_cache = true
|
22
|
+
|
23
|
+
# Disable serving static files from the `/public` folder by default since
|
24
|
+
# Apache or NGINX already handles this.
|
25
|
+
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
26
|
+
|
27
|
+
# Compress JavaScripts and CSS.
|
28
|
+
config.assets.js_compressor = :uglifier
|
29
|
+
# config.assets.css_compressor = :sass
|
30
|
+
|
31
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
32
|
+
config.assets.compile = false
|
33
|
+
|
34
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
35
|
+
# yet still be able to expire them through the digest params.
|
36
|
+
config.assets.digest = true
|
37
|
+
|
38
|
+
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
39
|
+
|
40
|
+
# Specifies the header that your server uses for sending files.
|
41
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
42
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
43
|
+
|
44
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
45
|
+
# config.force_ssl = true
|
46
|
+
|
47
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
48
|
+
# when problems arise.
|
49
|
+
config.log_level = :debug
|
50
|
+
|
51
|
+
# Prepend all log lines with the following tags.
|
52
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
53
|
+
|
54
|
+
# Use a different logger for distributed setups.
|
55
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
56
|
+
|
57
|
+
# Use a different cache store in production.
|
58
|
+
# config.cache_store = :mem_cache_store
|
59
|
+
|
60
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
61
|
+
# config.action_controller.asset_host = 'http://assets.example.com'
|
62
|
+
|
63
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
64
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
65
|
+
# config.action_mailer.raise_delivery_errors = false
|
66
|
+
|
67
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
68
|
+
# the I18n.default_locale when a translation cannot be found).
|
69
|
+
config.i18n.fallbacks = true
|
70
|
+
|
71
|
+
# Send deprecation notices to registered listeners.
|
72
|
+
config.active_support.deprecation = :notify
|
73
|
+
|
74
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
75
|
+
config.log_formatter = ::Logger::Formatter.new
|
76
|
+
|
77
|
+
# Do not dump schema after migrations.
|
78
|
+
config.active_record.dump_schema_after_migration = false
|
79
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static file server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_files = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Randomize the order test cases are executed.
|
35
|
+
config.active_support.test_order = :random
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr.
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
|
40
|
+
# Raises error for missing translations
|
41
|
+
# config.action_view.raise_on_missing_translations = true
|
42
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1 @@
|
|
1
|
+
Ckpages.enabled = true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,257 @@
|
|
1
|
+
ru:
|
2
|
+
offers:
|
3
|
+
one: предложение
|
4
|
+
few: предложения
|
5
|
+
many: предложений
|
6
|
+
other: предложения
|
7
|
+
accumulators: аккумуляторов
|
8
|
+
date:
|
9
|
+
abbr_day_names:
|
10
|
+
- Вс
|
11
|
+
- Пн
|
12
|
+
- Вт
|
13
|
+
- Ср
|
14
|
+
- Чт
|
15
|
+
- Пт
|
16
|
+
- Сб
|
17
|
+
abbr_month_names:
|
18
|
+
-
|
19
|
+
- янв.
|
20
|
+
- февр.
|
21
|
+
- марта
|
22
|
+
- апр.
|
23
|
+
- мая
|
24
|
+
- июня
|
25
|
+
- июля
|
26
|
+
- авг.
|
27
|
+
- сент.
|
28
|
+
- окт.
|
29
|
+
- нояб.
|
30
|
+
- дек.
|
31
|
+
day_names:
|
32
|
+
- воскресенье
|
33
|
+
- понедельник
|
34
|
+
- вторник
|
35
|
+
- среда
|
36
|
+
- четверг
|
37
|
+
- пятница
|
38
|
+
- суббота
|
39
|
+
formats:
|
40
|
+
default: ! '%d.%m.%Y'
|
41
|
+
long: ! '%-d %B %Y'
|
42
|
+
short: ! '%-d %b'
|
43
|
+
month_names:
|
44
|
+
-
|
45
|
+
- января
|
46
|
+
- февраля
|
47
|
+
- марта
|
48
|
+
- апреля
|
49
|
+
- мая
|
50
|
+
- июня
|
51
|
+
- июля
|
52
|
+
- августа
|
53
|
+
- сентября
|
54
|
+
- октября
|
55
|
+
- ноября
|
56
|
+
- декабря
|
57
|
+
order:
|
58
|
+
- :day
|
59
|
+
- :month
|
60
|
+
- :year
|
61
|
+
datetime:
|
62
|
+
distance_in_words:
|
63
|
+
about_x_hours:
|
64
|
+
few: около %{count} часов
|
65
|
+
many: около %{count} часов
|
66
|
+
one: около %{count} часа
|
67
|
+
other: около %{count} часа
|
68
|
+
about_x_months:
|
69
|
+
few: около %{count} месяцев
|
70
|
+
many: около %{count} месяцев
|
71
|
+
one: около %{count} месяца
|
72
|
+
other: около %{count} месяца
|
73
|
+
about_x_years:
|
74
|
+
few: около %{count} лет
|
75
|
+
many: около %{count} лет
|
76
|
+
one: около %{count} года
|
77
|
+
other: около %{count} лет
|
78
|
+
almost_x_years:
|
79
|
+
one: почти 1 год
|
80
|
+
few: почти %{count} года
|
81
|
+
many: почти %{count} лет
|
82
|
+
other: почти %{count} лет
|
83
|
+
half_a_minute: меньше минуты
|
84
|
+
less_than_x_minutes:
|
85
|
+
few: меньше %{count} минут
|
86
|
+
many: меньше %{count} минут
|
87
|
+
one: меньше %{count} минуты
|
88
|
+
other: меньше %{count} минуты
|
89
|
+
less_than_x_seconds:
|
90
|
+
few: меньше %{count} секунд
|
91
|
+
many: меньше %{count} секунд
|
92
|
+
one: меньше %{count} секунды
|
93
|
+
other: меньше %{count} секунды
|
94
|
+
over_x_years:
|
95
|
+
few: больше %{count} лет
|
96
|
+
many: больше %{count} лет
|
97
|
+
one: больше %{count} года
|
98
|
+
other: больше %{count} лет
|
99
|
+
x_days:
|
100
|
+
few: ! '%{count} дня'
|
101
|
+
many: ! '%{count} дней'
|
102
|
+
one: ! '%{count} день'
|
103
|
+
other: ! '%{count} дня'
|
104
|
+
x_minutes:
|
105
|
+
few: ! '%{count} минуты'
|
106
|
+
many: ! '%{count} минут'
|
107
|
+
one: ! '%{count} минуту'
|
108
|
+
other: ! '%{count} минуты'
|
109
|
+
x_months:
|
110
|
+
few: ! '%{count} месяца'
|
111
|
+
many: ! '%{count} месяцев'
|
112
|
+
one: ! '%{count} месяц'
|
113
|
+
other: ! '%{count} месяца'
|
114
|
+
x_seconds:
|
115
|
+
few: ! '%{count} секунды'
|
116
|
+
many: ! '%{count} секунд'
|
117
|
+
one: ! '%{count} секундy'
|
118
|
+
other: ! '%{count} секунды'
|
119
|
+
prompts:
|
120
|
+
day: День
|
121
|
+
hour: Часов
|
122
|
+
minute: Минут
|
123
|
+
month: Месяц
|
124
|
+
second: Секунд
|
125
|
+
year: Год
|
126
|
+
errors:
|
127
|
+
format: ! '%{attribute} %{message}'
|
128
|
+
messages:
|
129
|
+
accepted: нужно подтвердить
|
130
|
+
blank: не может быть пустым
|
131
|
+
confirmation: 'не совпадает со значением поля %{attribute}'
|
132
|
+
empty: не может быть пустым
|
133
|
+
equal_to: может иметь лишь значение, равное %{count}
|
134
|
+
even: может иметь лишь нечетное значение
|
135
|
+
exclusion: имеет зарезервированное значение
|
136
|
+
greater_than: может иметь значение большее %{count}
|
137
|
+
greater_than_or_equal_to: может иметь значение большее или равное %{count}
|
138
|
+
inclusion: имеет непредусмотренное значение
|
139
|
+
invalid: имеет неверное значение
|
140
|
+
less_than: может иметь значение меньшее чем %{count}
|
141
|
+
less_than_or_equal_to: может иметь значение меньшее или равное %{count}
|
142
|
+
not_a_number: не является числом
|
143
|
+
not_an_integer: не является целым числом
|
144
|
+
odd: может иметь лишь четное значение
|
145
|
+
record_invalid: ! 'Возникли ошибки: %{errors}'
|
146
|
+
taken: уже существует
|
147
|
+
too_long:
|
148
|
+
few: слишком большой длины (не может быть больше чем %{count} символа)
|
149
|
+
many: слишком большой длины (не может быть больше чем %{count} символов)
|
150
|
+
one: слишком большой длины (не может быть больше чем %{count} символ)
|
151
|
+
other: слишком большой длины (не может быть больше чем %{count} символа)
|
152
|
+
too_short:
|
153
|
+
few: недостаточной длины (не может быть меньше %{count} символов)
|
154
|
+
many: недостаточной длины (не может быть меньше %{count} символов)
|
155
|
+
one: недостаточной длины (не может быть меньше %{count} символа)
|
156
|
+
other: недостаточной длины (не может быть меньше %{count} символа)
|
157
|
+
wrong_length:
|
158
|
+
few: неверной длины (может быть длиной ровно %{count} символа)
|
159
|
+
many: неверной длины (может быть длиной ровно %{count} символов)
|
160
|
+
one: неверной длины (может быть длиной ровно %{count} символ)
|
161
|
+
other: неверной длины (может быть длиной ровно %{count} символа)
|
162
|
+
template:
|
163
|
+
body: ! 'Проблемы возникли со следующими полями:'
|
164
|
+
header:
|
165
|
+
few: ! '%{model}: сохранение не удалось из-за %{count} ошибок'
|
166
|
+
many: ! '%{model}: сохранение не удалось из-за %{count} ошибок'
|
167
|
+
one: ! '%{model}: сохранение не удалось из-за %{count} ошибки'
|
168
|
+
other: ! '%{model}: сохранение не удалось из-за %{count} ошибки'
|
169
|
+
helpers:
|
170
|
+
select:
|
171
|
+
prompt: ! 'Выберите: '
|
172
|
+
submit:
|
173
|
+
create: Создать %{model}
|
174
|
+
submit: Сохранить %{model}
|
175
|
+
update: Сохранить %{model}
|
176
|
+
number:
|
177
|
+
currency:
|
178
|
+
format:
|
179
|
+
delimiter: ! ' '
|
180
|
+
format: ! '%n %u'
|
181
|
+
precision: 2
|
182
|
+
separator: ','
|
183
|
+
significant: false
|
184
|
+
strip_insignificant_zeros: false
|
185
|
+
unit: руб.
|
186
|
+
format:
|
187
|
+
delimiter: ! ' '
|
188
|
+
precision: 3
|
189
|
+
separator: ','
|
190
|
+
significant: false
|
191
|
+
strip_insignificant_zeros: false
|
192
|
+
human:
|
193
|
+
decimal_units:
|
194
|
+
format: ! '%n %u'
|
195
|
+
units:
|
196
|
+
billion:
|
197
|
+
few: миллиардов
|
198
|
+
many: миллиардов
|
199
|
+
one: миллиард
|
200
|
+
other: миллиардов
|
201
|
+
million:
|
202
|
+
few: миллионов
|
203
|
+
many: миллионов
|
204
|
+
one: миллион
|
205
|
+
other: миллионов
|
206
|
+
quadrillion:
|
207
|
+
few: квадриллионов
|
208
|
+
many: квадриллионов
|
209
|
+
one: квадриллион
|
210
|
+
other: квадриллионов
|
211
|
+
thousand:
|
212
|
+
few: тысяч
|
213
|
+
many: тысяч
|
214
|
+
one: тысяча
|
215
|
+
other: тысяч
|
216
|
+
trillion:
|
217
|
+
few: триллионов
|
218
|
+
many: триллионов
|
219
|
+
one: триллион
|
220
|
+
other: триллионов
|
221
|
+
unit: ''
|
222
|
+
format:
|
223
|
+
delimiter: ''
|
224
|
+
precision: 1
|
225
|
+
significant: false
|
226
|
+
strip_insignificant_zeros: false
|
227
|
+
storage_units:
|
228
|
+
format: ! '%n %u'
|
229
|
+
units:
|
230
|
+
byte:
|
231
|
+
few: байта
|
232
|
+
many: байт
|
233
|
+
one: байт
|
234
|
+
other: байта
|
235
|
+
gb: ГБ
|
236
|
+
kb: КБ
|
237
|
+
mb: МБ
|
238
|
+
tb: ТБ
|
239
|
+
percentage:
|
240
|
+
format:
|
241
|
+
delimiter: ''
|
242
|
+
precision:
|
243
|
+
format:
|
244
|
+
delimiter: ''
|
245
|
+
support:
|
246
|
+
array:
|
247
|
+
last_word_connector: ! ' и '
|
248
|
+
two_words_connector: ! ' и '
|
249
|
+
words_connector: ! ', '
|
250
|
+
time:
|
251
|
+
am: утра
|
252
|
+
formats:
|
253
|
+
default: ! '%a, %d %b %Y, %H:%M:%S %z'
|
254
|
+
long: ! '%d %B %Y, %H:%M'
|
255
|
+
short: ! '%d %b, %H:%M'
|
256
|
+
news: ! '%d %B %Y'
|
257
|
+
pm: вечера
|