Class trad

java.lang.Object
fr.formiko.usuel.trad

public class trad extends Object
  • Field Details

    • sep

      private static String sep
  • Constructor Details

    • trad

      public trad()
  • Method Details

    • copieTrads

      public static void copieTrads()
    • copieTradBase

      public static void copieTradBase(String se, Map<String,​String> map)
    • ligneTradBase

      public static String ligneTradBase(String s, Map<String,​String> map)
    • debutDeLigne

      public static String debutDeLigne(String s)
    • translateWebSiteFiles

      public static void translateWebSiteFiles(String pathToWebSiteFile)
      Translate all web site file for curent language.
      It need to have the good path to web site file.
    • replaceTranslation

      public static String replaceTranslation(String s)
      Translate a String by replacing €{key} by the translation of key.
      Parameters:
      s - the String to translate
    • countCharUsedInTranslation

      public static Map<Character,​Integer> countCharUsedInTranslation(Map<String,​String> translationMap)
      Count how many time every char is used in a language map.
      Parameters:
      translationMap - the Map to use to count char
    • countCharUsedInTranslation

      public static Map<Character,​Integer> countCharUsedInTranslation(int id)
      Count how many time every char is used in a language map.
      Parameters:
      id - id of the language to count char
    • partOfPrintableChar

      public static double partOfPrintableChar(int id, Font font, boolean charWeigth)
      Count how many char can be draw in a language map.
      Parameters:
      id - id of the language to count char
      font - font to test language printability
      charWeigth - more used char will have a higer weigth in the result
    • partOfPrintableChar

      public static double partOfPrintableChar(int id, String fontName, boolean charWeigth)
      Count how many char can be draw in a language map.
      Parameters:
      id - id of the language to count char
      fontName - name of the font to test language printability
      charWeigth - more used char will have a higer weigth in the result
    • canDisplayLanguage

      public static boolean canDisplayLanguage(int id, Font font)
      True if all char can be draw in a language map.
      Parameters:
      id - id of the language to count char
      font - font to test language printability
    • canDisplayLanguage

      public static boolean canDisplayLanguage(int id, String fontName)
      True if all char can be draw in a language map.
      Parameters:
      id - id of the language to count char
      fontName - name of the font to test language printability