Example usage for java.util Locale FRENCH

List of usage examples for java.util Locale FRENCH

Introduction

In this page you can find the example usage for java.util Locale FRENCH.

Prototype

Locale FRENCH

To view the source code for java.util Locale FRENCH.

Click Source Link

Document

Useful constant for language.

Usage

From source file:org.sigmah.server.mail.InvitationMailerTest.java

@Parameterized.Parameters
public static Collection<Object[]> locales() {
    return Arrays.asList(new Object[][] { { Locale.ENGLISH }, { Locale.FRENCH } });
}

From source file:Main.java

public static String formatDay(Date input) {
    String result = N_C;//w w  w. j  av a  2  s  .  c  om
    if (input != null) {
        DateFormat outputDF = new SimpleDateFormat(DAY_DATE_FORMAT, Locale.FRENCH);
        result = outputDF.format(input);
    }
    return result;
}

From source file:Main.java

public static String formatHour(Date input) {
    String result = N_C;//from   w w w  .j  a  v a  2 s.  c  o  m
    if (input != null) {
        DateFormat outputDF = new SimpleDateFormat(HOUR_DATE_FORMAT, Locale.FRENCH);
        result = outputDF.format(input);
    }
    return result;
}

From source file:com.salesmanager.core.util.LocaleUtil.java

public static Locale getLocale(String lang) {

    if (StringUtils.isBlank(lang)) {
        return getDefaultLocale();
    }/*  w  w  w  .j  a  v  a  2s  . c  o m*/

    if (lang.equals(Constants.ENGLISH_CODE)) {
        return Locale.ENGLISH;
    } else if (lang.equals(Constants.FRENCH_CODE)) {
        return Locale.FRENCH;
    } else {
        log.warn("Resources for this language " + lang + " may not be handled by this system");
        return new Locale(lang);
    }

}

From source file:caillou.company.clonemanager.gui.customComponent.menubar.MenuBarController.java

@FXML
private void changeToFrench(ActionEvent event) throws Exception {
    SpringFxmlLoader.changeLocale(Locale.FRENCH);
    MainApp.getInstance().replaceSceneContent(SpringFxmlLoader.getLastLoadedURL(), null, null);
}

From source file:org.sigmah.server.endpoint.gwtrpc.RetrievePasswordServlet.java

public RetrievePasswordServlet() {
    final HashMap<String, Locale> map = new HashMap<String, Locale>();
    map.put("en", Locale.ROOT);
    map.put("fr", Locale.FRENCH);

    this.localeMap = map;
}

From source file:test.integ.be.fedict.commons.eid.client.BeIDCardManagerTest.java

@Test
public void testListenerModification() throws Exception {
    final TestLogger logger = new TestLogger();
    final BeIDCardManager beIDCardManager = new BeIDCardManager(logger);
    beIDCardManager.setLocale(Locale.FRENCH);
    final Object waitObject = new Object();
    beIDCardManager/*w w  w.j  a  v  a2 s . c o  m*/
            .addBeIDCardEventListener(new BeIDCardEventsTestListener(beIDCardManager, waitObject, true, false));
    beIDCardManager.addBeIDCardEventListener(
            new BeIDCardEventsTestListener(beIDCardManager, waitObject, false, false));
    beIDCardManager
            .addBeIDCardEventListener(new BeIDCardEventsTestListener(beIDCardManager, waitObject, false, true));
    beIDCardManager.start();
    synchronized (waitObject) {
        waitObject.wait();
    }
}

From source file:org.obiba.mica.study.search.rest.AggregationYamlParserTest.java

@BeforeClass
public static void beforeClass() throws IOException {
    dataDirectory = Files.createTempDirectory("es-test", new FileAttribute<?>[] {});
    aggregationYamlParser.setLocales(Arrays.asList(Locale.ENGLISH, Locale.FRENCH));
    client = newNode(dataDirectory.toString()).client();
}

From source file:org.jasig.cas.web.view.CasReloadableMessageBundleTests.java

@Test
public void testGetMessageFromRequestedBundle() {
    final String msg = this.loader.getMessage("screen.blocked.header", null, Locale.FRENCH);
    assertNotNull(msg);/*from   w  w w.jav a 2 s .  c o m*/
}

From source file:org.sigmah.server.endpoint.gwtrpc.PasswordManagementServlet.java

public PasswordManagementServlet() {
    final HashMap<String, Locale> map = new HashMap<String, Locale>();
    map.put("en", Locale.ROOT);
    map.put("fr", Locale.FRENCH);

    this.localeMap = map;
}