summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp.properties3
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_cs.properties3
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_de.properties5
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_es.properties5
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_fr.properties5
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_it.properties2
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_ja.properties5
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties4
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_nl.properties4
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_no.properties5
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_pl.properties3
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_pt_BR.properties6
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_CN.properties3
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_TW.properties3
-rw-r--r--src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java146
15 files changed, 196 insertions, 6 deletions
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
index c46bd63d..f6354ed8 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
@@ -785,3 +785,6 @@ gb.deletePatchsetFailure = Error deleting Patchset {0}.
gb.referencedByCommit = Referenced by commit.
gb.referencedByTicket = Referenced by ticket.
gb.emailClientCertificateSubject = Your Gitblit client certificate for {0}
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = default
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_cs.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_cs.properties
index 45eb428f..a7a5277f 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_cs.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_cs.properties
@@ -786,3 +786,6 @@ gb.mailingLists=e-mailov\u00e1 konference
gb.blinkComparator=Blink kompar\u00e1tor
palette.available=Dostupn\u00ed
palette.selected=Vybran\u00ed
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = \u010de\u0161tina
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_de.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_de.properties
index 9599f7eb..51951529 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_de.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_de.properties
@@ -753,4 +753,7 @@ gb.diffCopiedFile = Datei kopiert von {0}
gb.diffTruncated = Diff nach obiger Datei abgeschnitten
gb.opacityAdjust = Transparenz
gb.blinkComparator = Blinkkomparator
-gb.imgdiffSubtract = Pixeldifferenz (schwarz = identisch) \ No newline at end of file
+gb.imgdiffSubtract = Pixeldifferenz (schwarz = identisch)
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = Deutsch
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_es.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_es.properties
index fa08485a..2569cc67 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_es.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_es.properties
@@ -670,4 +670,7 @@ gb.repositoryIsFrozen = Este Repositorio est\u00E1 congelado.
gb.repositoryDoesNotAcceptPatchsets = Este Repositorio no acepta parches.
gb.serverDoesNotAcceptPatchsets = Este Servidor-Git no acepta parches.
gb.ticketIsClosed = Este ticket est\u00E1 cerrado.
-gb.mergeToDescription = Rama de integraciu00F3n predeterminada para combinar ticket y parches \ No newline at end of file
+gb.mergeToDescription = Rama de integraciu00F3n predeterminada para combinar ticket y parches
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = Espa\u00f1ol
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_fr.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_fr.properties
index 3e757120..8b765fd2 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_fr.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_fr.properties
@@ -682,4 +682,7 @@ gb.diffCopiedFile = Fichier copi\u00e9 de {0}
gb.diffTruncated = Affichage de diff\u00e9rences supprim\u00e9e apr\u00e8s le fichier ci-dessus
gb.opacityAdjust = ajuster l'opacit\u00e9
gb.blinkComparator = Comparateur \u00e0 clignotement
-gb.imgdiffSubtract = Diff\u00e9rence (noir = identique) \ No newline at end of file
+gb.imgdiffSubtract = Diff\u00e9rence (noir = identique)
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = fran\u00e7ais
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_it.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_it.properties
index 970496bb..cc5a2cd8 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_it.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_it.properties
@@ -744,3 +744,5 @@ gb.sshKeyPermissionDescription = Definisci il il livello di accesso per la chiav
gb.transportPreference = Preferenze di trasporto
gb.transportPreferenceDescription = Specifica il protocollo di trasporto che preferisci usare per le operazioni di clone
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = Italiano
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_ja.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_ja.properties
index 36e21a7f..add25403 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_ja.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_ja.properties
@@ -449,4 +449,7 @@ gb.closeBrowser = Please close the browser to properly end the session.
gb.doesNotExistInTree = {0} does not exist in tree {1}
gb.enableIncrementalPushTags = enable incremental push tags
gb.useIncrementalPushTagsDescription = on push, automatically tag each branch tip with an incremental revision number
-gb.incrementalPushTagMessage = Auto-tagged [{0}] branch on push \ No newline at end of file
+gb.incrementalPushTagMessage = Auto-tagged [{0}] branch on push
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = \u306b\u307b\u3093\u3054
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties
index b4a675ce..23ab1187 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties
@@ -784,3 +784,7 @@ gb.deletePatchsetSuccess = {0} \uD328\uCE58\uC14B\uC774 \uC0AD\uC81C\uB418\uC5C8
gb.deletePatchsetFailure = {0} \uD328\uCE58\uC14B \uC0AD\uC81C \uC624\uB958.
gb.referencedByCommit = \uCEE4\uBC0B\uC5D0 \uCC38\uC870\uB428.
gb.referencedByTicket = \uD2F0\uCF13\uC5D0 \uCC38\uC870\uB428.
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = \ud55c\uad6d\uc5b4
+
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_nl.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_nl.properties
index 41656e8a..7dd68b39 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_nl.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_nl.properties
@@ -743,3 +743,7 @@ gb.permission = Permissie
gb.sshKeyPermissionDescription = Specificeer de toegangsrechten voor de SSH sleutel
gb.transportPreference = Transportvoorkeuren
gb.transportPreferenceDescription = Stel de transportmethode in die u wenst voor het clonen
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = Nederlands
+
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_no.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_no.properties
index 9b1b1c2e..d3a6355a 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_no.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_no.properties
@@ -742,4 +742,7 @@ gb.sshKeyCommentDescription = Angi en valgfri kommentar. Kommentaren vil bli eks
gb.permission = Tilgang
gb.sshKeyPermissionDescription = Angi tilgangsrettinghet for SSH n\u00F8kkelen
gb.transportPreference = Foretrukket transport
-gb.transportPreferenceDescription = Sett transportmetoden du foretrekker for cloning \ No newline at end of file
+gb.transportPreferenceDescription = Sett transportmetoden du foretrekker for cloning
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = Norsk
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_pl.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_pl.properties
index fee4b975..340723f7 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_pl.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_pl.properties
@@ -503,3 +503,6 @@ gb.todaysActivityStats = dzisiaj / {1} zmian przez {2} autor\u00F3w
gb.todaysActivityNone = dzisiaj / brak
gb.noActivityToday = brak aktywno\u015Bci w dniu dzisiejszym
gb.anonymousUser= anonimowy
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = polszczyzna
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_pt_BR.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_pt_BR.properties
index b573792f..9e697b4f 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_pt_BR.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_pt_BR.properties
@@ -502,4 +502,8 @@ gb.reviewPatchset = rever {0} patchset {1}
gb.todaysActivityStats = hoje / {1} commits por {2} autores
gb.todaysActivityNone = hoje / nenhum
gb.noActivityToday = não houve atividade hoje
-gb.anonymousUser= anônimo \ No newline at end of file
+gb.anonymousUser= anônimo
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = Portugu\u00eas
+
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_CN.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_CN.properties
index 5ecd1519..5f5b9a94 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_CN.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_CN.properties
@@ -784,3 +784,6 @@ gb.deletePatchsetFailure = \u5220\u9664\u8865\u4e01\u96c6 {0} \u65f6\u53d1\u751f
gb.referencedByCommit = \u88ab\u63d0\u4ea4\u5f15\u7528\u3002
gb.referencedByTicket = \u88ab\u4efb\u52a1\u5f15\u7528\u3002
gb.emailClientCertificateSubject = \u7528\u4e8e {0} \u7684 Gitblit \u5ba2\u6237\u7aef\u8bc1\u4e66
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = \u6c49\u5b57
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_TW.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_TW.properties
index 63106469..910dea41 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_TW.properties
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_zh_TW.properties
@@ -783,3 +783,6 @@ gb.deletePatchsetFailure = \u522a\u9664 Patchset {0} \u932f\u8aa4.
gb.referencedByCommit = Referenced by commit.
gb.referencedByTicket = Referenced by ticket.
gb.emailClientCertificateSubject = \u4F3A\u670D\u5668 {0} \u9023\u7DDA\u6191\u8B49
+
+# This last property for unit tests to test successful loading of the resource file
+gb.loadLang = \u6f22\u5b57
diff --git a/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java b/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java
new file mode 100644
index 00000000..05549d16
--- /dev/null
+++ b/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java
@@ -0,0 +1,146 @@
+package com.gitblit.wicket;
+
+import org.junit.Test;
+
+import java.util.Locale;
+import java.util.ResourceBundle;
+
+import static org.junit.Assert.*;
+
+public class GitBlitWebAppResourceBundleTest
+{
+ @Test
+ public void testDefaultResource()
+ {
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp");
+ assertNotNull(bundle);
+ assertEquals("default", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testCsResource()
+ {
+ Locale l = Locale.forLanguageTag("cs");
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("ÄeÅ¡tina", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testDeResource()
+ {
+ Locale l = Locale.GERMAN;
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("Deutsch", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testEnResource()
+ {
+ Locale l = Locale.ENGLISH;
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ // The "en" file is just a placeholder for the default one.
+ assertEquals("default", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testEsResource()
+ {
+ Locale l = Locale.forLanguageTag("es");
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("Español", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testFrResource() throws Exception
+ {
+ Locale l = Locale.FRENCH;
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("français", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testItResource() throws Exception
+ {
+ Locale l = Locale.ITALIAN;
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("Italiano", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testJaResource() throws Exception
+ {
+ Locale l = Locale.JAPANESE;
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("ã«ã»ã‚“ã”", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testKoResource() throws Exception
+ {
+ Locale l = Locale.KOREAN;
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("한국어", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testNlResource() throws Exception
+ {
+ Locale l = Locale.forLanguageTag("nl");
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("Nederlands", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testNoResource() throws Exception
+ {
+ Locale l = Locale.forLanguageTag("no");
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("Norsk", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testPlResource() throws Exception
+ {
+ Locale l = Locale.forLanguageTag("pl");
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("polszczyzna", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testPtBrResource() throws Exception
+ {
+ Locale l = Locale.forLanguageTag("pt-BR");
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("Português", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testZhCnResource() throws Exception
+ {
+ Locale l = Locale.SIMPLIFIED_CHINESE;
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("汉字", bundle.getString("gb.loadLang"));
+ }
+
+ @Test
+ public void testZhTwResource() throws Exception
+ {
+ Locale l = Locale.TRADITIONAL_CHINESE;
+ ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l);
+ assertNotNull(bundle);
+ assertEquals("漢字", bundle.getString("gb.loadLang"));
+ }
+} \ No newline at end of file