Login

mvnForum

mvnForum Homepage Welcome Guest
  Search  
  Index  | Recent Threads  | Unanswered Threads  | List Polls  | Public Albums  | Who's Online  | Help


Quick Go »


No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
Post new Thread
Author
Previous Thread This topic has been viewed 1587 times and has 2 replies Next Thread
Female nosenose23
Stranger




Joined: Jun 25, 2008
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Translate default folder names (Trash, Inbox, Draft,

Hi,

I want to translate the defaut folder names (Trash, Inbox, Draft and Sent) into Spanish (Papelera, Bandeja de entrada, Borradores and Enviados). So, how can I do it?

I've seen in the source code of some JSP's that there are lines like "if folderName.equals("Trash") and I've also seen that in the table "mvnforummessagesfolder" there are a column "folderName" wich contains the names directly sad

I've also seen the java Class MVNForumConstants which defines variables for these folder names, but afterwards there are so many places (JSPs) where these variables aren't used.

Can anybody help me?

Thanks in advance.

Enric.
[Jun 25, 2008 10:31:20 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male megacb
mvnForum developer




Joined: Jan 21, 2008
Post Count: 123
Status: Offline
Reply to this Post  Reply with Quote 
Re: Translate default folder names (Trash, Inbox, Draft,

Hi,

I want to translate the defaut folder names (Trash, Inbox, Draft and Sent) into Spanish (Papelera, Bandeja de entrada, Borradores and Enviados). So, how can I do it?

I've seen in the source code of some JSP's that there are lines like "if folderName.equals("Trash") and I've also seen that in the table "mvnforummessagesfolder" there are a column "folderName" wich contains the names directly sad

I've also seen the java Class MVNForumConstants which defines variables for these folder names, but afterwards there are so many places (JSPs) where these variables aren't used.

Can anybody help me?

Thanks in advance.

Enric.

We recommend that you write a class TranslateUtil to translate foldername
String translateToSpanish(String folderName)
[Jun 26, 2008 9:06:59 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male tqphong
mvnForum developer



Vietnam
Joined: Sep 16, 2004
Post Count: 85
Status: Offline
Reply to this Post  Reply with Quote 
Re: Translate default folder names (Trash, Inbox, Draft,

Plz try in this way:
Add some of new i18n keys, let say
- mvnforum.privatemessage.inbox = ..
- mvnforum.privatemessage.trash = ..
..

to the i18n properties files (at least for default & Spanish)
then, change accordingly the static hard-coded texts in mymessage.jsp.

Hence, you can localize any hard-coded texts.
[Jun 29, 2008 10:57:53 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    minesking [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread