diff options
author | Fabio Akita <fabio.akita@gmail.com> | 2009-01-09 18:23:16 -0200 |
---|---|---|
committer | Fabio Akita <fabio.akita@gmail.com> | 2009-01-09 18:23:16 -0200 |
commit | 65fc598a75e633dc12fc371f8e87e0b0c336817d (patch) | |
tree | a03aa98a0c80b278298bf081cc964afbfc1c16af /app/controllers/blobs_controller.rb | |
parent | 2221c320d5d6137505b9b4e264f266913b50f1bd (diff) | |
download | gitorious-mainline-outdated-65fc598a75e633dc12fc371f8e87e0b0c336817d.zip gitorious-mainline-outdated-65fc598a75e633dc12fc371f8e87e0b0c336817d.tar.gz gitorious-mainline-outdated-65fc598a75e633dc12fc371f8e87e0b0c336817d.tar.bz2 |
Major refactoring of the whole Gitorious project. I've added both localized_date and localied_templates plugin and I've extracted every single string that could be translated. Now you have both locales/en.rb and locales/pt-BR.rb as well as views/pt-BR for localized static pages and email templates. I have not added a locale field in the User model - yet, so you have to change gitorious.yml to change it globally
Diffstat (limited to 'app/controllers/blobs_controller.rb')
-rw-r--r-- | app/controllers/blobs_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/blobs_controller.rb b/app/controllers/blobs_controller.rb index 675b409..d8fc93c 100644 --- a/app/controllers/blobs_controller.rb +++ b/app/controllers/blobs_controller.rb @@ -44,7 +44,7 @@ class BlobsController < ApplicationController @blob = @git.tree(@commit.tree.id, ["#{params[:path].join("/")}"]).contents.first render_not_found and return unless @blob if @blob.size > 500.kilobytes - flash[:error] = "Blob is too big. Clone the repository locally to see it" + flash[:error] = I18n.t "blogs_controller.raw_error" redirect_to project_repository_path(@project, @repository) and return end render :text => @blob.data, :content_type => @blob.mime_type |