Class SrxFileMapper


  • public class SrxFileMapper
    extends Object
    • Constructor Detail

      • SrxFileMapper

        public SrxFileMapper()
    • Method Detail

      • getSrxFileName

        public static String getSrxFileName​(String isoCode)
        Returns the SRX file name for a given ISO language code. Supports both 2-character and 3-character ISO codes, as well as language-region combinations (e.g., "en-US", "zh-CN").
        Parameters:
        isoCode - The ISO language code (e.g., "en", "en-US", "zh-CN")
        Returns:
        The SRX file name (e.g., "eng.srx", "eng-US.srx", "zho-CN.srx"), or null if no mapping exists
      • getSrxFileName

        public static String getSrxFileName​(net.sf.okapi.common.LocaleId localeId)
        Convenience method that works with Okapi LocaleId objects.
        Parameters:
        localeId - The Okapi LocaleId object
        Returns:
        The SRX file name, or null if no mapping exists
      • main

        public static void main​(String[] args)