[Logilogi-svn] SF.net SVN: logilogi:[1668] trunk
Status: Beta
Brought to you by:
wybow
|
From: <wy...@us...> - 2010-01-27 23:02:13
|
Revision: 1668
http://logilogi.svn.sourceforge.net/logilogi/?rev=1668&view=rev
Author: wybow
Date: 2010-01-27 23:02:07 +0000 (Wed, 27 Jan 2010)
Log Message:
-----------
Minor fixes to config spelling and const translations
Modified Paths:
--------------
trunk/app/helpers/application_helper.rb
trunk/app/models/const/logi.rb
trunk/app/models/const/rating.rb
trunk/config/config.rb.tmpl
Modified: trunk/app/helpers/application_helper.rb
===================================================================
--- trunk/app/helpers/application_helper.rb 2010-01-27 21:18:31 UTC (rev 1667)
+++ trunk/app/helpers/application_helper.rb 2010-01-27 23:02:07 UTC (rev 1668)
@@ -363,12 +363,12 @@
def crosses_title(score)
return t('h.application.crosses_label', :count => (-1 * score)) + ' ' +
- Const::Rating::SCORES[score]
+ t(Const::Rating::SCORES[score])
end
def stars_title(score)
return t('h.application.stars_label', :count => score) + ' ' +
- Const::Rating::SCORES[score]
+ t(Const::Rating::SCORES[score])
end
def crosses_or_stars_title(score)
@@ -383,7 +383,7 @@
return self.crosses_title(score)
else
t('h.application.no_stars_nor_crosses_label') + ' ' +
- Const::Rating::SCORES[score]
+ t(Const::Rating::SCORES[score])
end
end
@@ -502,7 +502,7 @@
end
def restriction_text(restriction)
- Logi::RESTRICTIONS[restriction]
+ t(Logi::RESTRICTIONS[restriction])
end
def show_flash(options = {})
Modified: trunk/app/models/const/logi.rb
===================================================================
--- trunk/app/models/const/logi.rb 2010-01-27 21:18:31 UTC (rev 1667)
+++ trunk/app/models/const/logi.rb 2010-01-27 23:02:07 UTC (rev 1668)
@@ -4,11 +4,9 @@
# Restrictions
RESTRICTIONS = {
- 0 => I18n.t('m.const.everyone_edit'),
- 1 => I18n.t('m.const.owner_edit')
+ 0 => 'm.const.everyone_edit',
+ 1 => 'm.const.owner_edit'
}
- RESTRICTIONS_FOR_DROPDOWN = RESTRICTIONS.collect {|nr, name|
- [nr, name]}.sort
OVERSEER = 0
EDIT = 1
Modified: trunk/app/models/const/rating.rb
===================================================================
--- trunk/app/models/const/rating.rb 2010-01-27 21:18:31 UTC (rev 1667)
+++ trunk/app/models/const/rating.rb 2010-01-27 23:02:07 UTC (rev 1668)
@@ -3,14 +3,14 @@
### Constants
SCORES = {
- -2 => I18n.t('m.const.bad'),
- -1 => I18n.t('m.const.off_topic'),
- 0 => I18n.t('m.const.neutral'),
- 1 => I18n.t('m.const.fair'),
- 2 => I18n.t('m.const.ok'),
- 3 => I18n.t('m.const.good'),
- 4 => I18n.t('m.const.excellent'),
- 5 => I18n.t('m.const.exceptional')
+ -2 => 'm.const.bad',
+ -1 => 'm.const.off_topic',
+ 0 => 'm.const.neutral',
+ 1 => 'm.const.fair',
+ 2 => 'm.const.ok',
+ 3 => 'm.const.good',
+ 4 => 'm.const.excellent',
+ 5 => 'm.const.exceptional'
}
end
end
Modified: trunk/config/config.rb.tmpl
===================================================================
--- trunk/config/config.rb.tmpl 2010-01-27 21:18:31 UTC (rev 1667)
+++ trunk/config/config.rb.tmpl 2010-01-27 23:02:07 UTC (rev 1668)
@@ -1,6 +1,6 @@
module InitialGlobalConfig
# If there is a subdomain, and it is different from the
- # language_code, you can set it here (and you need to se).
+ # language_code, you can set it here.
#
DIFFERENT_SITE_SUBDOMAIN = nil
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|