[zanata/zanata-server] 37bd7b: Add REST endpoint for version locale list.
GitHub
noreply at github.com
Tue Feb 17 03:46:59 UTC 2015
Branch: refs/heads/locale-aliases-select-checkboxes
Home: https://github.com/zanata/zanata-server
Commit: 37bd7b3ed4a783ca94f3f2efb3f0ee75851cbdd1
https://github.com/zanata/zanata-server/commit/37bd7b3ed4a783ca94f3f2efb3f0ee75851cbdd1
Author: David Mason <drdmason at gmail.com>
Date: 2015-02-17 (Tue, 17 Feb 2015)
Changed paths:
M zanata-war/src/main/java/org/zanata/action/VersionHome.java
A zanata-war/src/main/java/org/zanata/rest/service/LocalesService.java
A zanata-war/src/main/java/org/zanata/rest/service/ProjectIterationLocalesService.java
M zanata-war/src/main/java/org/zanata/rest/service/ProjectLocalesService.java
M zanata-war/src/main/java/org/zanata/service/impl/LocaleServiceImpl.java
Log Message:
-----------
Add REST endpoint for version locale list.
Added a common parent for both the project and version locales endpoint
to avoid duplicating the code for formatting the locale list response
entity. This could have been done with a static method on one or the
other class, or on a utility class. I may yet change to one of those
approaches.
Adds a helper method in LocaleServiceImpl to determine whether to get
the project or version locale aliases, to be consistent with how the
locale list is similarly differentiated.
More information about the zanata-commits
mailing list