[zanata/zanata-server] 697af7: Add locale mappings to HProject

GitHub noreply at github.com
Wed Dec 10 06:45:26 UTC 2014


  Branch: refs/heads/locale-aliases
  Home:   https://github.com/zanata/zanata-server
  Commit: 697af774ed9acf237c0c5679448d0aa485700734
      https://github.com/zanata/zanata-server/commit/697af774ed9acf237c0c5679448d0aa485700734
  Author: David Mason <drdmason at gmail.com>
  Date:   2014-12-10 (Wed, 10 Dec 2014)

  Changed paths:
    M zanata-model/src/main/java/org/zanata/model/HProject.java
    M zanata-war/src/main/resources/db/changelogs/db.changelog-3.6.xml

  Log Message:
  -----------
  Add locale mappings to HProject

Adds join table to map locale id to mapping string for a project id,
and updates hibernate entity HProject to use the join table.


  Commit: 77e7a137e8b2d97f71176113e7b9074396664bcc
      https://github.com/zanata/zanata-server/commit/77e7a137e8b2d97f71176113e7b9074396664bcc
  Author: David Mason <drdmason at gmail.com>
  Date:   2014-12-10 (Wed, 10 Dec 2014)

  Changed paths:
    M zanata-model/src/main/java/org/zanata/model/HProjectIteration.java
    M zanata-war/src/main/resources/db/changelogs/db.changelog-3.6.xml

  Log Message:
  -----------
  Add locale mappings to HProjectIteration


  Commit: 8c6b912db7c7964a9a919290c46f3820f3429635
      https://github.com/zanata/zanata-server/commit/8c6b912db7c7964a9a919290c46f3820f3429635
  Author: David Mason <drdmason at gmail.com>
  Date:   2014-12-10 (Wed, 10 Dec 2014)

  Changed paths:
    M zanata-war/src/main/java/org/zanata/action/ProjectHome.java
    M zanata-war/src/main/webapp/WEB-INF/layout/project/settings-tab.xhtml

  Log Message:
  -----------
  Display locale mapping for locales on project settings page.

Displays mapping next to the locale id if it exists, otherwise
shows "no mapping" to ensure that code is executing properly during
development. The "no mapping" should be removed before this feature
is complete.


  Commit: cd23efcd6f50a072495558a3aa46c9f958c6e891
      https://github.com/zanata/zanata-server/commit/cd23efcd6f50a072495558a3aa46c9f958c6e891
  Author: David Mason <drdmason at gmail.com>
  Date:   2014-12-10 (Wed, 10 Dec 2014)

  Changed paths:
    M zanata-model/src/main/java/org/zanata/model/HProject.java
    M zanata-war/src/main/java/org/zanata/action/ProjectHome.java
    M zanata-war/src/main/webapp/WEB-INF/layout/project/settings-tab.xhtml

  Log Message:
  -----------
  Allow setting of locale aliases in project language settings.

 - make the mapping textbox show and hide
 - limit input to 255 characters to match the database field
 - allow aliases to be set for two different languages without error

Setting aliases for different locales on the same pageload causes a null pointer
exception when looking up the versions - seems very unrelated so presumably some
silent error related to having multiple fields using the same property in the
backing bean.


  Commit: e3641f47c2732ffbdd68598262b17faab015f9eb
      https://github.com/zanata/zanata-server/commit/e3641f47c2732ffbdd68598262b17faab015f9eb
  Author: David Mason <drdmason at gmail.com>
  Date:   2014-12-10 (Wed, 10 Dec 2014)

  Changed paths:
    M zanata-model/src/main/java/org/zanata/model/HProject.java
    A zanata-war/src/main/java/org/zanata/rest/service/ProjectLocalesService.java

  Log Message:
  -----------
  Add REST endpoint for project locales


Compare: https://github.com/zanata/zanata-server/compare/a87bdfe6457a...e3641f47c273


More information about the zanata-commits mailing list