java.lang.Object
me.wiefferink.interactivemessenger.translation.Transifex

public class Transifex extends Object
Convert to and from a format suitable for Transifex (online collaborative translation platform)
  • Constructor Details

    • Transifex

      public Transifex()
  • Method Details

    • needsConversion

      public static boolean needsConversion(YamlConfiguration configuration)
      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

      public static boolean convertFrom(File inputFile)
      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

      public static boolean exportTo(File inputFile, File outputFile, String languageCode)
      Convert source language to format compatible for upload to transifex
      Parameters:
      inputFile - File to read the language file from
      outputFile - File to output converted language file to
      languageCode - Languagecode as used on Transifex
      Returns:
      true if it worked orrectly, otherwise false