brianchandotcom/liferay-plugins — pull request #961 by samuelkong (2012-09-27 12:47:42+00:00)
Title: LPS-29576

Brian, this is not fully working as you requested, but can you merge what you can and create the Japanese hook. The Japanese hook is the one that is critical and needed by MHan. The Chinese stuff is adding a lot of complexity that won't be an issue in the Japanese hook. And I need to get the Japanese hook done by Friday since there's a long holiday next week.

1) Only zh_CN is specified for langauge.ids because there's a bug with the cache somewhere. In InstanceUtil, calling RoleLocalServiceUtil.updateRole does not flush the cache. As a result, each we call role.getDescriptionMap(), it returns an empty map. Basically, only the last language in the list will be saved.

2) For localizing the region, Sara haven't been able to figure it out and I didn't have the time to dig into the problem. But part of the problem comes from the regions being loaded by JavaScript/AJAX based on the country that is selected. The country selector should work as an example, but the country selector also doesn't really work (It's always uses English regardless of the current language)

3) We're not adding support for Taiwan address because we would need to dynamically change the fields based on the country that is selected. (we can do it, but it takes times) For inputting Chinese addresses we're using (in order)
* street3 = district
* street1 = street/road
* street2 = building & room

We're using street3 for the district because we want some consistency and always store the road/street in street1

However, for Taiwan address, the components are
* street1 = street/road
* street2 = building number
* street3 = floor

So sorry.