diff options
author | Florian Zschocke <f.zschocke+git@gmail.com> | 2021-10-20 21:05:02 +0200 |
---|---|---|
committer | Florian Zschocke <f.zschocke+git@gmail.com> | 2021-10-20 21:05:02 +0200 |
commit | 111eaef65eadb761d9593c88a63bc5949789d77d (patch) | |
tree | 447fb7185fd5b4de5ec91c3f337d6643bfd30415 /src/main | |
parent | ab58795dbf84257aa968989a4c965cc826dc278f (diff) | |
download | gitblit-111eaef65eadb761d9593c88a63bc5949789d77d.tar.gz gitblit-111eaef65eadb761d9593c88a63bc5949789d77d.zip |
Add a unit test to check if the resource bundle can be loaded
To prevent that we have a resource file in a resource bundle broken and
not loading undiscovered for years, add a unit test that will load the
resource properties file for each of the languages.
In order to check if the file was loaded and the bundle mechanism
didn't fall back on the default, a new property key is added to each
language file, solely for the purpose to be checked in the unit test.
Diffstat (limited to 'src/main')
14 files changed, 50 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 |