You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Jürgen Hoffmann <jh...@byteaction.de> on 2003/09/11 11:42:05 UTC

LocalizationTool Patch

Hi all,

I have read an article about dynamic Localization Messages and I thought
it is a must have for Turbine.

So if someone puts a String like this into his  english bundle

testOutput=Hello {0}, your last Name is {1}

And this into his german Bundle

testOutput=Hallo {0}, dein Nachname ist {1}

And then uses the following call

$l10n.get("testOutput", ["Buddy", "Hoffmann"])

Inside his velocity screens, Velocity would transform it, depending on
the users locale to:

Hello Buddy, your last Name is Hoffmann
Or
Hallo Buddy, dein Nachname ist Hoffmann

What do you guys think? It allows for automatic, dynamic Date and Number
Formats also. There is an article on java.sun.com on that.

See http://java.sun.com/j2se/1.4.1/docs/api/java/text/MessageFormat.html
And
http://developer.java.sun.com/developer/JDCTechTips/2003/tt0819.html#1

Kind regards
 
Jürgen Hoffmann

Re: LocalizationTool Patch

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
=?iso-8859-1?Q?J=FCrgen_Hoffmann?= <jh...@byteaction.de> writes:

Nice, unfortunately my mailer ate all the quoted-printable chars.  Can
you sent this to me via direct mail, I'll put it into the 2.4-dev code.

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!" 
      -- AOL CD when played backwards  (User Friendly - 200-10-15)

AW: LocalizationTool Patch

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi,

I have checked out jakarta-turbine-2 head and tried to compile using
maven. But I cannot download fulcrum-localization-1.0-alpha-3.jar. Does
anyone have it?

Kind regards
 
Jürgen Hoffmann


-----Ursprüngliche Nachricht-----
Von: Eric Pugh [mailto:epugh@upstate.com] 
Gesendet: Donnerstag, 11. September 2003 17:11
An: 'Turbine Developers List'
Betreff: RE: LocalizationTool Patch


Jurgen,

It looks pretty cool.  Have you thought about coding it against the
fulcrum localization component version?  And, could you provide a unit
test?  To get you started, here are some links:

Localization Unit Test:
http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum-localizat
ion/
xref-test/org/apache/fulcrum/localization/LocalizationTest.html

LocalizationTool:
http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/apache/turb
ine/
services/localization/LocalizationTool.java

LocalizationTool Unit Test:
http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/test/org/apache/turb
ine/
services/localization/LocalizationToolTest.java


Although, since we haven't really nailed down where the localization
tool is going to live, if you don't want to change it, would you
resubmit it later?

Seems like a good idea..

Eric

> -----Original Message-----
> From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> Sent: Thursday, September 11, 2003 11:42 AM
> To: turbine-dev@jakarta.apache.org
> Subject: LocalizationTool Patch
>
>
> Hi all,
>
> I have read an article about dynamic Localization Messages and I 
> thought it is a must have for Turbine.
>
> So if someone puts a String like this into his  english bundle
>
> testOutput=Hello {0}, your last Name is {1}
>
> And this into his german Bundle
>
> testOutput=Hallo {0}, dein Nachname ist {1}
>
> And then uses the following call
>
> $l10n.get("testOutput", ["Buddy", "Hoffmann"])
>
> Inside his velocity screens, Velocity would transform it, depending on

> the users locale to:
>
> Hello Buddy, your last Name is Hoffmann
> Or
> Hallo Buddy, dein Nachname ist Hoffmann
>
> What do you guys think? It allows for automatic, dynamic Date and 
> Number Formats also. There is an article on java.sun.com on that.
>
> See 
> http://java.sun.com/j2se/1.4.1/docs/api/java/text/MessageFormat.html
> And 
> http://developer.java.sun.com/developer/JDCTechTips/2003/tt0819.html#1
>
> Kind regards
>
> Jürgen Hoffmann
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org




AW: LocalizationTool Patch

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi Eric,

I am still using maven beta 10. If it works with rc1, I will upgrade
immediately. And yes I renamed src to src-off (because you told me to
read the building document ;-)) 

I just love it when things work without problems =D 

Here the Stack Trace

M:\eclipse\workspace\jakarta-turbine-fulcrum>maven -X
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10

[DEBUG] Adding reference: maven.dependency.classpath -> D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\avalon-framework\jars\aval
on-framework-4.1.4.jar;D:\Dokumente und Einstellungen\b
uddy.BUDDYXP\.maven\repository\commons-lang\jars\commons-lang-20030203.0
00129.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-io\jars\commons-io
-20030203.000550.jar;D:\Dokum
ente und
Einstellungen\buddy.BUDDYXP\.maven\repository\log4j\jars\log4j-1.2.8.jar
;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-collections\jars\c
ommons-collections-2.1.jar;D:
\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-configuration\jars
\commons-configuration-20030706.202021.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\excalib
ur-component\jars\excalibur-component-1.1.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\excalibur-instrument\jars\
excalibur-instrument-1.0.jar;D:\Dokumente und Einstellungen\buddy
.BUDDYXP\.maven\repository\excalibur-logger\jars\excalibur-logger-1.0.1.
jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\excalibur-pool\jars\excali
bur-pool-1.2.jar;D:\Dokumente und E
instellungen\buddy.BUDDYXP\.maven\repository\logkit\jars\logkit-1.0.1.ja
r;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\velocity\jars\velocity-1.4
-dev.jar;D:\Dokumente und Einstellung
en\buddy.BUDDYXP\.maven\repository\commons-jelly\jars\commons-jelly-tags
-velocity-20030211.144921.jar
    [available] [VERBOSE] Unable to find src\java to set property
sourcesPresent
    [available] [VERBOSE] Unable to find src\test to set property
unitTestSourcesPresent
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.dependency.classpath ->
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.dependency.classpath -> D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\maven\jars\maven-SNAPSHOT.
jar;D:\Dokumente und Einstellungen\buddy.BUDDYXP\.maven
\repository\commons-io\jars\commons-io-20030203.000550.jar;D:\Dokumente
und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-net\jars\commons-n
et-1.0.0.jar;D:\Dokumente und Einstellungen\buddy.BU
DDYXP\.maven\repository\commons-httpclient\jars\commons-httpclient-2.0-b
eta1.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-lang\jars\commons-
lang-1.0.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\jsch\jars\jsch-0.1.5.jar;D
:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-jelly\jars\commons
-jelly-20030310.073407.jar;D:\Dokumente
und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-jelly\jars\commons
-jelly-tags-velocity-20030303.205659.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\velocity\jars\veloci
ty-1.3.jar
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.dependency.classpath -> D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\dom4j\jars\dom4j-1.4-dev-7
.jar;D:\Dokumente und Einstellungen\buddy.BUDDYXP\.mave
n\repository\xml-apis\jars\xml-apis-1.0.b2.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\maven\jars\maven.jar;D:\Do
kumente und Einstellungen\buddy.BUDDYXP\.maven\repository\isorel
ax\jars\isorelax-20030108.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\xercesjarv\jars\xercesjarv
-20020712-DG.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\x
erces\jars\xerces-2.2.1.jar
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.dependency.classpath -> D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\ant\jars\ant-1.5.1.jar;D:\
Dokumente und Einstellungen\buddy.BUDDYXP\.maven\reposi
tory\dom4j\jars\dom4j-1.4-dev-8.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-grant\jars\commons
-grant-1.0-beta-4.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\r
epository\commons-jelly\jars\commons-jelly-20030211.141339.jar;D:\Dokume
nte und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-jelly\jars\commons
-jelly-tags-jsl-20030211.143151.jar;D:\Dokumente
 und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-jelly\jars\commons
-jelly-tags-log-20030211.142821.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-jelly\jars\commo
ns-jelly-tags-velocity-20030303.205659.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-jelly\jars\commons
-jelly-tags-xml-20030211.142705.jar;D:\Dokumente und Einstellungen\b
uddy.BUDDYXP\.maven\repository\maven\jars\maven.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\velocity\jars\velocity-1.3
.jar;D:\Dokumente und Einstellungen\buddy.BUDDYXP\.maven\re
pository\velocity-dvsl\jars\velocity-dvsl-0.45.jar;D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\xml-apis\jars\xml-apis-1.0
.b2.jar
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.dependency.classpath -> D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\commons-jelly\jars\commons
-jelly-tags-velocity-20030303.205659.jar;D:\Dokumente u
nd
Einstellungen\buddy.BUDDYXP\.maven\repository\velocity\jars\velocity-1.3
.jar
[DEBUG] Adding reference: maven-classpath ->

BUILD FAILED
file:/D:/Dokumente und
Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-plugin-1.0
-SNAPSHOT/:133:62: <j:set> This tag does not understand the 'name'
attribute
com.werken.werkz.UnattainableGoalException: Unable to obtain goal
[multiproject:artifact] -- null:-1:-1: <null> file:/D:/Dokumente und
Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-plu
gin-1.0-SNAPSHOT/:133:62: <j:set> This tag does not understand the
'name' attribute
        at com.werken.werkz.Goal.fire(Goal.java:646)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:434
)
        at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:525)
        at org.apache.maven.cli.App.main(App.java:1088)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:543)
        at com.werken.forehead.Forehead.main(Forehead.java:573)
org.apache.commons.jelly.JellyTagException: null:-1:-1: <null>
file:/D:/Dokumente und
Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-plugin-1.0
-SNAPSHOT/:133:62: <j:set> This tag does n
ot understand the 'name' attribute
        at
org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:6
41)
        at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:285)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at
com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:434
)
        at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:525)
        at org.apache.maven.cli.App.main(App.java:1088)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:543)
        at com.werken.forehead.Forehead.main(Forehead.java:573)
Caused by: org.apache.commons.jelly.JellyException: file:/D:/Dokumente
und
Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-plugin-1.0
-SNAPSHOT/:133:62: <j:set> This tag does not understa
nd the 'name' attribute
        at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:264)
        ... 15 more
Root cause
org.apache.commons.jelly.JellyException: file:/D:/Dokumente und
Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-plugin-1.0
-SNAPSHOT/:133:62: <j:set> This tag does not understand the 'nam
e' attribute
        at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:264)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at
com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:434
)
        at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:525)
        at org.apache.maven.cli.App.main(App.java:1088)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:543)
        at com.werken.forehead.Forehead.main(Forehead.java:573)
Root cause
org.apache.commons.jelly.JellyException: file:/D:/Dokumente und
Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-plugin-1.0
-SNAPSHOT/:133:62: <j:set> This tag does not understand the 'nam
e' attribute
        at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:264)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at
com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:434
)
        at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:525)
        at org.apache.maven.cli.App.main(App.java:1088)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:543)
        at com.werken.forehead.Forehead.main(Forehead.java:573)
Total time:  4 seconds

M:\eclipse\workspace\jakarta-turbine-fulcrum>

Kind regards
 
Jürgen Hoffmann
ByteACTION GmbH
 
cert. Perl Programmer
cert. Linux System Administrator
cert. Java Programmer



-----Ursprüngliche Nachricht-----
Von: Eric Pugh [mailto:epugh@upstate.com] 
Gesendet: Freitag, 12. September 2003 15:48
An: 'Turbine Developers List'
Betreff: RE: LocalizationTool Patch


Can you send me the entire stack trace?  And run it with -X...  I can't
wait for Maven beta 11/rc1 to come out :-)

Did you rename the /src to /src-off so that multiproject wouldn't try to
compile the old stuff?

Also, what version of Maven are you using?  I am using:
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

1.0-rc1-snapshot from about three days ago...

Eric

> -----Original Message-----
> From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> Sent: Friday, September 12, 2003 3:42 PM
> To: turbine-dev@jakarta.apache.org
> Subject: AW: LocalizationTool Patch
>
>
> Hi,
>
> When I try to compile the fulcrum code using maven Iam getting the 
> follwoing error:
>
> file:/D:/Dokumente und
> Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-
> plugin-1.0
> -SNAPSHOT/:133:62: <j:set> This tag does not understand the 'name' 
> attribute
>
> Any ideas?
>
> Kind regards
>
> Jürgen Hoffmann
> ByteACTION GmbH
>
> cert. Perl Programmer
> cert. Linux System Administrator
> cert. Java Programmer
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Eric Pugh [mailto:epugh@upstate.com]
> Gesendet: Donnerstag, 11. September 2003 18:47
> An: 'Jürgen Hoffmann'; 'Turbine Developers List'
> Betreff: RE: LocalizationTool Patch
>
>
> Yup!  And actually, if you don't want everything, then just grab 
> jakarta-turbine-fulcrum/localization to just get the sub project out! 
> Although it does have a couple dependencies, so you may want to start 
> with it all..
>
> Follow the build directions and you should be fine..
>
> Eric
>
> > -----Original Message-----
> > From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> > Sent: Thursday, September 11, 2003 6:30 PM
> > To: 'Turbine Developers List'; epugh@upstate.com
> > Subject: AW: LocalizationTool Patch
> >
> >
> > Hi Eric,
> >
> > I will do this tomorrow. I have never worked with fulcrum is 
> > jakarta-turbine-fulcrum the right Version to checkout?
> >
> > Kind regards
> >
> > Jürgen Hoffmann
> > ByteACTION GmbH
> >
> > cert. Perl Programmer
> > cert. Linux System Administrator
> > cert. Java Programmer
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Eric Pugh [mailto:epugh@upstate.com]
> > Gesendet: Donnerstag, 11. September 2003 17:11
> > An: 'Turbine Developers List'
> > Betreff: RE: LocalizationTool Patch
> >
> >
> > Jurgen,
> >
> > It looks pretty cool.  Have you thought about coding it against the 
> > fulcrum localization component version?  And, could you
> provide a unit
>
> > test?  To get you started, here are some links:
> >
> > Localization Unit Test: 
> > http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum
> > -localizat
> > ion/ xref-test/org/apache/fulcrum/localization/LocalizationTest.html
> >
> > LocalizationTool: 
> > http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/a
> > pache/turb
> > ine/
> > services/localization/LocalizationTool.java
> >
> > LocalizationTool Unit Test: 
> > http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/test/org/a
> > pache/turb
> > ine/
> > services/localization/LocalizationToolTest.java
> >
> >
> > Although, since we haven't really nailed down where the
> localization
> > tool is going to live, if you don't want to change it, would you 
> > resubmit it later?
> >
> > Seems like a good idea..
> >
> > Eric
> >
> > > -----Original Message-----
> > > From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> > > Sent: Thursday, September 11, 2003 11:42 AM
> > > To: turbine-dev@jakarta.apache.org
> > > Subject: LocalizationTool Patch
> > >
> > >
> > > Hi all,
> > >
> > > I have read an article about dynamic Localization Messages and I 
> > > thought it is a must have for Turbine.
> > >
> > > So if someone puts a String like this into his  english bundle
> > >
> > > testOutput=Hello {0}, your last Name is {1}
> > >
> > > And this into his german Bundle
> > >
> > > testOutput=Hallo {0}, dein Nachname ist {1}
> > >
> > > And then uses the following call
> > >
> > > $l10n.get("testOutput", ["Buddy", "Hoffmann"])
> > >
> > > Inside his velocity screens, Velocity would transform it,
> > depending on
> >
> > > the users locale to:
> > >
> > > Hello Buddy, your last Name is Hoffmann
> > > Or
> > > Hallo Buddy, dein Nachname ist Hoffmann
> > >
> > > What do you guys think? It allows for automatic, dynamic Date and 
> > > Number Formats also. There is an article on java.sun.com on that.
> > >
> > > See
> > >
http://java.sun.com/j2se/1.4.1/docs/api/java/text/MessageFormat.html
> > And
> >
http://developer.java.sun.com/developer/JDCTechTips/2003/tt0819.html#1
>
> Kind regards
>
> Jürgen Hoffmann
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org




AW: LocalizationTool Patch

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi Eric,

Switchted to the rc1 of maven but it seems there is a jar missing on
ibiblio. Do you have it and can send it to me off-list?

M:\eclipse\workspace\jakarta-turbine-fulcrum>maven
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

Starting the reactor...
Our processing order:
Fulcrum Test Container
Fulcrum Cache Component
Fulcrum Crypto Component
Fulcrum DVSL Component
Fulcrum Factory Component
Fulcrum Localization Component
Fulcrum Mimetype Component
Fulcrum Pool Component
Pull Service
Fulcrum Scheduler Component
Fulcrum Security Component
Fulcrum XMLRPC Component
+----------------------------------------
| Executing multiproject:artifact-callback Fulcrum Test Container
| Memory: 8M/12M
+----------------------------------------
multiproject:artifact:
multiproject:goal:
multiproject:artifact-callback:
    [echo] Running jar:jar for Fulcrum Test Container
java:prepare-filesystem:
    [mkdir] Created dir:
M:\eclipse\workspace\jakarta-turbine-fulcrum\testcontainer\target\classe
s

java:compile:
    [echo] Compiling to
M:\eclipse\workspace\jakarta-turbine-fulcrum\testcontainer/target/classe
s
    [javac] Compiling 2 source files to
M:\eclipse\workspace\jakarta-turbine-fulcrum\testcontainer\target\classe
s

java:jar-resources:

test:prepare-filesystem:
    [mkdir] Created dir:
M:\eclipse\workspace\jakarta-turbine-fulcrum\testcontainer\target\test-c
lasses
    [mkdir] Created dir:
M:\eclipse\workspace\jakarta-turbine-fulcrum\testcontainer\target\test-r
eports

test:test-resources:
Copying 4 files to
M:\eclipse\workspace\jakarta-turbine-fulcrum\testcontainer\target\test-c
lasses

test:compile:
    [javac] Compiling 4 source files to
M:\eclipse\workspace\jakarta-turbine-fulcrum\testcontainer\target\test-c
lasses

test:test:
    [junit] Running org.apache.fulcrum.testcontainer.ContainerTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,38 sec

jar:jar:
    [jar] Building jar:
M:\eclipse\workspace\jakarta-turbine-fulcrum\testcontainer\target\fulcru
m-testcontainer-1.0-alpha-1.jar
+----------------------------------------
| Executing multiproject:artifact-callback Fulcrum Cache Component
| Memory: 18M/19M
+----------------------------------------
Attempting to download fulcrum-testcontainer-1.0-alpha-1.jar.
Error retrieving artifact from
[http://www.ibiblio.org/maven/fulcrum-testcontainer/jars/fulcrum-testcon
tainer-1.0-alpha-1.jar]: java.lang.Exception: Can't get
fulcrum-testcontainer-1.0-alpha-1.jar to
D:\Dokumente und
Einstellungen\buddy.BUDDYXP\.maven\repository\fulcrum-testcontainer\jars
\fulcrum-testcontainer-1.0-alpha-1.jar
WARNING: Failed to download fulcrum-testcontainer-1.0-alpha-1.jar.

BUILD FAILED
File...... file:/D:/Dokumente und
Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-plugin-1.0
-SNAPSHOT/
Element... maven:reactor
Line...... 381
Column.... 9
The build cannot continue because of the following unsatisfied
dependency:

fulcrum-testcontainer-1.0-alpha-1.jar (no download url specified)

Total time:  38 seconds
Finished at: Fri Sep 12 16:27:01 CEST 2003

M:\eclipse\workspace\jakarta-turbine-fulcrum>

Kind regards
 
Jürgen Hoffmann



-----Ursprüngliche Nachricht-----
Von: Eric Pugh [mailto:epugh@upstate.com] 
Gesendet: Freitag, 12. September 2003 15:48
An: 'Turbine Developers List'
Betreff: RE: LocalizationTool Patch


Can you send me the entire stack trace?  And run it with -X...  I can't
wait for Maven beta 11/rc1 to come out :-)

Did you rename the /src to /src-off so that multiproject wouldn't try to
compile the old stuff?

Also, what version of Maven are you using?  I am using:
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

1.0-rc1-snapshot from about three days ago...

Eric

> -----Original Message-----
> From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> Sent: Friday, September 12, 2003 3:42 PM
> To: turbine-dev@jakarta.apache.org
> Subject: AW: LocalizationTool Patch
>
>
> Hi,
>
> When I try to compile the fulcrum code using maven Iam getting the 
> follwoing error:
>
> file:/D:/Dokumente und
> Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-
> plugin-1.0
> -SNAPSHOT/:133:62: <j:set> This tag does not understand the 'name' 
> attribute
>
> Any ideas?
>
> Kind regards
>
> Jürgen Hoffmann
> ByteACTION GmbH
>
> cert. Perl Programmer
> cert. Linux System Administrator
> cert. Java Programmer
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Eric Pugh [mailto:epugh@upstate.com]
> Gesendet: Donnerstag, 11. September 2003 18:47
> An: 'Jürgen Hoffmann'; 'Turbine Developers List'
> Betreff: RE: LocalizationTool Patch
>
>
> Yup!  And actually, if you don't want everything, then just grab 
> jakarta-turbine-fulcrum/localization to just get the sub project out! 
> Although it does have a couple dependencies, so you may want to start 
> with it all..
>
> Follow the build directions and you should be fine..
>
> Eric
>
> > -----Original Message-----
> > From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> > Sent: Thursday, September 11, 2003 6:30 PM
> > To: 'Turbine Developers List'; epugh@upstate.com
> > Subject: AW: LocalizationTool Patch
> >
> >
> > Hi Eric,
> >
> > I will do this tomorrow. I have never worked with fulcrum is 
> > jakarta-turbine-fulcrum the right Version to checkout?
> >
> > Kind regards
> >
> > Jürgen Hoffmann
> > ByteACTION GmbH
> >
> > cert. Perl Programmer
> > cert. Linux System Administrator
> > cert. Java Programmer
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Eric Pugh [mailto:epugh@upstate.com]
> > Gesendet: Donnerstag, 11. September 2003 17:11
> > An: 'Turbine Developers List'
> > Betreff: RE: LocalizationTool Patch
> >
> >
> > Jurgen,
> >
> > It looks pretty cool.  Have you thought about coding it against the 
> > fulcrum localization component version?  And, could you
> provide a unit
>
> > test?  To get you started, here are some links:
> >
> > Localization Unit Test: 
> > http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum
> > -localizat
> > ion/ xref-test/org/apache/fulcrum/localization/LocalizationTest.html
> >
> > LocalizationTool: 
> > http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/a
> > pache/turb
> > ine/
> > services/localization/LocalizationTool.java
> >
> > LocalizationTool Unit Test: 
> > http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/test/org/a
> > pache/turb
> > ine/
> > services/localization/LocalizationToolTest.java
> >
> >
> > Although, since we haven't really nailed down where the
> localization
> > tool is going to live, if you don't want to change it, would you 
> > resubmit it later?
> >
> > Seems like a good idea..
> >
> > Eric
> >
> > > -----Original Message-----
> > > From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> > > Sent: Thursday, September 11, 2003 11:42 AM
> > > To: turbine-dev@jakarta.apache.org
> > > Subject: LocalizationTool Patch
> > >
> > >
> > > Hi all,
> > >
> > > I have read an article about dynamic Localization Messages and I 
> > > thought it is a must have for Turbine.
> > >
> > > So if someone puts a String like this into his  english bundle
> > >
> > > testOutput=Hello {0}, your last Name is {1}
> > >
> > > And this into his german Bundle
> > >
> > > testOutput=Hallo {0}, dein Nachname ist {1}
> > >
> > > And then uses the following call
> > >
> > > $l10n.get("testOutput", ["Buddy", "Hoffmann"])
> > >
> > > Inside his velocity screens, Velocity would transform it,
> > depending on
> >
> > > the users locale to:
> > >
> > > Hello Buddy, your last Name is Hoffmann
> > > Or
> > > Hallo Buddy, dein Nachname ist Hoffmann
> > >
> > > What do you guys think? It allows for automatic, dynamic Date and 
> > > Number Formats also. There is an article on java.sun.com on that.
> > >
> > > See
> > >
http://java.sun.com/j2se/1.4.1/docs/api/java/text/MessageFormat.html
> > And
> >
http://developer.java.sun.com/developer/JDCTechTips/2003/tt0819.html#1
>
> Kind regards
>
> Jürgen Hoffmann
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org




RE: LocalizationTool Patch

Posted by Eric Pugh <ep...@upstate.com>.
Can you send me the entire stack trace?  And run it with -X...  I can't wait
for Maven beta 11/rc1 to come out :-)

Did you rename the /src to /src-off so that multiproject wouldn't try to
compile the old stuff?

Also, what version of Maven are you using?  I am using:
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

1.0-rc1-snapshot from about three days ago...

Eric

> -----Original Message-----
> From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> Sent: Friday, September 12, 2003 3:42 PM
> To: turbine-dev@jakarta.apache.org
> Subject: AW: LocalizationTool Patch
>
>
> Hi,
>
> When I try to compile the fulcrum code using maven Iam getting the
> follwoing error:
>
> file:/D:/Dokumente und
> Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-
> plugin-1.0
> -SNAPSHOT/:133:62: <j:set> This tag does not understand the 'name'
> attribute
>
> Any ideas?
>
> Kind regards
>
> Jürgen Hoffmann
> ByteACTION GmbH
>
> cert. Perl Programmer
> cert. Linux System Administrator
> cert. Java Programmer
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Eric Pugh [mailto:epugh@upstate.com]
> Gesendet: Donnerstag, 11. September 2003 18:47
> An: 'Jürgen Hoffmann'; 'Turbine Developers List'
> Betreff: RE: LocalizationTool Patch
>
>
> Yup!  And actually, if you don't want everything, then just grab
> jakarta-turbine-fulcrum/localization to just get the sub project out!
> Although it does have a couple dependencies, so you may want to start
> with it all..
>
> Follow the build directions and you should be fine..
>
> Eric
>
> > -----Original Message-----
> > From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> > Sent: Thursday, September 11, 2003 6:30 PM
> > To: 'Turbine Developers List'; epugh@upstate.com
> > Subject: AW: LocalizationTool Patch
> >
> >
> > Hi Eric,
> >
> > I will do this tomorrow. I have never worked with fulcrum is
> > jakarta-turbine-fulcrum the right Version to checkout?
> >
> > Kind regards
> >
> > Jürgen Hoffmann
> > ByteACTION GmbH
> >
> > cert. Perl Programmer
> > cert. Linux System Administrator
> > cert. Java Programmer
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Eric Pugh [mailto:epugh@upstate.com]
> > Gesendet: Donnerstag, 11. September 2003 17:11
> > An: 'Turbine Developers List'
> > Betreff: RE: LocalizationTool Patch
> >
> >
> > Jurgen,
> >
> > It looks pretty cool.  Have you thought about coding it against the
> > fulcrum localization component version?  And, could you
> provide a unit
>
> > test?  To get you started, here are some links:
> >
> > Localization Unit Test:
> > http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum
> > -localizat
> > ion/ xref-test/org/apache/fulcrum/localization/LocalizationTest.html
> >
> > LocalizationTool:
> > http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/a
> > pache/turb
> > ine/
> > services/localization/LocalizationTool.java
> >
> > LocalizationTool Unit Test:
> > http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/test/org/a
> > pache/turb
> > ine/
> > services/localization/LocalizationToolTest.java
> >
> >
> > Although, since we haven't really nailed down where the
> localization
> > tool is going to live, if you don't want to change it, would you
> > resubmit it later?
> >
> > Seems like a good idea..
> >
> > Eric
> >
> > > -----Original Message-----
> > > From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> > > Sent: Thursday, September 11, 2003 11:42 AM
> > > To: turbine-dev@jakarta.apache.org
> > > Subject: LocalizationTool Patch
> > >
> > >
> > > Hi all,
> > >
> > > I have read an article about dynamic Localization Messages and I
> > > thought it is a must have for Turbine.
> > >
> > > So if someone puts a String like this into his  english bundle
> > >
> > > testOutput=Hello {0}, your last Name is {1}
> > >
> > > And this into his german Bundle
> > >
> > > testOutput=Hallo {0}, dein Nachname ist {1}
> > >
> > > And then uses the following call
> > >
> > > $l10n.get("testOutput", ["Buddy", "Hoffmann"])
> > >
> > > Inside his velocity screens, Velocity would transform it,
> > depending on
> >
> > > the users locale to:
> > >
> > > Hello Buddy, your last Name is Hoffmann
> > > Or
> > > Hallo Buddy, dein Nachname ist Hoffmann
> > >
> > > What do you guys think? It allows for automatic, dynamic Date and
> > > Number Formats also. There is an article on java.sun.com on that.
> > >
> > > See
> > >
http://java.sun.com/j2se/1.4.1/docs/api/java/text/MessageFormat.html
> > And
> >
http://developer.java.sun.com/developer/JDCTechTips/2003/tt0819.html#1
>
> Kind regards
>
> Jürgen Hoffmann
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


AW: LocalizationTool Patch

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi,

When I try to compile the fulcrum code using maven Iam getting the
follwoing error:

file:/D:/Dokumente und
Einstellungen/buddy.BUDDYXP/.maven/plugins/maven-multiproject-plugin-1.0
-SNAPSHOT/:133:62: <j:set> This tag does not understand the 'name'
attribute

Any ideas?

Kind regards
 
Jürgen Hoffmann
ByteACTION GmbH
 
cert. Perl Programmer
cert. Linux System Administrator
cert. Java Programmer



-----Ursprüngliche Nachricht-----
Von: Eric Pugh [mailto:epugh@upstate.com] 
Gesendet: Donnerstag, 11. September 2003 18:47
An: 'Jürgen Hoffmann'; 'Turbine Developers List'
Betreff: RE: LocalizationTool Patch


Yup!  And actually, if you don't want everything, then just grab
jakarta-turbine-fulcrum/localization to just get the sub project out!
Although it does have a couple dependencies, so you may want to start
with it all..

Follow the build directions and you should be fine..

Eric

> -----Original Message-----
> From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> Sent: Thursday, September 11, 2003 6:30 PM
> To: 'Turbine Developers List'; epugh@upstate.com
> Subject: AW: LocalizationTool Patch
>
>
> Hi Eric,
>
> I will do this tomorrow. I have never worked with fulcrum is 
> jakarta-turbine-fulcrum the right Version to checkout?
>
> Kind regards
>
> Jürgen Hoffmann
> ByteACTION GmbH
>
> cert. Perl Programmer
> cert. Linux System Administrator
> cert. Java Programmer
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Eric Pugh [mailto:epugh@upstate.com]
> Gesendet: Donnerstag, 11. September 2003 17:11
> An: 'Turbine Developers List'
> Betreff: RE: LocalizationTool Patch
>
>
> Jurgen,
>
> It looks pretty cool.  Have you thought about coding it against the 
> fulcrum localization component version?  And, could you provide a unit

> test?  To get you started, here are some links:
>
> Localization Unit Test: 
> http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum
> -localizat
> ion/ xref-test/org/apache/fulcrum/localization/LocalizationTest.html
>
> LocalizationTool: 
> http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/a
> pache/turb
> ine/
> services/localization/LocalizationTool.java
>
> LocalizationTool Unit Test: 
> http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/test/org/a
> pache/turb
> ine/
> services/localization/LocalizationToolTest.java
>
>
> Although, since we haven't really nailed down where the localization 
> tool is going to live, if you don't want to change it, would you 
> resubmit it later?
>
> Seems like a good idea..
>
> Eric
>
> > -----Original Message-----
> > From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> > Sent: Thursday, September 11, 2003 11:42 AM
> > To: turbine-dev@jakarta.apache.org
> > Subject: LocalizationTool Patch
> >
> >
> > Hi all,
> >
> > I have read an article about dynamic Localization Messages and I 
> > thought it is a must have for Turbine.
> >
> > So if someone puts a String like this into his  english bundle
> >
> > testOutput=Hello {0}, your last Name is {1}
> >
> > And this into his german Bundle
> >
> > testOutput=Hallo {0}, dein Nachname ist {1}
> >
> > And then uses the following call
> >
> > $l10n.get("testOutput", ["Buddy", "Hoffmann"])
> >
> > Inside his velocity screens, Velocity would transform it,
> depending on
>
> > the users locale to:
> >
> > Hello Buddy, your last Name is Hoffmann
> > Or
> > Hallo Buddy, dein Nachname ist Hoffmann
> >
> > What do you guys think? It allows for automatic, dynamic Date and 
> > Number Formats also. There is an article on java.sun.com on that.
> >
> > See 
> > http://java.sun.com/j2se/1.4.1/docs/api/java/text/MessageFormat.html
> > And
> >
http://developer.java.sun.com/developer/JDCTechTips/2003/tt0819.html#1
>
> Kind regards
>
> Jürgen Hoffmann
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org





RE: LocalizationTool Patch

Posted by Eric Pugh <ep...@upstate.com>.
Yup!  And actually, if you don't want everything, then just grab
jakarta-turbine-fulcrum/localization to just get the sub project out!
Although it does have a couple dependencies, so you may want to start with
it all..

Follow the build directions and you should be fine..

Eric

> -----Original Message-----
> From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> Sent: Thursday, September 11, 2003 6:30 PM
> To: 'Turbine Developers List'; epugh@upstate.com
> Subject: AW: LocalizationTool Patch
>
>
> Hi Eric,
>
> I will do this tomorrow. I have never worked with fulcrum is
> jakarta-turbine-fulcrum the right Version to checkout?
>
> Kind regards
>
> Jürgen Hoffmann
> ByteACTION GmbH
>
> cert. Perl Programmer
> cert. Linux System Administrator
> cert. Java Programmer
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Eric Pugh [mailto:epugh@upstate.com]
> Gesendet: Donnerstag, 11. September 2003 17:11
> An: 'Turbine Developers List'
> Betreff: RE: LocalizationTool Patch
>
>
> Jurgen,
>
> It looks pretty cool.  Have you thought about coding it against the
> fulcrum localization component version?  And, could you provide a unit
> test?  To get you started, here are some links:
>
> Localization Unit Test:
> http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum
> -localizat
> ion/
> xref-test/org/apache/fulcrum/localization/LocalizationTest.html
>
> LocalizationTool:
> http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/a
> pache/turb
> ine/
> services/localization/LocalizationTool.java
>
> LocalizationTool Unit Test:
> http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/test/org/a
> pache/turb
> ine/
> services/localization/LocalizationToolTest.java
>
>
> Although, since we haven't really nailed down where the localization
> tool is going to live, if you don't want to change it, would you
> resubmit it later?
>
> Seems like a good idea..
>
> Eric
>
> > -----Original Message-----
> > From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> > Sent: Thursday, September 11, 2003 11:42 AM
> > To: turbine-dev@jakarta.apache.org
> > Subject: LocalizationTool Patch
> >
> >
> > Hi all,
> >
> > I have read an article about dynamic Localization Messages and I
> > thought it is a must have for Turbine.
> >
> > So if someone puts a String like this into his  english bundle
> >
> > testOutput=Hello {0}, your last Name is {1}
> >
> > And this into his german Bundle
> >
> > testOutput=Hallo {0}, dein Nachname ist {1}
> >
> > And then uses the following call
> >
> > $l10n.get("testOutput", ["Buddy", "Hoffmann"])
> >
> > Inside his velocity screens, Velocity would transform it,
> depending on
>
> > the users locale to:
> >
> > Hello Buddy, your last Name is Hoffmann
> > Or
> > Hallo Buddy, dein Nachname ist Hoffmann
> >
> > What do you guys think? It allows for automatic, dynamic Date and
> > Number Formats also. There is an article on java.sun.com on that.
> >
> > See
> > http://java.sun.com/j2se/1.4.1/docs/api/java/text/MessageFormat.html
> > And
> >
http://developer.java.sun.com/developer/JDCTechTips/2003/tt0819.html#1
>
> Kind regards
>
> Jürgen Hoffmann
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org



AW: LocalizationTool Patch

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi Eric,

I will do this tomorrow. I have never worked with fulcrum is
jakarta-turbine-fulcrum the right Version to checkout?

Kind regards
 
Jürgen Hoffmann
ByteACTION GmbH
 
cert. Perl Programmer
cert. Linux System Administrator
cert. Java Programmer



-----Ursprüngliche Nachricht-----
Von: Eric Pugh [mailto:epugh@upstate.com] 
Gesendet: Donnerstag, 11. September 2003 17:11
An: 'Turbine Developers List'
Betreff: RE: LocalizationTool Patch


Jurgen,

It looks pretty cool.  Have you thought about coding it against the
fulcrum localization component version?  And, could you provide a unit
test?  To get you started, here are some links:

Localization Unit Test:
http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum-localizat
ion/
xref-test/org/apache/fulcrum/localization/LocalizationTest.html

LocalizationTool:
http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/apache/turb
ine/
services/localization/LocalizationTool.java

LocalizationTool Unit Test:
http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/test/org/apache/turb
ine/
services/localization/LocalizationToolTest.java


Although, since we haven't really nailed down where the localization
tool is going to live, if you don't want to change it, would you
resubmit it later?

Seems like a good idea..

Eric

> -----Original Message-----
> From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> Sent: Thursday, September 11, 2003 11:42 AM
> To: turbine-dev@jakarta.apache.org
> Subject: LocalizationTool Patch
>
>
> Hi all,
>
> I have read an article about dynamic Localization Messages and I 
> thought it is a must have for Turbine.
>
> So if someone puts a String like this into his  english bundle
>
> testOutput=Hello {0}, your last Name is {1}
>
> And this into his german Bundle
>
> testOutput=Hallo {0}, dein Nachname ist {1}
>
> And then uses the following call
>
> $l10n.get("testOutput", ["Buddy", "Hoffmann"])
>
> Inside his velocity screens, Velocity would transform it, depending on

> the users locale to:
>
> Hello Buddy, your last Name is Hoffmann
> Or
> Hallo Buddy, dein Nachname ist Hoffmann
>
> What do you guys think? It allows for automatic, dynamic Date and 
> Number Formats also. There is an article on java.sun.com on that.
>
> See 
> http://java.sun.com/j2se/1.4.1/docs/api/java/text/MessageFormat.html
> And 
> http://developer.java.sun.com/developer/JDCTechTips/2003/tt0819.html#1
>
> Kind regards
>
> Jürgen Hoffmann
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org




RE: LocalizationTool Patch

Posted by Eric Pugh <ep...@upstate.com>.
Jurgen,

It looks pretty cool.  Have you thought about coding it against the fulcrum
localization component version?  And, could you provide a unit test?  To get
you started, here are some links:

Localization Unit Test:
http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum-localization/
xref-test/org/apache/fulcrum/localization/LocalizationTest.html

LocalizationTool:
http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/apache/turbine/
services/localization/LocalizationTool.java

LocalizationTool Unit Test:
http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/test/org/apache/turbine/
services/localization/LocalizationToolTest.java


Although, since we haven't really nailed down where the localization tool is
going to live, if you don't want to change it, would you resubmit it later?

Seems like a good idea..

Eric

> -----Original Message-----
> From: Jürgen Hoffmann [mailto:jh@byteaction.de]
> Sent: Thursday, September 11, 2003 11:42 AM
> To: turbine-dev@jakarta.apache.org
> Subject: LocalizationTool Patch
>
>
> Hi all,
>
> I have read an article about dynamic Localization Messages
> and I thought
> it is a must have for Turbine.
>
> So if someone puts a String like this into his  english bundle
>
> testOutput=Hello {0}, your last Name is {1}
>
> And this into his german Bundle
>
> testOutput=Hallo {0}, dein Nachname ist {1}
>
> And then uses the following call
>
> $l10n.get("testOutput", ["Buddy", "Hoffmann"])
>
> Inside his velocity screens, Velocity would transform it, depending on
> the users locale to:
>
> Hello Buddy, your last Name is Hoffmann
> Or
> Hallo Buddy, dein Nachname ist Hoffmann
>
> What do you guys think? It allows for automatic, dynamic Date
> and Number
> Formats also. There is an article on java.sun.com on that.
>
> See
> http://java.sun.com/j2se/1.4.1/docs/api/java/text/MessageFormat.html
> And
> http://developer.java.sun.com/developer/JDCTechTips/2003/tt0819.html#1
>
> Kind regards
>
> Jürgen Hoffmann
>
>