View
56
Download
0
Category
Tags:
Preview:
DESCRIPTION
Internationalization in Sakai. Raúl Mengod López (rmengod@upv.es) Universidad Politécnica de Valencia (Spain). Overview. Introduction: sakai in UPV Tool Internationalization in UPV Calendar Tool Message Center Page and Tool Titles I18n issues Review I18n-QA 2.6 Tentative Roadmap. - PowerPoint PPT Presentation
Citation preview
8th Sakai Conference
4-7 December 2007Newport Beach
Internationalization in SakaiInternationalization in Sakai
Raúl Mengod López (rmengod@upv.es)Universidad Politécnica de Valencia (Spain)
2
OverviewOverview
• Introduction: sakai in UPV
• Tool Internationalization in UPV– Calendar Tool– Message Center– Page and Tool Titles
• I18n issues Review
• I18n-QA
• 2.6 Tentative Roadmap
3
Introduction: Sakai in UPVIntroduction: Sakai in UPV
• Pilot in 2006• Running 2.1.2 in 2006/2007
– Customized for local requirements– Fixed some I18n Issues
• Running 2.4.x in 2007/2008– Customized for local requirements– Fixed some I18n Issues
• Replication of fixes on every version• The cost for version update is going up.
4
i18n Fixes i18n Fixes
• Valencia is in a Bi-lingual region of Spain
• All the applications offered in 3 languages– Spanish,Valencian(Catalan), English
• Strong requirements and complains– Calendar– Message Center– Page and Tool Titles
5
Calendar ToolCalendar Tool• SAK-8459 (Calendar presentation internationalization )
• Which is the First Day of Week?
“And on the seventh day God finished his work which he had done, and he rested on the seventh day from all his work which he had done.” Genesis 2-1
– Sunday• America, Australia, Canada, China, South Africa, Portugal, Brazil, Japan
– Monday• Spain, Germany, United Kingdom, Sweden, Italy, Mexico, France,
Denmark, The Netherlands– Saturday
• Saudi Arabia
6
Calendar ToolCalendar Tool
7
Calendar ToolCalendar Tool• Changes in CalendarUtil.java
– New method GetFirstDayofWeek
• Changes in CalendarAction.java– Logic to control the days to be shown
• Changes in velocity files– chef_calendar_viewMonth.vm– chef_calendar_viewWeek.vm– chef_calendar_viewYear.vm
• University of Lleida has a different approach.
8
Calendar ToolCalendar Tool
9
Calendar ToolCalendar Tool
10
Message CenterMessage Center• SAK-12146 (Messages default folders' names localization is not related
to the viewer's preferences)
• Folders created by default– Received, Sent, Deleted– Created with the ‘creation language’– Don’t change when using a different language
11
Message CenterMessage Center
• Create new keys in Messages.properties• pvt_sent, pvt_deleted, pvt_received
• Store keys in the database in the MFR_TOPIC_T.TITLE column
• PrivateMessagesTool.java– Look up in the bundle for translation of recovered
topic title.– Set title value if no translation is found (for
customized folders)
12
Message CenterMessage Center
13
Message CenterMessage Center
14
Message CenterMessage Center
• SAK-8569 (MessageCenter internationalization review )
• Compose Message To list shows non i18n texts– All Participants,– XXX Role,– XXX Section
15
Message CenterMessage Center
• Include new bundle properties– all_participants_desc=Todos los componentes– participants_group_desc=Grupo {0}– participants_role_desc=Todos los {0}
• MembershipManagerImpl.java– Separate Code and Description in Select Lists
16
Message CenterMessage Center
17
Pages and Tools TitlesPages and Tools Titles• SAK-8908 (Tool titles and Page titles should be displayed in user's
prefered language/locale)
• Created in the language of the site creator.• Titles stored in the database
– SAKAI_SITE_PAGE.TITLE– SAKAI_SITE_TOOL.TITLE
• Titles don’t change when the user selects a different language.
• Titles can only be edited in sites editor tool• Translation of tools
– tool/tool-impl/impl/src/bundle/tools.properties
18
Pages and Tools TitlesPages and Tools Titles
19
Pages and Tools TitlesPages and Tools Titles
• UPV Approach for Page Title– Save tool register name in database
• (sakai.samigo, sakai.gradebook etc…)
– Use the same column (TITLE)– Use new bundle file to get the description in the selected
languageportal/portal-impl/impl/src/bundle/sitepages.properties
– BaseSitePage.java• New method getInternationalizedTitle
20
Pages and Tools TitlesPages and Tools Titles
• UPV Approach for Tool Title– Save tool register name in database
• (sakai.samigo, sakai.gradebook etc…)
– Use the same column (TITLE)– Create a new properties file
site/site-impl/impl/src/bundle/sitepages_es.properties
– Change DbSiteService.java, BaseSitePage.java
21
Pages and Tools TitlesPages and Tools Titles
22
Pages and Tools TitlesPages and Tools Titles
23
Pages and Tools TitlesPages and Tools Titles
• Positive– Easy implementation– Allows customization of repeated tools– Don’t need a conversion script
• Negative– Needs modification of properties files when
adding a new tool– Registration name visible in Site Info– Names duplicates in 3 properties files
24
Pages and Tools TitlesPages and Tools Titles• Other Alternatives
– Store tools names in an XML in the Database• Initialization based on property files• Store XML in SAKAI_SITE_TOOL / SAKAI_SITE_PAGE• Create an widget for editing
<?xml version="1.0" encoding="UTF-8"?><i18nstring> <string locale=“es” value=“Exámenes”/> <string locale=“en” value=“Assessments”/></i18nString>
– Use Dynamic Language Beans?– Any idea is welcome!!!!
25
I18n Issues ReviewI18n Issues Review
• Issues reported and unsolved in JIRA– 43 ISSUES– Some are very old– Seems that no one is working on them
• Issues marked as priority in confluence– Make it easier to do by moving non-internationalization related items
out of .properties files and into .config files – Adopt Localized Date/Time Widget for all tools
26
I18n QAI18n QA
• i18n should be part of the QA
• QA servers are not supporting full i18n capabilities (fixed).
• A i18n tool certification should be passed before promoting tools?– Check list of i18n requirements for tools– Testing with UFT-8
27
2.6 Tentative Roadmap2.6 Tentative Roadmap
• Look for the better alternatives for existing bugs• Include already fixed tools in sakai trunc branch• ….• ….• ….• ….
28
Thank YouThank You
Raúl Mengod López
rmengod@upv.es
Recommended