Re: Freemarker and choice format message
Petr Pokorný <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <000001c94a30$923f7e10$b6be7a30$@com> |
Hi to all,
Today we resolved it.
Its not a problem in spring or freemarker, it was problem in my mind.
I use arguments with string but in msg it is number it was all.
So we dont have special settings for freemarker and it does automaticaly by
spring
For example
This msg
TextSupport.person = {0, choice, 1#{0,number,integer}
osoba|1<{0,number,integer} osoby|4<{0,number,integer} osob}
Ftl
<@spring.messageArgs "TextSupport.person", [10] />
Output
10 osob
Thanks to you.
Petr from CZ, best regards to us - walking to clarity
-----Original Message-----
From: Petr [mailto:[email protected]]
Sent: Tuesday, November 18, 2008 12:35 PM
To: [email protected]
Subject: [FreeMarker-user] Freemarker and choice format message
Hi to all,
is possible to do in freemarker that I give some arguments to message and
msg do choice action?
We have did in java that our Message can format this msg
{0, choice, 1#{0,number,integer} osoba|1<{0,number,integer}
osoby|4<{0,number,integer} osob}.
And now we are thinking this put to freemarker. Wo dont know if freemarker
has some own way to do this or it is possible to initialize and assign to
our format methods to freemarker context.
Anybody has some idea to resolve this?
Thanks for your time.
Im sorry for my english and if I dont express my situation clearly, pls ask
me for some things which maybe miss in text.
Thanks Petr from CZ, best regards to us
--
View this message in context:
http://www.nabble.com/Freemarker-and-choice-format-message-tp20557872p205578
72.html
Sent from the freemarker-user mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
__________ Informace od ESET Smart Security, verze databaze 3615 (20081115)
__________
Tuto zpravu proveril ESET Smart Security.
http://www.eset.cz
__________ Informace od ESET Smart Security, verze databaze 3623 (20081118)
__________
Tuto zpravu proveril ESET Smart Security.
http://www.eset.cz
__________ Informace od ESET Smart Security, verze databaze 3623 (20081118)
__________
Tuto zpravu proveril ESET Smart Security.
http://www.eset.cz
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/