Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Other > International > I18N/L10N - Translations

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 05-13-2009, 12:06 PM
Starter Member
 
Posts: 1
Exclamation Help with Date Zimlet - pt_BR - Accents

I am making small adjustments in Date Zimlet com_zimbra_date_pt_BR.properties file, but i have some problems.

Example:

Match "amanhã" to tomorrow

I have:

format2.pattern = amanh\u00e3
format2.rule = now +1 day
format2.boundary = true

But is not working

Another exemple:

Match "Última quarta-feira" or "Última quarta" or "Último domingo", etc...

format5.pattern = \u00fAltim(a|o) {dayname}(-feira)?
format5.rule = now -1 {dayname}
format5.boundary = true

And this is not working too...


But another entrie works.

Match "Próximo domingo" or "Próxima quarta-feira" or "Esta próxima segunda", etc...

format4.pattern = (est(a|e)|pr\u00f3xim(o|a)) {dayname}(-feira)?
format4.rule = now +1 {dayname}
format4.boundary = true

This entry work

Any sugestion?

Sorry about my bad english
Reply With Quote
  #2 (permalink)  
Old 05-23-2009, 11:41 AM
Project Contributor
 
Posts: 136
Default

Try with quotes. The zimlets are Javascript, so you have to convince the parser that what you have is a string. Try:
... pattern = '\u00faltim' + '(a|o) ....'
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.