Results 1 to 3 of 3

Thread: Howto Localize Zimlets?

  1. #1
    ClausA is offline New Member
    Join Date
    Apr 2007
    Posts
    3
    Rep Power
    7

    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?

  2. #2
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    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?

  3. #3
    ClausA is offline New Member
    Join Date
    Apr 2007
    Posts
    3
    Rep Power
    7

    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 :-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimlets Webinar: July 24th
    By GregA in forum Webinars
    Replies: 12
    Last Post: 09-12-2007, 09:24 PM
  2. where are my zimlets ?
    By santo in forum Zimlets
    Replies: 21
    Last Post: 06-05-2007, 07:30 AM
  3. Can't Deploy Zimlets after upgrade to 4.5.5
    By ajsp in forum Installation
    Replies: 2
    Last Post: 05-17-2007, 07:17 AM
  4. Graphs and Zimlets not displaying?
    By nadia007 in forum Installation
    Replies: 13
    Last Post: 11-24-2006, 07:51 AM
  5. No zimlets displayed in 3.2 M1/M2
    By pepijn in forum Administrators
    Replies: 2
    Last Post: 07-28-2006, 06:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •