summaryrefslogtreecommitdiffstats
path: root/app/controllers/trees_controller.rb
diff options
context:
space:
mode:
authorFabio Akita <fabio.akita@gmail.com>2009-01-09 18:23:16 -0200
committerFabio Akita <fabio.akita@gmail.com>2009-01-09 18:23:16 -0200
commit65fc598a75e633dc12fc371f8e87e0b0c336817d (patch)
treea03aa98a0c80b278298bf081cc964afbfc1c16af /app/controllers/trees_controller.rb
parent2221c320d5d6137505b9b4e264f266913b50f1bd (diff)
downloadgitorious-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/trees_controller.rb')
-rw-r--r--app/controllers/trees_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/trees_controller.rb b/app/controllers/trees_controller.rb
index cce21ec..1f8ca3a 100644
--- a/app/controllers/trees_controller.rb
+++ b/app/controllers/trees_controller.rb
@@ -45,7 +45,7 @@ class TreesController < ApplicationController
send_data(data, :type => 'application/x-gzip',
:filename => "#{prefix}.tar.gz")
else
- flash[:error] = "The given repository or sha is invalid"
+ flash[:error] = I18n.t "trees_controller.archive_error"
redirect_to project_repository_path(@project, @repository) and return
end
end