Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 4 compatibility + translations #9

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/spree/banner_box.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Spree
class BannerBox < ActiveRecord::Base
attr_accessible :presentation, :url, :category, :position, :enabled, :attachment
#attr_accessible :presentation, :url, :category, :position, :enabled, :attachment

has_attached_file :attachment,
:url => "/spree/banners/:id/:style_:basename.:extension",
Expand Down
4 changes: 2 additions & 2 deletions app/overrides/banner_admin_tab.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Deface::Override.new(:virtual_path => "spree/layouts/admin",
Deface::Override.new(:virtual_path => "spree/admin/shared/_menu",
:name => "banner_box_admin_tab",
:insert_bottom => "[data-hook='admin_tabs'], #admin_tabs[data-hook]",
:text => "<%= tab(:banner_boxes, :icon => 'icon-bookmark') %>")

Deface::Override.new(:virtual_path => "spree/admin/shared/_configuration_menu",
:name => "add_banner_box_settings",
:insert_bottom => "[data-hook='admin_configurations_sidebar_menu'], #admin_configurations_sidebar_menu[data-hook]",
:text => "<%= configurations_sidebar_menu_item(:banner_box_settings, edit_admin_banner_box_settings_url) %>")
:text => "<%= configurations_sidebar_menu_item(:banner_box_settings, edit_admin_banner_box_settings_url) %>")
43 changes: 43 additions & 0 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
ru:
images_only: "должен быть JPG, JPEG, PNG или GIF"
banner_box_settings: "Настройки Баннеров"
add_new_banner_style: "Добавить Новый Стиль Баннеров"
banner_box_settings_warning: "Вам нужно перегенерировать миниатюры изображений, если вы обновите стили paperclip. Используйте rake paperclip:refresh:thumbnails CLASS=Spree::Banner для этого."
banner_settings_description: "Описание настроек баннеров"
banner_settings_updated: "Настройки Баннеров успешно обновлены."
banner_default_style: "Путь к Баннерам по умолчанию"
banner_default_url: "URL по умолчанию"
banner_path: "Путь к Баннерам"
banner_styles: "Стили Баннера"
general_settings: "Основные настройки"
banner_url: "URL Баннеров"
back_to_banner_boxes_list: "Назад к списку баннеров"
new_banner_box: "Новый Баннер"
listing_banner_boxes: "Баннеры"
enabled: Включен?
url: Ссылка
attachment: Изображение
alt_text: Текст
thumbnail: Миниатюра
category: Категория
banner_boxes: Баннеры
banner_box: Баннер
notice_messages:
banner_box_cloned: "Баннер скопирован"
banner_box_not_cloned: "Баннер не может быть скопирован"
spree:
admin:
tab:
banner_boxes: "Баннеры"
banner_box_settings: "Настройки Баннеров"
activerecord:
models:
spree/banner_box:
one: Баннер
other: Баннеры
attributes:
spree/banner_box:
category: Категория
updated_at: Дата изменения
created_at: Дата создания
enabled: Включен?