Changeset 8f5cee4513d7f48a6151daa33363399b30178e6e
Dimitrij Denissenko
Dimitrij Denissenko
11 months ago

Changeset 8f5cee4

Fixed per-project I18n

Affected files:

  • Updated app/controllers/project_area_controller.rb (Quick Diff)

    app/controllers/project_area_controller.rb

    bf369cc8f5cee4
    44
        def find_project
    44
        def find_project
    45
          project = Project.find_by_short_name! params[:project_id]      
    45
          project = Project.find_by_short_name! params[:project_id]      
    46
          Project.current = User.current.projects.active.find(project.short_name)
    46
          Project.current = User.current.projects.active.find(project.short_name)
     
    47
          I18n.locale = Project.current.locale if Project.current && Project.current.locale    
    47
        end
    48
        end
    48
        
    49
        
    49
        def render_rss(klass, records = nil, options = {})
    50
        def render_rss(klass, records = nil, options = {})
  • Updated app/views/accounts/show.html.erb (Quick Diff)

    app/views/accounts/show.html.erb

    4a462a38f5cee4
    10
    10
    11
      <% f.fieldset do -%>
    11
      <% f.fieldset do -%>
    12
        <%= f.label_tag _('Avatar') + ':' -%>
    12
        <%= f.label_tag _('Avatar') + ':' -%>
    13
        <p><%= _("Get one avatar at") %> <%= link_to "gravatar.com", 'http://www.gravatar.com/' %></p>
    13
        <%= _("Get one avatar at") %> <%= link_to "gravatar.com", 'http://www.gravatar.com' %>
    14
      <% end -%>
    14
      <% end -%>
    15
    15
    16
      <% f.fieldset do -%>
    16
      <% f.fieldset do -%>