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/views/blobs/show.html.erb | |
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/views/blobs/show.html.erb')
-rw-r--r-- | app/views/blobs/show.html.erb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/views/blobs/show.html.erb b/app/views/blobs/show.html.erb index a53e8bb..1c1a9f4 100644 --- a/app/views/blobs/show.html.erb +++ b/app/views/blobs/show.html.erb @@ -17,7 +17,7 @@ #++ %> -<% @page_title = "#{current_path.join("/")} - #{@repository.name} in #{@project.title}" -%> +<% @page_title = t("views.blobs.page_title", :path => current_path.join("/"), :repo => @repository.name, :title => @project.title) -%> <% @load_syntax_themes = true -%> <% content_for :submenu do -%> @@ -26,16 +26,16 @@ <ul class="mode_selector"> <li class="list_header"> - Softwrap mode: + <%= t("views.blobs.wrap") %>: </li> <li> - <%= link_to_function "Toggle", "Gitorious.Wordwrapper.toggle($$('table#codeblob td.code'))" -%> + <%= link_to_function t("views.common.toggle"), "Gitorious.Wordwrapper.toggle($$('table#codeblob td.code'))" -%> </li> </ul> <h1> - Blob of <code><%= current_path.join("/") -%></code> - <small>(<%= link_to "raw blob data", raw_blob_path(@commit.id, current_path) -%>)</small> + <%= t("views.blobs.title", :path => current_path.join("/")) %> + <small>(<%= link_to t("views.blobs.raw"), raw_blob_path(@commit.id, current_path) -%>)</small> </h1> <!-- <%= @blob.mime_type -%> --> @@ -47,8 +47,8 @@ <% end -%> <% elsif too_big_to_render?(@blob.size) && @blob.mime_type =~ /^text/ -%> <p> - This file is too big to be rendered within reasonable time, - <%= link_to "try viewing the raw data", raw_blob_path(@commit.id, current_path) -%> + <%= t("views.blobs.too_big_1") -%> + <%= link_to t("views.blobs.too_big_2"), raw_blob_path(@commit.id, current_path) -%> </p> <% elsif @blob.mime_type =~ /^image/ -%> <% cache(blob_path(@commit.id, params[:path])) do -%> @@ -56,8 +56,8 @@ <% end -%> <% else -%> <p> - Not sure we can display this blob nicely (it's a "<%= @blob.mime_type -%>" mimetype), - <%= link_to "try viewing the raw data", raw_blob_path(@commit.id, current_path) -%> - and see if your browser figures it out. + <%= 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") -%> </p> <% end -%> |