public class XMLResourceBundleUtils extends Object
| Constructor and Description |
|---|
XMLResourceBundleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.maven.plugin.logging.Log |
getLog() |
static String |
injectTranslation(InputSource crowdinFile,
String resourceTranslationFilePath,
String resourceMasterFilePath)
Inject translation from crowdin to code base resource translation
|
static String |
injectTranslation(InputStream crowdinFile,
String resourceTranslationFilePath,
String resourceMasterFilePath)
Inject translation from crowdin to code base resource translation
|
static String |
injectTranslation(Reader crowdinFile,
String resourceTranslationFilePath,
String resourceMasterFilePath)
Inject translation from crowdin to code base resource translation
|
static Map<String,List<String>> |
readXMLToMap(InputSource in) |
static Map<String,List<String>> |
readXMLToMap(InputStream in)
Read data from XML InputStream
|
static Map<String,List<String>> |
readXMLToMap(Reader in)
Read data from XML Reader
|
static String |
saveMapToXMLFile(String xmlTranslationResouceFilePath,
String xmlMasterResourceFilePath,
Map<String,List<String>> crowdinMapData)
Inject translation from a Map (crowdinMapData) to xmlFile (xmlTranslationResouceFilePath)
|
static void |
setLog(org.apache.maven.plugin.logging.Log varLog) |
public static void setLog(org.apache.maven.plugin.logging.Log varLog)
public static org.apache.maven.plugin.logging.Log getLog()
public static Map<String,List<String>> readXMLToMap(InputStream in)
in - Map<String, List<String>> that contains all xpath:node-data of XML InputStreampublic static Map<String,List<String>> readXMLToMap(Reader in)
in - Map<String, List<String>> that contains all xpath:node-data of XML InputStreampublic static Map<String,List<String>> readXMLToMap(InputSource in)
public static String saveMapToXMLFile(String xmlTranslationResouceFilePath, String xmlMasterResourceFilePath, Map<String,List<String>> crowdinMapData)
xmlTranslationResouceFilePath - xmlMasterResourceFilePath - crowdinMapData - public static String injectTranslation(InputSource crowdinFile, String resourceTranslationFilePath, String resourceMasterFilePath)
crowdinFile - resourceTranslationFilePath - resourceMasterFilePath - public static String injectTranslation(InputStream crowdinFile, String resourceTranslationFilePath, String resourceMasterFilePath)
crowdinFile - resourceTranslationFilePath - resourceMasterFilePath - Copyright © 2003–2017 eXo Platform SAS. All rights reserved.