Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix norwegian properties file #1379

Merged
merged 2 commits into from
Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions src/main/java/com/gitblit/wicket/GitBlitWebApp_cs.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion src/main/java/com/gitblit/wicket/GitBlitWebApp_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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)
gb.imgdiffSubtract = Pixeldifferenz (schwarz = identisch)

# This last property for unit tests to test successful loading of the resource file
gb.loadLang = Deutsch
5 changes: 4 additions & 1 deletion src/main/java/com/gitblit/wicket/GitBlitWebApp_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
5 changes: 4 additions & 1 deletion src/main/java/com/gitblit/wicket/GitBlitWebApp_fr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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)
gb.imgdiffSubtract = Diff\u00e9rence (noir = identique)

# This last property for unit tests to test successful loading of the resource file
gb.loadLang = fran\u00e7ais
2 changes: 2 additions & 0 deletions src/main/java/com/gitblit/wicket/GitBlitWebApp_it.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion src/main/java/com/gitblit/wicket/GitBlitWebApp_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
4 changes: 4 additions & 0 deletions src/main/java/com/gitblit/wicket/GitBlitWebApp_ko.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 4 additions & 0 deletions src/main/java/com/gitblit/wicket/GitBlitWebApp_nl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

7 changes: 5 additions & 2 deletions src/main/java/com/gitblit/wicket/GitBlitWebApp_no.properties
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ gb.clonePolicyDescription = Alle kan se dette repositoriet. Du bestemmer hvem so
gb.viewPolicy = Begrense View, Clone og Push
gb.viewPolicyDescription = Du bestemmer hvem som kan se, clone og pushe til dette repositoriet.
gb.initialCommit = F\u00F8rste commit
gb.initialCommitDescription = Dette vil la deg kunne <code>git clone</code> repositoriet med en gang. Hopp over dette skrittet hvis du allerede har kj\u0F8rt if <code>git init</code> lokalt.
gb.initialCommitDescription = Dette vil la deg kunne <code>git clone</code> repositoriet med en gang. Hopp over dette skrittet hvis du allerede har kj\u00F8rt if <code>git init</code> lokalt.
gb.initWithReadme = Inkluder en README
gb.initWithReadmeDescription = Dette vil generere en enkel README-fil i ditt repository.
gb.initWithGitignore = Inkluder en .gitignore fil
Expand Down Expand Up @@ -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
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
3 changes: 3 additions & 0 deletions src/main/java/com/gitblit/wicket/GitBlitWebApp_pl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
gb.anonymousUser= an�nimo

# This last property for unit tests to test successful loading of the resource file
gb.loadLang = Portugu\u00eas

Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
146 changes: 146 additions & 0 deletions src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java
Original file line number Diff line number Diff line change
@@ -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"));
}
}