[zanata/zanata-server] f4d444: Add locale aliases to HProject

GitHub noreply at github.com
Thu Dec 11 06:48:24 UTC 2014


  Branch: refs/heads/locale-aliases
  Home:   https://github.com/zanata/zanata-server
  Commit: f4d444a0e98065ec90cdfde9199ee8e8a4b8156e
      https://github.com/zanata/zanata-server/commit/f4d444a0e98065ec90cdfde9199ee8e8a4b8156e
  Author: David Mason <drdmason at gmail.com>
  Date:   2014-12-11 (Thu, 11 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 aliases to HProject

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


  Commit: 0f395ffdda8100e11eb1dc3c897f3a3d6bfbdee3
      https://github.com/zanata/zanata-server/commit/0f395ffdda8100e11eb1dc3c897f3a3d6bfbdee3
  Author: David Mason <drdmason at gmail.com>
  Date:   2014-12-11 (Thu, 11 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 aliases to HProjectIteration


  Commit: c47ad0a47b877474c1284d12d0b3d3ee62f14185
      https://github.com/zanata/zanata-server/commit/c47ad0a47b877474c1284d12d0b3d3ee62f14185
  Author: David Mason <drdmason at gmail.com>
  Date:   2014-12-11 (Thu, 11 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:
  -----------
  Show and set locale alias on project settings page.

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

Yet to do:

 - make the alias 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: 0b5998093933b6ca10b008096eab27165692cb81
      https://github.com/zanata/zanata-server/commit/0b5998093933b6ca10b008096eab27165692cb81
  Author: David Mason <drdmason at gmail.com>
  Date:   2014-12-11 (Thu, 11 Dec 2014)

  Changed paths:
    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/e3641f47c273...0b5998093933


More information about the zanata-commits mailing list