Class Translation

    • Constructor Detail

      • Translation

        public Translation()
    • Method Detail

      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        IOException
        javax.servlet.ServletException
      • importTrlDirectory

        @Deprecated
        public static OBError importTrlDirectory​(String directory,
                                                 String strLang,
                                                 String strClient,
                                                 VariablesSecureApp vars)
        Deprecated.
        Use TranslationManager.importTrlDirectory instead
        The import process insert in database all the translations found in the folder of the defined language RECURSIVELY. It don't take into account if a module is marked o no as isInDevelopment. Only search for trl's xml files corresponding with trl's tables in database.
        Parameters:
        directory - Directory for trl's xml files
        strLang - Language to import
        strClient - Client to import
        vars - Handler for the session info.
        Returns:
        Message with the error or with the success