Class I18nUtilities

java.lang.Object
madkit.i18n.I18nUtilities

public class I18nUtilities extends Object
Internationalization help class containing only static methods.
Since:
MaDKit 5.0.0.10
  • Field Details

    • I18N_DIRECTORY

      public static final String I18N_DIRECTORY
      The directory where the i18n files are stored. By default, it is "madkit/i18n/" of the archive.
      See Also:
  • Method Details

    • getResourceBundle

      public static final ResourceBundle getResourceBundle(String baseName)
      Returns the resource bundle for the given base name.
      Parameters:
      baseName - the base name of the resource bundle file
      Returns:
      the resource bundle for the given base name
    • getCGRString

      public static String getCGRString(String community)
      Returns a string formatted according to the presentation of a CGR location.
      Parameters:
      community - the community name
      Returns:
      the formatted string for the CGR location
    • getCGRString

      public static String getCGRString(String community, String group)
      Returns a string formatted according to the presentation of a CGR location.
      Parameters:
      community - the community name
      group - the group name
      Returns:
      the formatted string for the CGR location
    • getCGRString

      public static String getCGRString(String community, String group, String role)
      Returns a string formatted according to the presentation of a CGR location.
      Parameters:
      community - the community name
      group - the group name
      role - the role name
      Returns:
      the formatted string for the CGR location