Class Transifex
java.lang.Object
me.wiefferink.interactivemessenger.translation.Transifex
Convert to and from a format suitable for Transifex (online collaborative translation platform)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
convertFrom(File inputFile)
Convert a language file downloaded from Transifex into a proper formatstatic boolean
Convert source language to format compatible for upload to transifexstatic boolean
needsConversion(YamlConfiguration configuration)
Test if a YamlConfiguration is downloaded from Transifex and needs to be converted
-
Constructor Details
-
Transifex
public Transifex()
-
-
Method Details
-
needsConversion
Test if a YamlConfiguration is downloaded from Transifex and needs to be converted- Parameters:
configuration
- The configuration to check- Returns:
- true if the file needs to be converted, otherwise false
-
convertFrom
Convert a language file downloaded from Transifex into a proper format- Parameters:
inputFile
- The input file to- Returns:
- true if the conversion was successful, otherwise false
-
exportTo
Convert source language to format compatible for upload to transifex- Parameters:
inputFile
- File to read the language file fromoutputFile
- File to output converted language file tolanguageCode
- Languagecode as used on Transifex- Returns:
- true if it worked orrectly, otherwise false
-