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

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 09-16-2008, 02:19 AM
Active Member
 
Posts: 44
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?
Reply With Quote
  #2 (permalink)  
Old 09-16-2008, 05:41 AM
Zimlet Guru & Moderator
 
Posts: 288
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.
Reply With Quote
  #3 (permalink)  
Old 09-16-2008, 06:28 AM
Active Member
 
Posts: 44
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.
Reply With Quote
  #4 (permalink)  
Old 09-16-2008, 06:34 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

Then you just have to follow the instructions given in the documentation :
Quote:
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.
Reply With Quote
  #5 (permalink)  
Old 09-16-2008, 07:05 AM
Active Member
 
Posts: 44
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.
Reply With Quote
  #6 (permalink)  
Old 09-16-2008, 09:03 AM
Zimlet Guru & Moderator
 
Posts: 288
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 :
Quote:
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 :
Quote:
myLink = Mon Lien
Reply With Quote
  #7 (permalink)  
Old 09-17-2008, 05:10 AM
Active Member
 
Posts: 44
Default

Yes this works. Thank you
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.