public class LangPropertiesChecker extends AbstractChecker
JCMS lang properties (all langs)
LangPropertiesChecker ${workspace_loc}/JCMS/webapps/en/WEB-INF/jalios/languages
JCMS lang properties (en + fr only)
${workspace_loc}/JCMS/webapps/en/WEB-INF/jalios/languages/en.prop ${workspace_loc}/JCMS/webapps/en/WEB-INF/jalios/languages/fr.prop
Plugin lang properties (all langs)
${workspace_loc}/JCMS/webapps/en/WEB-INF/plugins/ACMEPlugin/properties/languages
Plugin lang properties (en + fr only)
${workspace_loc}/JCMS/webapps/en/WEB-INF/plugins/ACMEPlugin/properties/languages/en.prop ${workspace_loc}/JCMS/webapps/en/WEB-INF/plugins/ACMEPlugin/properties/languages/fr.propNote: some plugins may require core properties to pass tests. Eg: ESNPlugin where alert.name.recommendation property is declared in core I18N.prop
${workspace_loc}/JCMS/webapps/en/WEB-INF/jalios/languages/en.prop ${workspace_loc}/JCMS/webapps/en/WEB-INF/jalios/languages/fr.prop ${workspace_loc}/JCMS/webapps/en/WEB-INF/plugins/ESNPlugin/properties/languages/en.prop ${workspace_loc}/JCMS/webapps/en/WEB-INF/plugins/ESNPlugin/properties/languages/fr.prop
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedHashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Integer>> |
checkedPropertyMap |
protected org.apache.oro.text.regex.PatternCompiler |
compiler |
static java.util.regex.Pattern |
DATE_PARAMETER_PATTERN
Pattern used to match all date parameter such as
{0,date,yyyy/MM/dd HH:mm} in a property value |
protected org.apache.oro.text.regex.Pattern |
keyPattern |
protected java.util.List<java.lang.String> |
langList |
protected org.apache.oro.text.regex.PatternMatcher |
matcher |
protected org.apache.oro.text.regex.Pattern |
paramPattern |
protected LangProperties |
properties |
static java.lang.String |
REVISION |
CHANNEL, PROP_SUFFIX_FILE_FILTER
Constructor and Description |
---|
LangPropertiesChecker(LangProperties properties,
java.util.List<java.lang.String> langList) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertyKey(java.lang.String propKey) |
CheckResult |
checkProperties()
Performs the following checks on the loaded languages properties :
property missing in one of the required language
property defined multiple times
|
static void |
main(java.lang.String[] args) |
static void |
usage(java.lang.String[] args) |
static void |
usage(java.lang.String[] args,
java.lang.String error) |
loadLanguageProperties, loadProperties, loadProperties, saveError
public static final java.lang.String REVISION
protected final org.apache.oro.text.regex.PatternCompiler compiler
protected final org.apache.oro.text.regex.PatternMatcher matcher
protected LangProperties properties
protected java.util.List<java.lang.String> langList
protected org.apache.oro.text.regex.Pattern keyPattern
protected org.apache.oro.text.regex.Pattern paramPattern
protected java.util.LinkedHashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Integer>> checkedPropertyMap
public static final java.util.regex.Pattern DATE_PARAMETER_PATTERN
{0,date,yyyy/MM/dd HH:mm}
in a property valuepublic LangPropertiesChecker(LangProperties properties, java.util.List<java.lang.String> langList)
public static void usage(java.lang.String[] args)
public static void usage(java.lang.String[] args, java.lang.String error)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
protected void addPropertyKey(java.lang.String propKey)
public CheckResult checkProperties()
Copyright © 2001-2017 Jalios SA. All Rights Reserved.