Package fi.luomus.commons.languagesupport

Examples of fi.luomus.commons.languagesupport.LocalizedTextsContainer


      folder = TestConfig.getConfig().languagefileFolder();
    }
   
    public void test_it_reads_a_text() throws Exception {
      LanguageFileReader r = new LanguageFileReader(folder, "langfile_", "FI");
      LocalizedTextsContainer uiTexts = r.readUITexts();
     
      assertEquals("Testi", uiTexts.getText("text.test", "FI"));
    }
View Full Code Here


      assertEquals("Testi", uiTexts.getText("text.test", "FI"));
    }
   
    public void test_it_reads_a_text_in_all_languages() throws Exception {
      LanguageFileReader r = new LanguageFileReader(folder, "langfile_", "FI", "EN");
      LocalizedTextsContainer uiTexts = r.readUITexts();
     
      assertEquals("Testi", uiTexts.getText("text.test", "FI"));
      assertEquals("Test", uiTexts.getText("text.test", "EN"));
    }
View Full Code Here

TOP

Related Classes of fi.luomus.commons.languagesupport.LocalizedTextsContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.