diff options
author | Fabio Akita <fabio.akita@gmail.com> | 2009-01-10 14:36:08 -0200 |
---|---|---|
committer | Fabio Akita <fabio.akita@gmail.com> | 2009-01-10 14:36:08 -0200 |
commit | 4f75f06730a047fa43eaa5bb84222a70f581a44e (patch) | |
tree | 87007912efe0e3ce0a4f36cf58d3f4b69f6bd233 /app/views/blobs | |
parent | 9f6bdf5887c65a440bc3fdc43a14652f42ddf103 (diff) | |
download | gitorious-mainline-outdated-4f75f06730a047fa43eaa5bb84222a70f581a44e.zip gitorious-mainline-outdated-4f75f06730a047fa43eaa5bb84222a70f581a44e.tar.gz gitorious-mainline-outdated-4f75f06730a047fa43eaa5bb84222a70f581a44e.tar.bz2 |
Small i18n tweaks. Adding missing ubuntu daemon files. Added a new rake task locales:compare to help translators find missing translation keys
Diffstat (limited to 'app/views/blobs')
-rw-r--r-- | app/views/blobs/show.html.erb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/views/blobs/show.html.erb b/app/views/blobs/show.html.erb index 1c1a9f4..56dbd96 100644 --- a/app/views/blobs/show.html.erb +++ b/app/views/blobs/show.html.erb @@ -47,8 +47,7 @@ <% end -%> <% elsif too_big_to_render?(@blob.size) && @blob.mime_type =~ /^text/ -%> <p> - <%= t("views.blobs.too_big_1") -%> - <%= link_to t("views.blobs.too_big_2"), raw_blob_path(@commit.id, current_path) -%> + <%= t("views.blobs.too_big").call(self, raw_blob_path(@commit.id, current_path)) %> </p> <% elsif @blob.mime_type =~ /^image/ -%> <% cache(blob_path(@commit.id, params[:path])) do -%> @@ -56,8 +55,6 @@ <% end -%> <% else -%> <p> - <%= t("views.blobs.message_1", :mime => @blob.mime_type) -%> - <%= link_to t("views.blobs.too_big_2"), raw_blob_path(@commit.id, current_path) -%> - <%= t("views.blobs.message_2") -%> + <%= t("views.blobs.message").call(self, @blob.mime_type, raw_blob_path(@commit.id, current_path)) %> </p> <% end -%> |