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 08-29-2006, 01:58 PM
New Member
 
Posts: 3
Default Zimlet Translation Code Problem

Hello All:

I am trying to translate the zimbra_com_date to brazilian portuguese, but I have some problems with the character codes.

I changed the lines
...
var $RE_TODAY_TOMORROW_YESTERDAY = "(hoje|amanhã|ontem)";
...
var result = ZmDate1ObjectHandler.REGEX.exec(line);
if (!result) {return null;}

var d = new Date(this.getCurrentDate().getTime());
var when = result[1].toLowerCase();
if (when == "ontem") {
d.setDate(d.getDate() - 1);
} else if (when == "amanhã") {
d.setDate(d.getDate() + 1);
}
...

to make it recognizes the words hoje for today, amanhã for tomorrow and ontem for yesterday. And corrected it for adding or removing one day for yesterday and tomorrow.

Well, the word "amanhã" haven't the last character ("a"+"~") in the ASCII table.

As I read it before in this forum, to translations, we have to convert it using nativetoascii, wich i used. And it can recognizes the "ontem" and "hoje", but not "amanhã".

I tried to put the file in UTF-8 and ISO-8859-1, but got the same error.

I am using Zimbra Network Edition 4.0 RC1 in Fedora Core 4 and LANG=pt_BR.UTF-8.

Thanks for all.

Josemar Lohn
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.