Permalink
Browse files

Локализация

  • Loading branch information...
1 parent f312011 commit 0e366f1713f6bd6d1012796e510cd279d72f6eb4 @parallel588 parallel588 committed Dec 9, 2009
Showing with 49 additions and 22 deletions.
  1. +22 −9 config/locales/ru.yml
  2. +27 −13 db/seeds.rb
View
@@ -17,6 +17,9 @@ ru:
confirmed_head: Данные обмена
confirmed_submit: Продолжить
confirmed_edit: Редактировать
+ main_page: "Главная"
+ about_page: "О сервисе"
+ contact_page: "Контакты"
webmoney:
show:
head: Обмен
@@ -33,10 +36,10 @@ ru:
claim:
index:
head: Универсальная система обмена интернет валют
- change: Меняем
- on_change: на
- summa: Сумма
- submit: Продолжить
+ change: 'Я отдаю:'
+ on_change: 'Я получаю:'
+ summa: 'Количество:'
+ submit: ''
your claim: Ваша заявка
claim number: Номер заявки
@@ -58,11 +61,21 @@ ru:
reserve:
excess_reserve: В обменном пункте недостаточно средств для выполнения данной операции
models:
- claim: Заявка на обмен
- path_way: Способ обмена
- currency: Валюта
- payment_system: Платежные системы
- event: События
+ claim:
+ one: Заявка на обмен
+ other: Заявка на обмен
+ path_way:
+ one: Способ обмена
+ other: Способ обмена
+ currency:
+ one: Валюта
+ one: Список валют
+ payment_system:
+ one: Платежные системы
+ other: Платежные системы
+ event:
+ one: События
+ other: События
attributes:
claim:
path_way: Способ обмена
View
@@ -8,21 +8,32 @@
:setting => {:words => ["paypal","webmoney","money_bookers"] }
},
{ :code => "css", :name => "Css",
- :setting => {:css_prefix => "ver_1_" }
+ :setting => {:css => "style" }
},
])
PaymentSystem.create([ {
:controller => "webmoney",
- :name => "Webmoney",
+ :name => "WebmoneyWMR",
:parameters =>
{
:secret=>"[bnhjevysqblfkmuj",
:payee_purse=>"R324054665688",
:wmid => 329080303191,
:url => "https://merchant.webmoney.ru/lmi/payment.asp"
},
- :description => "Платежная система webmoney"
+ :description => "Платежная система webmoney WMR"
+ }, {
+ :controller => "webmoney",
+ :name => "WebmoneyWMZ",
+ :parameters =>
+ {
+ :secret=>"[bnhjevysqblfkmuj",
+ :payee_purse=>"Z351277807459",
+ :wmid => 329080303191,
+ :url => "https://merchant.webmoney.ru/lmi/payment.asp"
+ },
+ :description => "Платежная система webmoney WMZ"
}, {
:controller => "paypal",
:name => "PayPal",
@@ -40,25 +51,28 @@
}
} ] )
-webmoney = PaymentSystem.find_by_name "Webmoney"
+webmoney_wmr = PaymentSystem.find_by_name "WebmoneyWMR"
+webmoney_wmz = PaymentSystem.find_by_name "WebmoneyWMZ"
paypal = PaymentSystem.find_by_name "PayPal"
-webmoney.currencies.create([ {
- :name => "WMZ", :code => "WMZ",
- :description => "$"
- }, {
- :name => "WMR", :code => "WMR",
- :description => "Руб."
- } ])
+webmoney_wmr.currencies.create([{
+ :name => "WMR", :code => "WMR",
+ :description => "Руб."
+ } ])
+webmoney_wmz.currencies.create([ {
+ :name => "WMZ", :code => "WMZ",
+ :description => "$"
+ } ])
+
paypal.currencies.create([
{
:name => "PayPal USD", :code => "USD",
:description => "PayPal"
} ])
-wmz = webmoney.currencies.find_by_code "WMZ"
-wmr = webmoney.currencies.find_by_code "WMR"
+wmz = webmoney_wmz.currencies.find_by_code "WMZ"
+wmr = webmoney_wmr.currencies.find_by_code "WMR"
pl_usd = paypal.currencies.find_by_code "USD"

0 comments on commit 0e366f1

Please sign in to comment.