author Asier Lostalé <asier.lostale@openbravo.com>
Fri, 11 Aug 2017 16:21:42 +0200
changeset 32608 f8c3d0a4f7a4
parent 5808 fd6f3ff0d871
permissions -rw-r--r--
fixed bug 36755: inefficient translate task

Several improvements applied:
* A single invocation is performed instead one per file extension.
* Look for labels just once regardless number of installed translations.
* Cache all labels in memory so that a single query is performed to look for
them up instead of one per each label found in files.
* Execute all DB updates in a single transaction
* Reduced log vebosity (specially when no modules in development)
# Set root category priority to DEBUG and its only appender to A1.
log4j.rootCategory=WARN, A1
# A1 is set to be a ConsoleAppender. 
# A1 uses PatternLayout.
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n