BaseSiteService.getSite() creates user site that doesn't use localized page & tool titles
GENERAL
TESTING
GENERAL
TESTING
Description
The BaseSIteService.getSite( String id ) method will create a user worksite (e.g. My Workspace) if it doesn't exist. However, it just grabs the default page & tool titles and doesn't look for localized titles. So the system default may Spanish, for example, and all worksites created will have Spanish page/tool titles except for MyWorkspace.
Proposed Solution creates & uses the following new methods: SitePage.localizePage(); // localize page title BaseToolConfiguration.localizeTool(); // localize tool title
closing based on Stephens testign of which exercises this code
Beth Kirschner November 21, 2008 at 7:02 AM
Ian, it would be great if we could get this into the next kernel release to coincide with Sakai 2.7. Thanks.
Beth Kirschner November 21, 2008 at 7:01 AM
Implemented as described – testing involves setting up a sakai instance with a non-english locale system default (see http://confluence.sakaiproject.org/confluence/display/I18N/Home), creating a new user and verifying the 'My Workspace' pages/tools use translated titles (e.g. Spanish). Additional testing should verify that using a english locale system default continues to work (i.e. no change in functionality).
The BaseSIteService.getSite( String id ) method will create a user worksite (e.g. My Workspace) if it doesn't exist. However, it just grabs the default page & tool titles and doesn't look for localized titles. So the system default may Spanish, for example, and all worksites created will have Spanish page/tool titles except for MyWorkspace.
Proposed Solution creates & uses the following new methods:
SitePage.localizePage(); // localize page title
BaseToolConfiguration.localizeTool(); // localize tool title