aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-plugins
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-24 12:22:32 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-24 12:22:48 +0200
commit78afe1925d8d02a28516cc3768e8fc42e3d7b71d (patch)
tree3b6e386a27309c7057be42c15a0e6e8681e2e677 /it/it-plugins
parent05e45302f2bc7263da1d298bf2ad4178bebdd26f (diff)
downloadsonarqube-78afe1925d8d02a28516cc3768e8fc42e3d7b71d.tar.gz
sonarqube-78afe1925d8d02a28516cc3768e8fc42e3d7b71d.zip
Add I18nTest test
Diffstat (limited to 'it/it-plugins')
-rw-r--r--it/it-plugins/l10n-fr-pack/pom.xml52
-rw-r--r--it/it-plugins/l10n-fr-pack/src/main/java/SimpleFrenchPackPlugin.java29
-rw-r--r--it/it-plugins/l10n-fr-pack/src/main/resources/org/sonar/l10n/core_fr.properties6
-rw-r--r--it/it-plugins/pom.xml1
4 files changed, 88 insertions, 0 deletions
diff --git a/it/it-plugins/l10n-fr-pack/pom.xml b/it/it-plugins/l10n-fr-pack/pom.xml
new file mode 100644
index 00000000000..94f31bdaf6b
--- /dev/null
+++ b/it/it-plugins/l10n-fr-pack/pom.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.sonarsource.it</groupId>
+ <artifactId>it-plugins</artifactId>
+ <version>5.2-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>l10n-fr-pack</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>sonar-plugin</packaging>
+ <description>IT :: Simple French Language Pack</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-plugin-api</artifactId>
+ <version>${apiVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-packaging-maven-plugin</artifactId>
+ <version>1.12.1</version>
+ <extensions>true</extensions>
+ <configuration>
+ <basePlugin>l10nen</basePlugin>
+ <pluginClass>SimpleFrenchPackPlugin</pluginClass>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>native2ascii-maven-plugin</artifactId>
+ <version>1.0-beta-1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>native2ascii</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/it/it-plugins/l10n-fr-pack/src/main/java/SimpleFrenchPackPlugin.java b/it/it-plugins/l10n-fr-pack/src/main/java/SimpleFrenchPackPlugin.java
new file mode 100644
index 00000000000..9688d18ff89
--- /dev/null
+++ b/it/it-plugins/l10n-fr-pack/src/main/java/SimpleFrenchPackPlugin.java
@@ -0,0 +1,29 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import java.util.Collections;
+import java.util.List;
+import org.sonar.api.SonarPlugin;
+
+public final class SimpleFrenchPackPlugin extends SonarPlugin {
+ public List getExtensions() {
+ return Collections.emptyList();
+ }
+}
diff --git a/it/it-plugins/l10n-fr-pack/src/main/resources/org/sonar/l10n/core_fr.properties b/it/it-plugins/l10n-fr-pack/src/main/resources/org/sonar/l10n/core_fr.properties
new file mode 100644
index 00000000000..2d28afe84f0
--- /dev/null
+++ b/it/it-plugins/l10n-fr-pack/src/main/resources/org/sonar/l10n/core_fr.properties
@@ -0,0 +1,6 @@
+metric.ncloc.name=Lignes de code
+metric.ncloc.description=Lignes de code (non commentaire)
+widget.size.lines_of_code=Lignes de code
+
+layout.login=Se connecter
+layout.powered_by=Propulsé par
diff --git a/it/it-plugins/pom.xml b/it/it-plugins/pom.xml
index 439f0a51aaa..295cf70e24b 100644
--- a/it/it-plugins/pom.xml
+++ b/it/it-plugins/pom.xml
@@ -30,6 +30,7 @@
</properties>
<modules>
+ <module>l10n-fr-pack</module>
<module>sonar-fake-plugin</module>
</modules>
</project>