diff options
-rw-r--r-- | src/main/java/com/gitblit/wicket/GitBlitWebApp_ru.properties | 3 | ||||
-rw-r--r-- | src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp_ru.properties b/src/main/java/com/gitblit/wicket/GitBlitWebApp_ru.properties index 914c936f..b3af7e00 100644 --- a/src/main/java/com/gitblit/wicket/GitBlitWebApp_ru.properties +++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp_ru.properties @@ -785,3 +785,6 @@ gb.deletePatchsetFailure = \u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0434\u04 gb.referencedByCommit = \u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u043A\u043E\u043C\u043C\u0438\u0442. gb.referencedByTicket = \u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u0437\u0430\u044F\u0432\u043A\u0443. gb.emailClientCertificateSubject = \u0412\u0430\u0448 \u043A\u043B\u0438\u0435\u043D\u0442\u0441\u043A\u0438\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043A\u0430\u0442 Gitblit \u0434\u043B\u044F {0} + +# This last property for unit tests to test successful loading of the resource file +gb.loadLang = \u0420\u0443\u0441\u0441\u043a\u0438\u0439 diff --git a/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java b/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java index 05549d16..f680ee7b 100644 --- a/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java +++ b/src/test/java/com/gitblit/wicket/GitBlitWebAppResourceBundleTest.java @@ -126,6 +126,16 @@ public class GitBlitWebAppResourceBundleTest assertEquals("Português", bundle.getString("gb.loadLang")); } + + @Test + public void testRuResource() throws Exception + { + Locale l = Locale.forLanguageTag("ru"); + ResourceBundle bundle = ResourceBundle.getBundle("com.gitblit.wicket.GitBlitWebApp", l); + assertNotNull(bundle); + assertEquals("Русский", bundle.getString("gb.loadLang")); + } + @Test public void testZhCnResource() throws Exception { |