-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58332/
-----------------------------------------------------------
Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O
hEigeartaigh, Gautam Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan
Neethiraj, Velmurugan Periasamy, and Qiang Zhang.
Bugs: RANGER-1508
https://issues.apache.org/jira/browse/RANGER-1508
Repository: ranger
Description
-------
Use the browser to log in Chinese Ranger admin operating system, when an error
occurs, garbage is returned to the browser, the server code logic, and found
English error information using hard encoding compared and caused the program
logic error. So we need to log in to support the internationalization of the
function to solve such problems.
The reason is because the location error (Locale.getDefault); different
countries and regions to obtain the local languages, we need according to the
login user login area language encoding in different countries and regions of
the dynamic of the current user. According to the configuration file to
dynamically access the correct language.
Diffs
-----
security-admin/src/main/java/org/apache/ranger/security/web/authentication/RangerAuthFailureHandler.java
580b6bc
security-admin/src/main/resources/internationalization/messages.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_cs_CZ.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_de.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_es_ES.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_fr.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_it.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_ko_KR.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_lt.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_pl.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_pt_BR.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_pt_PT.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_uk_UA.properties
PRE-CREATION
security-admin/src/main/resources/internationalization/messages_zh_CN.properties
PRE-CREATION
Diff: https://reviews.apache.org/r/58332/diff/1/
Testing
-------
tested it
Thanks,
pengjianhua