processing.app

## Class Language

- Object
- - Language

-     public class Language
      extends Object

  Internationalization (i18n)

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `getLanguage()` Get the current language.
    `static Map<String,String>` | `getLanguages()` Get all available languages
    `static Language` | `init()` Singleton constructor
    `static String` | `interpolate(String key, Object... arguments)`
    `static String` | `pluralize(String key, int count)`
    `static void` | `saveLanguage(String language)` Save the language directly to a settings file.
    `static String` | `text(String key)` Get translation from bundles.

    - ### Methods inherited from class Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### saveLanguage

          public static void saveLanguage(String language)

      Save the language directly to a settings file. This is 'save' and not 'set' because a language change requires a restart of Processing.

    - #### init

          public static Language init()

      Singleton constructor

    - #### text

          public static String text(String key)

      Get translation from bundles.

    - #### interpolate

          public static String interpolate(String key,
                                           Object... arguments)

    - #### pluralize

          public static String pluralize(String key,
                                         int count)

    - #### getLanguages

          public static Map<String,String> getLanguages()

      Get all available languages

    - #### getLanguage

          public static String getLanguage()

      Get the current language.
      Returns:
        two digit ISO code (lowercase)