Package de.xima.fc.form.export
Class AsposeLocale
java.lang.Object
de.xima.fc.form.export.AsposeLocale
Helper class to convert between Java locales and Aspose locales.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyLocale
(com.aspose.words.Document doc, int localeId) Applies the given locale to the document by setting the locale ID on all nodes in the document.static OptionalInt
-
Constructor Details
-
AsposeLocale
public AsposeLocale()
-
-
Method Details
-
forLocale
- Parameters:
locale
- A locale to process.- Returns:
- The closest
EditingLanguage
for the given locale. Empty if none can be found.
-
applyLocale
public static void applyLocale(com.aspose.words.Document doc, int localeId) Applies the given locale to the document by setting the locale ID on all nodes in the document.- Parameters:
doc
- Document to modify.localeId
- Locale ID to set.
-