Class I18NUtils


  • public class I18NUtils
    extends java.lang.Object
    Utility class to map former ISO 639 codes to actual ones.
    • Constructor Summary

      Constructors 
      Constructor Description
      I18NUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isFormerISOCode​(java.lang.String code)
      Checks if given iso code has been changed between ISO-639-1 and ISO-639-2.
      static java.lang.String mapFormerISOCodeToActual​(java.lang.String formerCode)
      Maps former ISO-639-1 code to actual one.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • I18NUtils

        public I18NUtils()
    • Method Detail

      • isFormerISOCode

        public static boolean isFormerISOCode​(java.lang.String code)
        Checks if given iso code has been changed between ISO-639-1 and ISO-639-2.
        Parameters:
        code - code to be checked
        Returns:
        true if code has been changed between ISO-639-1 and ISO-639-2
      • mapFormerISOCodeToActual

        public static java.lang.String mapFormerISOCodeToActual​(java.lang.String formerCode)
        Maps former ISO-639-1 code to actual one.
        Parameters:
        formerCode - code to map
        Returns:
        actual code