vsplf / vsplf-dynamic-i18n

vsplf-dynamic-i18n project
http://vsplf.github.com/vsplf-dynamic-i18n/latest/
Apache License 2.0
4 stars 3 forks source link

VSPLF Dynamic I18N Framework

https://github.com/vsplf/vsplf-dynamic-i18n/wiki

Make it easy and painless to I18N-ize any java projects with: simple APIs and a wide range of supported tools.

How to use this framework

Download this framework's artifacts

Usage

Anywhere in your application's code, use TranslatorBuilder like the sample below:

  package org.vsplf.i18n.sample;

  import org.vsplf.i18n.TranslatorBuilder;
  import org.vsplf.i18n.I18N;

  public class SampleClass {
    private static TranslatorBuilder sb = I18N.getTranslatorBuilder();

    public void sayHi() {
      String message = sb._("Hello {0}, my name is {name}").
                          appendArgument("VSPLF").
                          appendArgument("name", "dynamic i18n").
                          translate();

      System.out.println(message);
    }

  }

Note: You can use Translator, too. Both will return the same result.

Run the supported tools

//TODO

How to develop

Prepare your environment

Use Apache Maven version 3.0.0 minimum. Version 3.0.3 and above is recommended.

Default Build

Use this command to build project:

  mvn clean install

Violations Checking Build

To check any violations, use this command below:

  git submodule init
  git submodule update
  mvn clean install -Dvsplf.violations.checking

Project resources

Logging