mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 07:46:02 +01:00
Localization plugin removed (replaced with GLoc)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@14 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -50,18 +50,18 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def format_date(date)
|
||||
_('(date)', date) if date
|
||||
l_date(date) if date
|
||||
end
|
||||
|
||||
def format_time(time)
|
||||
_('(time)', time) if time
|
||||
l_datetime(time) if time
|
||||
end
|
||||
|
||||
def pagination_links_full(paginator, options={}, html_options={})
|
||||
html =''
|
||||
html << link_to(('« ' + _('Previous') ), { :page => paginator.current.previous }) + ' ' if paginator.current.previous
|
||||
html << link_to(('« ' + l(:label_previous) ), { :page => paginator.current.previous }) + ' ' if paginator.current.previous
|
||||
html << (pagination_links(paginator, options, html_options) || '')
|
||||
html << ' ' + link_to((_('Next') + ' »'), { :page => paginator.current.next }) if paginator.current.next
|
||||
html << ' ' + link_to((l(:label_next) + ' »'), { :page => paginator.current.next }) if paginator.current.next
|
||||
html
|
||||
end
|
||||
|
||||
@@ -90,4 +90,8 @@ module ApplicationHelper
|
||||
""
|
||||
end
|
||||
end
|
||||
|
||||
def lang_options_for_select
|
||||
GLoc.valid_languages.collect {|lang| [ l_lang_name(lang.to_s, lang), lang.to_s]}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user