Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-2007, 01:28 AM
New Member
 
Posts: 3
Default Howto Localize Zimlets?

Hi,

How can zimlets be localized? I need localized texts for e.g. "<toolTipText>" in <zimlet_name>.xml.

The "Zimbra Zimlet Whitepaper.pdf" mentions localization, but doesn't give any useful examples. Google was of no help either!

I have tried the following in <zimlet_name>.xml:

Code:
<zimletPanelItem label="${msg.titel}" icon="Security-panelIcon">
            <toolTipText>${msg.tooltip}</toolTipText>
</zimletPanelItem>
and add a <zimlet_name>.properties file to the <zimlet_name> zimlet, with the following content:

Code:
tooltip = "My localized tooltip"
titel = "My localized title"
Obvioulsy I'm doing something wrong, because this doesn't work.

Could someone show how to accomplish the above?
Reply With Quote
  #2 (permalink)  
Old 11-09-2007, 10:26 AM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by ClausA View Post
Hi,

How can zimlets be localized? I need localized texts for e.g. "<toolTipText>" in <zimlet_name>.xml.

The "Zimbra Zimlet Whitepaper.pdf" mentions localization, but doesn't give any useful examples. Google was of no help either!

I have tried the following in <zimlet_name>.xml:

Code:
<zimletPanelItem label="${msg.titel}" icon="Security-panelIcon">
            <toolTipText>${msg.tooltip}</toolTipText>
</zimletPanelItem>
and add a <zimlet_name>.properties file to the <zimlet_name> zimlet, with the following content:

Code:
tooltip = "My localized tooltip"
titel = "My localized title"
Obvioulsy I'm doing something wrong, because this doesn't work.

Could someone show how to accomplish the above?
Did you try putting this in under firebug, and seeing if there was a attempt to fetch the .properties file from the server?
Reply With Quote
  #3 (permalink)  
Old 11-19-2007, 05:03 AM
New Member
 
Posts: 3
Default

For the archive:

Things are working now :-)

Remember to add the following to the <zimlet_name>.xml file:

Code:
<include><zimlet_name>.properties</include>
<include><zimlet_name>_da.properties</include>
<include><zimlet_name>_de.properties</include>
(and so forth for each language file)

Also note that the double quotes (") in the proterties-files should be omitted:

Code:
tooltip = My localized tooltip
titel = My localized title

Thanks to JoshuaPrismon for hinting FireBug :-)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.