[ 
https://jira.duraspace.org/browse/DS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark H. Wood updated DS-844:
----------------------------

    Status: Open  (was: Received)

> Simplify, internationalize org.dspace.statistics.util.LocationUtils
> -------------------------------------------------------------------
>
>                 Key: DS-844
>                 URL: https://jira.duraspace.org/browse/DS-844
>             Project: DSpace
>          Issue Type: Improvement
>          Components: DSpace API
>    Affects Versions: 1.7.0
>            Reporter: Mark H. Wood
>            Assignee: Mark H. Wood
>
> Most of the class consists of long one-dimensional String arrays which (a) 
> must be kept parallel and (b) only give English names.  Names of countries 
> are already in the JRE, in java.util.Locale, where they are also 
> internationalized.  For example, to get the French name for China:  new 
> Locale("ZH","CN").getDisplayCountry(new Locale("FR","FR"));
> LocationUtils.getCountryName() could use 
> Locale.getDisplayCountry(request.getLocale()) to replace this private table 
> and internationalize its return.
> This leaves only the mapping from country to continent and the names of the 
> continents.  The mapping should be externalized to e.g. a Properties file or 
> Spring map-property injection where it can be updated without recompilation.  
> The continents' names should be externalized to localized property bundles 
> such as Messages*.properties so they can be internationalized.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to