Commit b0a3f445696e65184c360b9aa335ab6cbea09c72

Authored by Heitor
Committed by Rafael Manzo
1 parent 59cfbf0d

Finished internationalizing home

Signed-off-by: Pedro Scocco <pedroscocco@gmail.com>
app/views/home/index.html.erb
1 <div class="jumbotron"> 1 <div class="jumbotron">
2 - <p><h1>Understanding Code Metrics</h1></p>  
3 -  
4 - <p>This is Mezuro! A <strong>free/libre</strong> web platform for <strong>collaborative</strong> source code <strong>evaluation</strong>.</p>  
5 -  
6 - <p>Here you can evaluate your source code with the most popular SCMs (like Git and SVN), just by providing its URL. For now, you can evaluate <strong>C</strong>, <strong>C++</strong> and <strong>Java</strong> source codes, but we are looking forward to supporting more languages in the future.</p>  
7 -  
8 - <p> Mezuro is continuously under development. Try it and give us your <%= link_to 'feedback', 'https://github.com/mezuro/mezuro/issues', target: '_blank' %>.</p> 2 + <p><h1><%= t('title_home_index') %></h1></p>
  3 + <p>
  4 + <%= t('body_home_index_html') %>
  5 + </p>
  6 + <p>
  7 + <%= t('body_feedback_home_index_html', href: link_to('feedback', 'https://github.com/mezuro/mezuro/issues', target: '_blank')) %>
  8 + </p>
9 </div> 9 </div>
10 10
11 -<h2>Latest projects</h2> 11 +<h2><%= t('latest_projects') %></h2>
12 12
13 <ul> 13 <ul>
14 <% cache do %> 14 <% cache do %>
config/locales/views/en.yml
@@ -108,10 +108,6 @@ en: @@ -108,10 +108,6 @@ en:
108 about_mezuro_body: "<small> The Mezuro project attempts to provide a platform to compare projects and metric techniques, teaching how to use metrics through configurations and code analysis, avoid technical debts and disseminate code metrics usage and understanding.</small>" 108 about_mezuro_body: "<small> The Mezuro project attempts to provide a platform to compare projects and metric techniques, teaching how to use metrics through configurations and code analysis, avoid technical debts and disseminate code metrics usage and understanding.</small>"
109 about_mezuro1: "Here you can try the front-end, which we call Prezento. It interacts with the" 109 about_mezuro1: "Here you can try the front-end, which we call Prezento. It interacts with the"
110 about_mezuro2: "It is intended to be a service where you can evaluate your code quality and, if you want, define which set of metrics to use." 110 about_mezuro2: "It is intended to be a service where you can evaluate your code quality and, if you want, define which set of metrics to use."
111 - title_home_index: "Understanding Code Metrics"  
112 - latest_projects_home_index: "Latest projects"  
113 - body_home_index: "<p>This is Mezuro! A <strong>free/libre</strong> web platform for <strong>collaborative</strong> source code <strong>evaluation</strong>.</p> <p>Here you can evaluate your source code with the most popular SCMs (like Git and SVN), just by providing its URL. For now, you can evaluate <strong>C</strong>, <strong>C++</strong> and <strong>Java</strong> source codes, but we are looking forward to supporting more languages in the future.</p>"  
114 - body_feedback_home_index: "Mezuro is continuously under development. Try it and give us your"  
115 body1_compound_form: "A variable that holds the value of a metric calculation. It can be used in the script of another compound metric." 111 body1_compound_form: "A variable that holds the value of a metric calculation. It can be used in the script of another compound metric."
116 body1_compound_form_example: "Example: Code foo := 10" 112 body1_compound_form_example: "Example: Code foo := 10"
117 body2_compound_form: " It is used to calculate the weighted average of a" 113 body2_compound_form: " It is used to calculate the weighted average of a"
config/locales/views/home/en.yml 0 → 100644
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +en:
  2 + title_home_index: "Understanding Code Metrics"
  3 + body_home_index_html: "This is Mezuro! A <strong>free/libre</strong> web platform for <strong>collaborative</strong> source code <strong>evaluation</strong>.</p> <p>Here you can evaluate your source code with the most popular SCMs (like Git and SVN), just by providing its URL. For now, you can evaluate <strong>C</strong>, <strong>C++</strong> and <strong>Java</strong> source codes, but we are looking forward to supporting more languages in the future."
  4 + body_feedback_home_index_html: "Mezuro is continuously under development. Try it and give us your %{href}."
  5 + latest_projects: "Latest projects"
config/locales/views/home/pt.yml 0 → 100644
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +pt:
  2 + title_home_index: "Entendendo Métricas de Código"
  3 + body_home_index_html: "<p>Este é o Mezuro! Uma plataforma web <strong>livre</strong> para <strong>avaliação colaborativa</strong> de código fonte.</p> <p>Aqui você pode avaliar seu código fonte com os SCMs mais populares (como Git e SVN), apenas fornecendo sua URL. Por enquanto, você pode avaliar códigos em <strong>C</strong>, <strong>C++</strong> e <strong>Java</strong>, mas nós pretendemos dar suporte a mais linguagems no futuro.</p>"
  4 + body_feedback_home_index_html: "Mezuro está sob constante desenvolvimento. Experimente e nos dê o seu %{href}."
  5 + latest_projects: "Últimos projetos"
config/locales/views/pt.yml
@@ -109,10 +109,6 @@ pt: @@ -109,10 +109,6 @@ pt:
109 about_mezuro_body: "<small> O projeto Mezuro tenta prover uma plataforma para comparar técnicas de projetos e métricas, ensinando como usar métricas através de configurações e análise de código, evitando débitos técnicos e disseminando o uso e entendimento de métricas de código.</small>" 109 about_mezuro_body: "<small> O projeto Mezuro tenta prover uma plataforma para comparar técnicas de projetos e métricas, ensinando como usar métricas através de configurações e análise de código, evitando débitos técnicos e disseminando o uso e entendimento de métricas de código.</small>"
110 about_mezuro1: "Aqui você pode experimentar a interface, que nós chamamos de Prezento. Ela interage com o" 110 about_mezuro1: "Aqui você pode experimentar a interface, que nós chamamos de Prezento. Ela interage com o"
111 about_mezuro2: "A ideia é ser um serviço em que vocẽ pode avaliar a qualidade do seu código e, se você quiser, definir um conjunto de métricas a serem usadas." 111 about_mezuro2: "A ideia é ser um serviço em que vocẽ pode avaliar a qualidade do seu código e, se você quiser, definir um conjunto de métricas a serem usadas."
112 - title_home_index: "Entendendo Métricas de Código"  
113 - latest_projects_home_index: "Últimos projetos"  
114 - body_home_index: "<p>Este é o Mezuro! Uma plataforma web <strong>livre</strong> para <strong>avaliação colaborativa</strong> de código fonte.</p> <p>Aqui você pode avaliar seu código fonte com os SCMs mais populares (como Git e SVN), apenas fornecendo sua URL. Por enquanto, você pode avaliar códigos em <strong>C</strong>, <strong>C++</strong> e <strong>Java</strong>, mas nós pretendemos dar suporte a mais linguagems no futuro.</p>"  
115 - body_feedback_home_index: "Mezuro está sob constante desenvolvimento. Experimente e nos dê o seu"  
116 body1_compound_form: "Uma variável que contém o valor de um cálculo de métrica. Ele pode ser utilizado no script de outra métrica composta." 112 body1_compound_form: "Uma variável que contém o valor de um cálculo de métrica. Ele pode ser utilizado no script de outra métrica composta."
117 body1_compound_form_example: "Exemplo: Código foo := 10" 113 body1_compound_form_example: "Exemplo: Código foo := 10"
118 body1_compound_metric_options: "Um nome personalizado para a sua métrica composta." 114 body1_compound_metric_options: "Um nome personalizado para a sua métrica composta."