aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2013-01-23 15:14:27 +0100
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2013-01-23 15:15:12 +0100
commit1640d3244e3c4803aa0e2e90ea4a1908c9245318 (patch)
tree64cb47dd5048435eae271ad2d14bac639d49e844 /plugins
parent2bcacbdfeb7de33a8c0a7124bd0098f371f5408f (diff)
downloadsonarqube-1640d3244e3c4803aa0e2e90ea4a1908c9245318.tar.gz
sonarqube-1640d3244e3c4803aa0e2e90ea4a1908c9245318.zip
SONAR-4071 Localize all the existing widget properties
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java11
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java8
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/FalsePositiveReviewsWidget.java5
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/MyReviewsWidget.java5
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/PlannedReviewsWidget.java5
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/ProjectReviewsWidget.java5
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/UnplannedReviewsWidget.java5
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties78
8 files changed, 88 insertions, 34 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java
index 6551fcc96ab..3a97dc4d7be 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java
@@ -26,13 +26,12 @@ import org.sonar.api.web.WidgetPropertyType;
@WidgetCategory("Hotspots")
@WidgetProperties(
- {
- @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5"),
- @WidgetProperty(key = "defaultSeverity", type = WidgetPropertyType.STRING, description = "Values: BLOCKER, CRITICAL, MAJOR, MINOR, INFO")
- }
-)
+{
+ @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5"),
+ @WidgetProperty(key = "defaultSeverity", type = WidgetPropertyType.STRING)
+})
public class HotspotMostViolatedRulesWidget extends CoreWidget {
public HotspotMostViolatedRulesWidget() {
super("hotspot_most_violated_rules", "Most violated rules", "/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb");
}
-} \ No newline at end of file
+}
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java
index 8ac21eaa09d..f9844bfbe06 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java
@@ -25,13 +25,13 @@ import org.sonar.api.web.WidgetProperty;
import org.sonar.api.web.WidgetPropertyType;
@WidgetProperties({
- @WidgetProperty(key = "sizeMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.NCLOC_KEY, description = "Metric used for square size"),
- @WidgetProperty(key = "colorMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.VIOLATIONS_DENSITY_KEY, description = "Metric used for square color"),
- @WidgetProperty(key = "heightInPercents", type = WidgetPropertyType.INTEGER, optional = true, defaultValue = "55", description = "Height in percents of width")
+ @WidgetProperty(key = "sizeMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.NCLOC_KEY),
+ @WidgetProperty(key = "colorMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.VIOLATIONS_DENSITY_KEY),
+ @WidgetProperty(key = "heightInPercents", type = WidgetPropertyType.INTEGER, optional = true, defaultValue = "55")
})
public class TreemapWidget extends CoreWidget {
public TreemapWidget() {
// do not use the id "treemap" to avoid conflict with the same CSS class
super("treemap-widget", "Treemap of Components", "/org/sonar/plugins/core/widgets/treemap.html.erb");
}
-} \ No newline at end of file
+}
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/FalsePositiveReviewsWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/FalsePositiveReviewsWidget.java
index 514f2c75f39..c18e368c9db 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/FalsePositiveReviewsWidget.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/FalsePositiveReviewsWidget.java
@@ -27,11 +27,10 @@ import org.sonar.plugins.core.widgets.CoreWidget;
@WidgetCategory({"Reviews"})
@WidgetProperties({
- @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5",
- description = "Maximum number of reviews displayed at the same time.")
+ @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5")
})
public class FalsePositiveReviewsWidget extends CoreWidget {
public FalsePositiveReviewsWidget() {
super("false_positive_reviews", "False positive open reviews", "/org/sonar/plugins/core/widgets/reviews/false_positive_reviews.html.erb");
}
-} \ No newline at end of file
+}
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/MyReviewsWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/MyReviewsWidget.java
index 64d6828c5d2..de2b592de7b 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/MyReviewsWidget.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/MyReviewsWidget.java
@@ -27,11 +27,10 @@ import org.sonar.plugins.core.widgets.CoreWidget;
@WidgetCategory({"Reviews"})
@WidgetProperties({
- @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5",
- description = "Maximum number of reviews displayed at the same time.")
+ @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5")
})
public class MyReviewsWidget extends CoreWidget {
public MyReviewsWidget() {
super("my_reviews", "My active reviews", "/org/sonar/plugins/core/widgets/reviews/my_reviews.html.erb");
}
-} \ No newline at end of file
+}
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/PlannedReviewsWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/PlannedReviewsWidget.java
index 094f3bba94a..01972c61d1b 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/PlannedReviewsWidget.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/PlannedReviewsWidget.java
@@ -27,11 +27,10 @@ import org.sonar.plugins.core.widgets.CoreWidget;
@WidgetCategory({"Action plans", "Reviews"})
@WidgetProperties({
- @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5",
- description = "Maximum number of reviews displayed at the same time.")
+ @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5")
})
public class PlannedReviewsWidget extends CoreWidget {
public PlannedReviewsWidget() {
super("planned_reviews", "Planned reviews", "/org/sonar/plugins/core/widgets/reviews/planned_reviews.html.erb");
}
-} \ No newline at end of file
+}
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/ProjectReviewsWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/ProjectReviewsWidget.java
index 0dc6a863479..2d69c8fc68c 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/ProjectReviewsWidget.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/ProjectReviewsWidget.java
@@ -27,11 +27,10 @@ import org.sonar.plugins.core.widgets.CoreWidget;
@WidgetCategory({"Reviews"})
@WidgetProperties({
- @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5",
- description = "Maximum number of reviews displayed at the same time.")
+ @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5")
})
public class ProjectReviewsWidget extends CoreWidget {
public ProjectReviewsWidget() {
super("project_reviews", "Project active reviews", "/org/sonar/plugins/core/widgets/reviews/project_reviews.html.erb");
}
-} \ No newline at end of file
+}
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/UnplannedReviewsWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/UnplannedReviewsWidget.java
index 5b88866befb..2c866593971 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/UnplannedReviewsWidget.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/reviews/UnplannedReviewsWidget.java
@@ -27,11 +27,10 @@ import org.sonar.plugins.core.widgets.CoreWidget;
@WidgetCategory({"Action plans", "Reviews"})
@WidgetProperties({
- @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5",
- description = "Maximum number of reviews displayed at the same time.")
+ @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5")
})
public class UnplannedReviewsWidget extends CoreWidget {
public UnplannedReviewsWidget() {
super("unplanned_reviews", "Unplanned reviews", "/org/sonar/plugins/core/widgets/reviews/unplanned_reviews.html.erb");
}
-} \ No newline at end of file
+}
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
index 5b91e605ede..a84bef09098 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
@@ -835,6 +835,16 @@ widget.complexity.total=Total
widget.custom_measures.name=Custom Measures
widget.custom_measures.description=Display a list of selected measures.
+widget.custom_measures.property.metric1.name=Metric 1
+widget.custom_measures.property.metric2.name=Metric 2
+widget.custom_measures.property.metric3.name=Metric 3
+widget.custom_measures.property.metric4.name=Metric 4
+widget.custom_measures.property.metric5.name=Metric 5
+widget.custom_measures.property.metric6.name=Metric 6
+widget.custom_measures.property.metric7.name=Metric 7
+widget.custom_measures.property.metric8.name=Metric 8
+widget.custom_measures.property.metric9.name=Metric 9
+widget.custom_measures.property.metric10.name=Metric 10
widget.description.name=Description
widget.description.description=Displays general project information
@@ -880,9 +890,28 @@ widget.size.projects.suffix=\ projects
widget.timeline.name=Timeline
widget.timeline.description=Displays up to 3 metrics on a history chart.
widget.timeline.timeline_not_displayed=No history
+widget.timeline.property.chartTitle.name=Chart title
+widget.timeline.property.metric1.name=Metric 1
+widget.timeline.property.metric2.name=Metric 2
+widget.timeline.property.metric3.name=Metric 3
+widget.timeline.property.hideEvents.name=Hide events
+widget.timeline.property.chartHeight.name=Chart height
widget.time_machine.name=History Table
widget.time_machine.description=Displays up to 10 metrics in a table, showing their value for a specified number of past snapshots.
+widget.time_machine.property.title.name=Title
+widget.time_machine.property.numberOfColumns.name=Number of columns
+widget.time_machine.property.displaySparkLine.name=Display spark line
+widget.time_machine.property.metric1.name=Metric 1
+widget.time_machine.property.metric2.name=Metric 2
+widget.time_machine.property.metric3.name=Metric 3
+widget.time_machine.property.metric4.name=Metric 4
+widget.time_machine.property.metric5.name=Metric 5
+widget.time_machine.property.metric6.name=Metric 6
+widget.time_machine.property.metric7.name=Metric 7
+widget.time_machine.property.metric8.name=Metric 8
+widget.time_machine.property.metric9.name=Metric 9
+widget.time_machine.property.metric10.name=Metric 10
widget.file_design.name=File design
widget.file_design.description=Reports on files dependency cycles and tangle index.
@@ -902,26 +931,39 @@ widget.hotspot_metric.name=Metric hotspot
widget.hotspot_metric.description=Shows the files that have the worst result for a specific metric.
widget.hotspot_metric.more=More
widget.hotspot_metric.hotspots_by_x=Hotspots by {0}
+widget.hotspot_metric.property.title.name=Title
+widget.hotspot_metric.property.metric.name=Metric
+widget.hotspot_metric.property.numberOfLines.name=Number of lines
widget.hotspot_most_violated_rules.name=Most violated rules
widget.hotspot_most_violated_rules.name_when_period=Most new violated rules
widget.hotspot_most_violated_rules.description=Shows the rules that are the most violated.
widget.hotspot_most_violated_rules.no_violation_for_severity=No result
widget.hotspot_most_violated_rules.any_severity=Any severity
+widget.hotspot_most_violated_rules.property.numberOfLines.name=Number of lines
+widget.hotspot_most_violated_rules.property.defaultSeverity.name=Default severity
+widget.hotspot_most_violated_rules.property.defaultSeverity.desc=Values: BLOCKER, CRITICAL, MAJOR, MINOR, INFO
widget.hotspot_most_violated_resources.name=Most violated resources
widget.hotspot_most_violated_resources.description=Shows the resources that have the most violations.
widget.hotspot_most_violated_resources.no_resource=No result
+widget.hotspot_most_violated_resources.property.numberOfLines.name=Number of lines
widget.my_reviews.name=My active reviews
widget.my_reviews.description=Shows open/reopened reviews assigned to the current user.
widget.my_reviews.no_review=No review.
+widget.my_reviews.property.numberOfLines.name=Number of lines
+widget.my_reviews.property.numberOfLines.desc=Maximum number of reviews displayed at the same time.
widget.project_reviews.name=Active reviews
widget.project_reviews.description=Shows all the open/reopened reviews.
+widget.project_reviews.property.numberOfLines.name=Number of lines
+widget.project_reviews.property.numberOfLines.desc=Maximum number of reviews displayed at the same time.
widget.false_positive_reviews.name=False positives
widget.false_positive_reviews.description=Shows all the false positives found on the project.
+widget.false_positive_reviews.property.numberOfLines.name=Number of lines
+widget.false_positive_reviews.property.numberOfLines.desc=Maximum number of reviews displayed at the same time.
widget.reviews_per_developer.name=Active reviews per developer
widget.reviews_per_developer.description=Shows the number of open/reopened reviews per developer.
@@ -937,9 +979,13 @@ widget.action_plans.x_open_reviews={0} open reviews
widget.planned_reviews.name=Planned reviews
widget.planned_reviews.description=Shows all the planned reviews of the project, gathered by action plan
widget.planned_reviews.no_action_plan=No action plan
+widget.planned_reviews.property.numberOfLines.name=Number of lines
+widget.planned_reviews.property.numberOfLines.desc=Maximum number of reviews displayed at the same time.
widget.unplanned_reviews.name=Unplanned reviews
widget.unplanned_reviews.description=Shows all the reviews of the project that are not planned yet in an action plan
+widget.unplanned_reviews.property.numberOfLines.name=Number of lines
+widget.unplanned_reviews.property.numberOfLines.desc=Maximum number of reviews displayed at the same time.
widget.reviews_metrics.name=Review Activity
widget.reviews_metrics.description=Reports metrics about reviews
@@ -953,13 +999,12 @@ widget.reviews_metrics.added_unreviewed_violations=Added:
widget.treemap-widget.name=Treemap of components
widget.treemap-widget.description=Displays a treemap of all direct components of the selected resource
-
-widget.image.name=Image
-widget.image.description=Shows an image with a link
-
-widget.filter.name=Filter
-widget.filter.description=Shows a pre-configured filter
-widget.filter.edit=Edit my filters
+widget.treemap-widget.property.sizeMetric.name=Size metric
+widget.treemap-widget.property.sizeMetric.description=Metric used for square size
+widget.treemap-widget.property.colorMetric.name=Color metric
+widget.treemap-widget.property.colorMetric.description=Metric used for square color
+widget.treemap-widget.property.heightInPercents.name=Height
+widget.treemap-widget.property.heightInPercents.description=Height in percents of width
widget.lcom4.name=LCOM4
widget.lcom4.description=Reports on LCOM4 average and distribution.
@@ -972,8 +1017,6 @@ widget.rfc.description=Reports on RFC average and distribution.
widget.rfc.title=Response for Class
widget.rfc.per_class.suffix=\ /class
-widget.resource_id=project
-
widget.welcome.name=Welcome
widget.welcome.description=Welcome message used to provide links to the most valuable resources like documentation and support
widget.welcome.html=<h3 class="marginbottom5">Welcome to Sonar Dashboard</h3>\
@@ -988,9 +1031,26 @@ widget.welcome.html=<h3 class="marginbottom5">Welcome to Sonar Dashboard</h3>\
widget.measure_filter_list.name=Measure Filter as List
widget.measure_filter_list.description=Displays the result of a pre-configured measure filter as a list
+widget.measure_filter_list.property.filter.name=Filter
+widget.measure_filter_list.property.pageSize.name=Page size
+widget.measure_filter_list.property.displayFilterDescription.name=Display filter description
widget.measure_filter_treemap.name=Measure Filter as Treemap
widget.measure_filter_treemap.description=Displays the result of pre-configured measure filter as a Treemap
+widget.measure_filter_treemap.property.filter.name=Filter
+widget.measure_filter_treemap.property.sizeMetric.name=Size metric
+widget.measure_filter_treemap.property.colorMetric.name=Color metric
+widget.measure_filter_treemap.property.heightInPercents.name=Height
+widget.measure_filter_treemap.property.heightInPercents.description=Height in percents of width
+widget.measure_filter_treemap.property.displayFilterDescription.name=Display filter description
+
+# Below are labels used in widget edition pages
+widget.image.name=Image
+widget.image.description=Shows an image with a link
+widget.filter.name=Filter
+widget.filter.description=Shows a pre-configured filter
+widget.filter.edit=Edit my filters
+widget.resource_id=Project
#------------------------------------------------------------------------------