Commit 70c3cdc778289b6ecf2d93031f598fe2e56c4abe
Exists in
colab
and in
2 other branches
Merge pull request #330 from mezuro/compound_scope_missing_translation
Fix missing Scope description in Compound Metric creation
Showing
3 changed files
with
3 additions
and
1 deletions
Show diff stats
app/views/compound_metric_configurations/_metric_options.html.erb
| @@ -43,7 +43,7 @@ | @@ -43,7 +43,7 @@ | ||
| 43 | </div> | 43 | </div> |
| 44 | <div class="help-container"> | 44 | <div class="help-container"> |
| 45 | <p> | 45 | <p> |
| 46 | - <%= t('measured_metric_html', :href => link_to(t('granularity'), tutorials_path('keywords', anchor: "granularity")), :href2 => link_to(t('modules'), tutorials_path( 'keywords', anchor: 'module' ))) %> | 46 | + <%= t_hint(:scope) %> |
| 47 | </p> | 47 | </p> |
| 48 | </div> | 48 | </div> |
| 49 | </div> | 49 | </div> |
config/locales/views/compound_metric_configuration/en.yml
| @@ -21,3 +21,4 @@ en: | @@ -21,3 +21,4 @@ en: | ||
| 21 | description: "A variable that holds the value of a metric calculation. It can be used in the script of another compound metric." | 21 | description: "A variable that holds the value of a metric calculation. It can be used in the script of another compound metric." |
| 22 | example: "Example: Code foo := 10" | 22 | example: "Example: Code foo := 10" |
| 23 | weight: "It is used to calculate the weighted average of a" | 23 | weight: "It is used to calculate the weighted average of a" |
| 24 | + scope: "Represents the granularity level of the code fragment being measured." |
config/locales/views/compound_metric_configuration/pt.yml
| @@ -21,3 +21,4 @@ pt: | @@ -21,3 +21,4 @@ pt: | ||
| 21 | description: "Uma variável que contém o valor do cálculo da métrica. Ela pode ser usada no script de outra métrica composa." | 21 | description: "Uma variável que contém o valor do cálculo da métrica. Ela pode ser usada no script de outra métrica composa." |
| 22 | example: "Examplo: Código foo := 10" | 22 | example: "Examplo: Código foo := 10" |
| 23 | weight: "ele é usado para o cálculo de uma média ponderada de um" | 23 | weight: "ele é usado para o cálculo de uma média ponderada de um" |
| 24 | + scope: "Representa o nível de granularidade do fragmento de código que está sendo medido." |