Results 1 to 7 of 7

Thread: [SOLVED] Message files; multilingual skins

  1. #1
    carr is offline Active Member
    Join Date
    Jul 2008
    Posts
    44
    Rep Power
    7

    Default [SOLVED] Message files; multilingual skins

    Hi,

    the skins wiki mentions something about "message files":
    ZWC 5.0 Themes

    The files are for overwriting default captions used by Zimbra. Can I define my own captions?
    I need to have multilingual support for my skin. Maybe there is another way to do this?

  2. #2
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    The folder where you can find those messages files is :
    /opt/zimbra/jetty/webapps/zimbra/WEB-INF/classes/messages

    But by default you will have multilingual support in your skin.
    Create a "messages" folder in your skin folder only if you need to have customized messages for this skin.

  3. #3
    carr is offline Active Member
    Join Date
    Jul 2008
    Posts
    44
    Rep Power
    7

    Default

    Quote Originally Posted by tdesorbaix View Post
    The folder where you can find those messages files is :
    /opt/zimbra/jetty/webapps/zimbra/WEB-INF/classes/messages

    But by default you will have multilingual support in your skin.
    Create a "messages" folder in your skin folder only if you need to have customized messages for this skin.
    I need custom messages and custom additional messages for the skin. Messages for the toolbar or app_chooser are working great but I also need to have multilingual support for my additional messages.

  4. #4
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    Then you just have to follow the instructions given in the documentation :
    To show custom messages in your skin:
    1. Create a Skin Message Directory: .../zimbra/skins/YourSkin/messages/
    2. Create one or more files with the same name as the standard message file that you want to customize.
    3. Add entries in your skin message file with the same name as that of the standard message. You do not have to copy all of the messages from the original file -- the messages from the default file will be used for anything missing from your file.
    4. Follow the same procedure for any other languages for which you wish to create custom messages.
    5. Note that you do not need to update your manifest.xml file -- all messages in your Skin Message Directory will be loaded automatically.

  5. #5
    carr is offline Active Member
    Join Date
    Jul 2008
    Posts
    44
    Rep Power
    7

    Default


    Yes I did this and it works properly.

    BUT lets assume I want to add an additional link to my skin, so I write something like this in my skin.html:

    HTML Code:
    <a href="someplace.com">My Link</a>
    Now "My Link" won't change no matter what language I choose. So how do I apply messages to my skin.html in order to be multilingual.

  6. #6
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    Try to do the following :

    1-Change in your skin.html :
    Code:
    <a href="someplace.com">My Link</a>
    into :
    Code:
    <a href="someplace.com">document.write(ZmMsg.myLink)</a>
    2-create a new file ZmMsg.properties in the "messages" folder of your skin.
    3-In this file, write :
    myLink = My Link
    4-repeat 2 and 3 for each language you want to handle.



    example to handle french language :
    -create a new file ZmMsg_fr.properties in the "messages" folder of your skin.
    -In this file, write :
    myLink = Mon Lien

  7. #7
    carr is offline Active Member
    Join Date
    Jul 2008
    Posts
    44
    Rep Power
    7

    Default

    Yes this works. Thank you

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Emails bouncing with "Error Text: 401,'null'"
    By sholden in forum Zimbra Connector for Outlook
    Replies: 27
    Last Post: 08-20-2008, 04:59 PM
  2. Replies: 6
    Last Post: 04-28-2008, 08:25 AM
  3. Replies: 12
    Last Post: 02-25-2008, 07:28 PM
  4. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 AM
  5. Replies: 16
    Last Post: 09-07-2006, 06:39 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
  •