Package com.acumenvelocity.ath.srx
Class SrxFileMapper
- java.lang.Object
-
- com.acumenvelocity.ath.srx.SrxFileMapper
-
public class SrxFileMapper extends Object
-
-
Constructor Summary
Constructors Constructor Description SrxFileMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetSrxFileName(String isoCode)Returns the SRX file name for a given ISO language code.static StringgetSrxFileName(net.sf.okapi.common.LocaleId localeId)Convenience method that works with Okapi LocaleId objects.static voidmain(String[] args)
-
-
-
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)
-
-