Skip to main content

Translate JavaHelp to Portuguese

24 replies [Last post]
Anonymous

Hi people!

For many days I search how to translate the JavaHelp to Portuguese (and
possible other languages).

After many search, I fond this forum and some explanation.

Now I know that I have to translate the class Constants.java and name it as
Constants_pt.java. So I recompile the class.

After that, I jarred the Constants_pt.class in jh.jar. But until now, it
doesn't work!

If I translate the Constants.java and put the new Constants.class in the
jh.jar, it works! But I cannot do this, because I need other languages
too...

Please, how I do to my application run the Constants_pt.class create by me?

Does any other way to translate my JavaHelp? Please... I need help.

Thanks a lot!
Renata

PS: Sorry, my English isn't so good.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

that's not my point when you compile it, it has to be in a directory
called javax/help/resources.

Binky

Renata Andreatti wrote:
> Yes, it is at /javax/help/resources, look my Constants_pt.java (look
> the package):
>
>
> package javax.help.resources;
>
> import java.util.ListResourceBundle;
>
> /**
> * Constants used for localizing JavaHelp.
> *
> * These are in the form of key, value.
> * Translators take care to only translate the values.
> */
>
> public class Constants_pt extends ListResourceBundle {
> /**
> * Overrides ListResourceBundle.
> */
> public Object[][] getContents() {
> return new Object[][] {
>
> // Constant strings and patterns
> { "helpset.wrongPublicID", "PublicID {0} desconhecido"},
> { "helpset.wrongTitle", "Tentativa de mudar o título
> para {0} quando já possue o valor {1}."},
> { "helpset.wrongHomeID", "Tentativa de mudar o homeID
> para {0} quando já possue o valor {1}."},
> { "helpset.subHelpSetTrouble", "Problemas ao criar
> subhelpset: {0}."},
> { "helpset.malformedURL", "URL mal informada: {0}."},
> { "helpset.incorrectURL", "URL incorreta: {0}."},
> { "helpset.wrongText", "{0} não pode conter o texto
> {1}."},
> { "helpset.wrongTopLevel", "{0} não pode ser uma tag
> de nível alto."},
> { "helpset.wrongParent", "O valor passado para a tag
> {0} não pode ser {1}."},
> { "helpset.unbalanced", "Tag {0} desbalanceada."},
> { "helpset.wrongLocale", "Aviso: xml: atributo lang
> {0} conflitante com o default {1} e com o default {2}"},
> { "helpset.unknownVersion", "Versão {0} desconhecida."},
>
> // IndexView messages
> { "index.invalidIndexFormat", "Aviso: Formato inválido
> de índice"},
> { "index.unknownVersion", "Versão {0} desconhecida."},
>
> // TOCView messages
> { "toc.wrongPublicID", "PublicID {0} desconhecido"},
> { "toc.invalidTOCFormat", "Aviso: Formato inválido de
> TOC"},
> { "toc.unknownVersion", "Versão {0} desconhecida."},
>
> // FavoritesView messages
> { "favorites.invalidFavoritesFormat", "Aviso: Formato
> inválido de favoritos"},
> { "favorites.unknownVersion", "Versão {0} desconhecida."},
>
> // Map messages
> { "map.wrongPublicID", "PublicID {0} desconhecido"},
> { "map.invalidMapFormat", "Aviso: Formato inválido de
> mapa"},
> { "map.unknownVersion", "Versão {0} desconhecida."},
>
> // GUI components
> // Labels
> { "index.findLabel", "Procurar: "},
>
> { "search.findLabel", "Procurar: "},
> { "search.hitDesc", "Número de ocorrências no documento"},
> { "search.qualityDesc", "Valor de penalidade baixa no
> documento" },
> { "search.high", "Alta"},
> { "search.midhigh", "Média alta"},
> { "search.mid", "Média"},
> { "search.midlow", "Média baixa"},
> { "search.low", "Baixa"},
>
> { "favorites.add", "Adicionar"},
> { "favorites.remove", "Remover"},
> { "favorites.folder", "Nova pasta"},
> { "favorites.name ", "Nome"},
> { "favorites.cut", "Recortar"},
> { "favorites.paste", "Colar"},
> { "favorites.copy" , "Copiar"},
>
> { "history.homePage", "Página inicial"},
> { "history.unknownTitle", " > desconhecido>"},
>
> // ToolTips for Actions
> { "tooltip.BackAction", "Página anterior"},
> { "tooltip.ForwardAction", "Próxima página"},
> { "tooltip.PrintAction", "Imprimir"},
> { "tooltip.PrintSetupAction", "Configurar página"},
> { "tooltip.ReloadAction", "Atualizar"},
> { "tooltip.FavoritesAction", "Adicionar à favoritos"},
> { "tooltip.HomeAction", "Página inicial"},
>
> // Accessibility names
> { "access.BackAction", "Página anterior"},
> { "access.ForwardAction", "Próxima página"},
> { "access.HistoryAction", "Histórico"},
> { "access.PrintAction", "Imprimir"},
> { "access.PrintSetupAction", "Configurar página"},
> { "access.ReloadAction", "Atualizar"},
> { "access.HomeAction", "Página inicial"},
> { "access.FavoritesAction", "Adicionar à favoritos"},
> { "access.contentViewer", "Visualizador"}
>
> };
> }
> }
>
>
> 2009/2/2 Roger Brinkley > >
>
> Check your directory structure in GzHelpIntl. Make sure in
> Constants_pt.java is in a directory something like
> /javax/help/resources (I think it's resources...) which
> corresponds to the package name.
>
> Binky
>
> Renata Andreatti wrote:
>> And how I do this?
>>
>> I try like this:
>>
>> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>>
>> But I still have the problem....
>>
>> Thanks
>> Renata
>>
>> 2009/2/2 Roger Brinkley >> >
>>
>> Renata Andreatti wrote:
>>
>> Hello!
>>
>> People, I still have the problem.
>> I think I do everything like David said, but I isn't work!
>>
>> I do like this:
>>
>> First, I create a Project named GzHelpIntl. So, I create
>> the package javax.help.resources and put my
>> Constants_pt.java in there.
>> After this, I create the GzHelpIntl.jar.
>>
>> So, I create the jar of my main project named MercoFlex.jar.
>>
>> Finally, I run my project:
>>
>> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>>
>> But my help is still in English! Where is the mistake?
>>
>> Sorry for my insistence, but only you are helping me.
>>
>> Thanks a lot!!!
>>
>> Renata
>>
>>
>>
>> 2009/1/29 Renata Andreatti >>
>> >>
>>
>>
>> Ok... now I understand. :o)
>>
>> I'll try to do like David explain before.
>>
>> When I'll have finished, I send other e-mail.
>>
>> Thanks for now,
>> Renata
>>
>> 2009/1/28 David Cagle >>
>> >> >>
>>
>>
>> Yes Nicolas I believe you are correct. We did
>> this trick with
>> the 1.1.3 versions of jh.jar which were not
>> signed. We have
>> since abandoned this approach with 2.0* versions
>> because they
>> are signed. I should have mentioned that, sorry
>> about that.
>> There might be some ways around it but I don't
>> think even
>> signing the new translated Jar will do the trick
>> since the
>> certificates are different.
>>
>> -----Original Message-----
>> From: Discussion list of JavaHelp
>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> >> >] On Behalf Of
>> Nicolas
>> Van Cleemput
>> Sent: Tuesday, January 27, 2009 3:58 PM
>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> >> >
>> Subject: Re: [JAVAHELP] Translate JavaHelp to
>> Portuguese
>>
>> We tried to do it this way, but there was a
>> problem because the
>> translated class and the original classes are in
>> the same
>> package. The
>> original classes however are in a signed jars, and
>> therefore the
>> classes in our jar would not load.
>>
>> Citeren Roger Brinkley >>
>> >> >>:
>>
>>
>> > That sounds about right.
>> >
>> > Binky
>> >
>> > David Cagle wrote:
>> >>
>> >> Renata, we did something similar a couple of
>> years ago. I
>> don't
>> >> think you can add to jh.jar for licensing
>> reasons. So what
>> we did
>> >> was create a separate jar that had our
>> translations in it. And
>> >> when the application starts up, we add our new
>> jar to the
>> classpath.
>> >>
>> >> Here is a simplified example of what we did...
>> >>
>> >> - First, we took *Constants.java* and
>> translated
>> it...be
>> >> sure to keep the property names the same!
>> >>
>> >> - You also want to make sure your new
>> *Constants_pt.java*
>> >> class is in the same package as the original
>> Constants*.java
>> >> classes in jh.jar. For example, the Constants*
>> classes live at
>> >> "*javax/help/resources*" in jh.jar, you want
>> your new class
>> to live
>> >> in the same package name.
>> >>
>> >> - Say our new Constant translation is
>> added to a
>> Jar named
>> >> '*javahelp.translations.jar*'
>> >>
>> >> - The classpath for our application
>> would look
>> something
>> >> like this: *java --cp
>> "jh.jar;javahelp.translations.jar;OurApp.jar"
>> >> --jar OurApp*
>> >>
>> >> If I remember correctly, that is all we did.
>> >>
>> >> Furthermore, we have also contributed our
>> translations to the
>> >> JavaHelp Open Source project at:
>> https://javahelp.dev.java.net/.
>> >> But I don't know where that project stands at
>> the moment.
>> >>
>> >> Good luck!
>> >>
>> >> *From:* Discussion list of JavaHelp
>> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> >> >] *On Behalf Of
>> *Renata
>> >> Andreatti
>> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
>> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> >> >
>> >> *Subject:* [JAVAHELP] Translate JavaHelp to
>> Portuguese
>> >>
>> >> Hi people!
>> >>
>> >> For many days I search how to translate the
>> JavaHelp to
>> Portuguese
>> >> (and possible other languages).
>> >>
>> >> After many search, I fond this forum and some
>> explanation.
>> >>
>> >> Now I know that I have to translate the class
>> Constants.java and
>> >> name it as Constants_pt.java. So I recompile
>> the class.
>> >>
>> >> After that, I jarred the Constants_pt.class in
>> jh.jar. But
>> until
>> >> now, it doesn't work!
>> >>
>> >> If I translate the Constants.java and put the new
>> Constants.class
>> >> in the jh.jar, it works! But I cannot do this,
>> because I
>> need other
>> >> languages too...
>> >>
>> >> Please, how I do to my application run the
>> Constants_pt.class create by me?
>> >>
>> >> Does any other way to translate my JavaHelp?
>> Please... I
>> need help.
>> >>
>> >>
>> >> Thanks a lot!
>> >> Renata
>> >>
>> >> PS: Sorry, my English isn't so good.
>> >>
>> >>
>>
>> ********************************************************************************
>> You may leave the list at any time by sending
>> message with no
>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >. Archives
>>
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>> >>
>> >>
>>
>> ********************************************************************************
>> You may leave the list at any time by sending
>> message with no
>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >. Archives
>>
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>> >>
>> >
>> >
>>
>> ********************************************************************************
>> >
>> > You may leave the list at any time by sending
>> message with
>> no subject and
>> > "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >. Archives
>>
>> > are available at
>> >
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> > Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time by sending
>> message with no
>> subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >. Archives
>>
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time by sending
>> message with no
>> subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >. Archives
>>
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>>
>> -- Renata Fernanda Andreatti
>>
>>
>>
>>
>> --
>> Renata Fernanda Andreatti
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message
>> with no subject and "SIGNOFF JAVAHELP-INTEREST" in the
>> body to LISTSERV@JAVA.SUN.COM
>> . Archives are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>> I think it has to do with the classpath. Make sure your file
>> is ahead of the jh.jar in the classpath.
>>
>> binky
>>
>> ********************************************************************************
>>
>>
>>
>> You may leave the list at any time by sending message with no
>> subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM . Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>>
>> --
>> Renata Fernanda Andreatti
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message with no
>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM . Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives are
> available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject
> and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
> Archives are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit
> bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Renata Andreatti

Hi! Do you remember me?

I think that like one month ago I have a problem... and this problem is
still here!
Sorry... I stopped to answer the emails because I have other problem, more
urgently, and I have to pause the help project. But now, I'm back... and I
still have the same problem: translate the javahelp.

I'll try to continue at the point I stopped.

I tried to compile a separate jar with the Constants_pt.java and calll this
jar before the jar of my application. But probably I make mistakes because
the texts are in English yet!

So, Roger sad me that probably I'm not putting the Constants_pt.java in the
correct directory. Well... I'll explain what I'm doing and please, someone
tell me what I'm doing wrong.

First, I do a project named GzHelpIntl. This project have only one package:
javax.help.resources, and inside this package, only one class:
Constants_pt.java. I use the Eclipse IDE, so the Constants_pt.class is
gerate at the same directory. After that, I jarred this little project, and
now I have the GzHelpIntl.jar.

Second, I do a test project named TesteHelp. In this project I have all the
files necessary to my help: html, xml, hs, jhm ... In this project I call
the JavaHelp too. After that, I jarred this project, and now I have my
TesteHelp.jar.

So, I call my application like that:

java -cp gzhelpintl.jar -jar testehelp.jar

And no translate!

Here I have my sources for download:
http://www.gznet.com.br/boo/javahelp/GzHelpIntl.zip
http://www.gznet.com.br/boo/javahelp/TesteHelp.zip

Somebody could help me again please?

Thanks a lot!
Renata

2009/2/2 Roger Brinkley

> that's not my point when you compile it, it has to be in a directory called
> javax/help/resources.
>
> Binky
>
> Renata Andreatti wrote:
>
>> Yes, it is at /javax/help/resources, look my Constants_pt.java (look the
>> package):
>>
>>
>> package javax.help.resources;
>>
>> import java.util.ListResourceBundle;
>>
>> /**
>> * Constants used for localizing JavaHelp.
>> *
>> * These are in the form of key, value.
>> * Translators take care to only translate the values.
>> */
>>
>> public class Constants_pt extends ListResourceBundle {
>> /**
>> * Overrides ListResourceBundle.
>> */
>> public Object[][] getContents() {
>> return new Object[][] {
>>
>> // Constant strings and patterns
>> { "helpset.wrongPublicID", "PublicID {0} desconhecido"},
>> { "helpset.wrongTitle", "Tentativa de mudar o título para
>> {0} quando já possue o valor {1}."},
>> { "helpset.wrongHomeID", "Tentativa de mudar o homeID para
>> {0} quando já possue o valor {1}."},
>> { "helpset.subHelpSetTrouble", "Problemas ao criar
>> subhelpset: {0}."},
>> { "helpset.malformedURL", "URL mal informada: {0}."},
>> { "helpset.incorrectURL", "URL incorreta: {0}."},
>> { "helpset.wrongText", "{0} não pode conter o texto {1}."},
>> { "helpset.wrongTopLevel", "{0} não pode ser uma tag de
>> nível alto."},
>> { "helpset.wrongParent", "O valor passado para a tag {0}
>> não pode ser {1}."},
>> { "helpset.unbalanced", "Tag {0} desbalanceada."},
>> { "helpset.wrongLocale", "Aviso: xml: atributo lang {0}
>> conflitante com o default {1} e com o default {2}"},
>> { "helpset.unknownVersion", "Versão {0} desconhecida."},
>>
>> // IndexView messages
>> { "index.invalidIndexFormat", "Aviso: Formato inválido de
>> índice"},
>> { "index.unknownVersion", "Versão {0} desconhecida."},
>>
>> // TOCView messages
>> { "toc.wrongPublicID", "PublicID {0} desconhecido"},
>> { "toc.invalidTOCFormat", "Aviso: Formato inválido de
>> TOC"},
>> { "toc.unknownVersion", "Versão {0} desconhecida."},
>>
>> // FavoritesView messages
>> { "favorites.invalidFavoritesFormat", "Aviso: Formato
>> inválido de favoritos"},
>> { "favorites.unknownVersion", "Versão {0} desconhecida."},
>>
>> // Map messages
>> { "map.wrongPublicID", "PublicID {0} desconhecido"},
>> { "map.invalidMapFormat", "Aviso: Formato inválido de
>> mapa"},
>> { "map.unknownVersion", "Versão {0} desconhecida."},
>>
>> // GUI components
>> // Labels
>> { "index.findLabel", "Procurar: "},
>>
>> { "search.findLabel", "Procurar: "},
>> { "search.hitDesc", "Número de ocorrências no documento"},
>> { "search.qualityDesc", "Valor de penalidade baixa no
>> documento" },
>> { "search.high", "Alta"},
>> { "search.midhigh", "Média alta"},
>> { "search.mid", "Média"},
>> { "search.midlow", "Média baixa"},
>> { "search.low", "Baixa"},
>>
>> { "favorites.add", "Adicionar"},
>> { "favorites.remove", "Remover"},
>> { "favorites.folder", "Nova pasta"},
>> { "favorites.name ", "Nome"},
>> { "favorites.cut", "Recortar"},
>> { "favorites.paste", "Colar"},
>> { "favorites.copy" , "Copiar"},
>>
>> { "history.homePage", "Página inicial"},
>> { "history.unknownTitle", " >> desconhecido>"},
>>
>> // ToolTips for Actions
>> { "tooltip.BackAction", "Página anterior"},
>> { "tooltip.ForwardAction", "Próxima página"},
>> { "tooltip.PrintAction", "Imprimir"},
>> { "tooltip.PrintSetupAction", "Configurar página"},
>> { "tooltip.ReloadAction", "Atualizar"},
>> { "tooltip.FavoritesAction", "Adicionar à favoritos"},
>> { "tooltip.HomeAction", "Página inicial"},
>>
>> // Accessibility names
>> { "access.BackAction", "Página anterior"},
>> { "access.ForwardAction", "Próxima página"},
>> { "access.HistoryAction", "Histórico"},
>> { "access.PrintAction", "Imprimir"},
>> { "access.PrintSetupAction", "Configurar página"},
>> { "access.ReloadAction", "Atualizar"},
>> { "access.HomeAction", "Página inicial"},
>> { "access.FavoritesAction", "Adicionar à favoritos"},
>> { "access.contentViewer", "Visualizador"}
>>
>> };
>> }
>> }
>>
>>
>> 2009/2/2 Roger Brinkley >> Roger.Brinkley@sun.com>>
>>
>> Check your directory structure in GzHelpIntl. Make sure in
>> Constants_pt.java is in a directory something like
>> /javax/help/resources (I think it's resources...) which
>> corresponds to the package name.
>>
>> Binky
>>
>> Renata Andreatti wrote:
>>
>>> And how I do this?
>>>
>>> I try like this:
>>>
>>> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>>>
>>> But I still have the problem....
>>>
>>> Thanks
>>> Renata
>>>
>>> 2009/2/2 Roger Brinkley >>> >
>>>
>>> Renata Andreatti wrote:
>>>
>>> Hello!
>>>
>>> People, I still have the problem.
>>> I think I do everything like David said, but I isn't work!
>>>
>>> I do like this:
>>>
>>> First, I create a Project named GzHelpIntl. So, I create
>>> the package javax.help.resources and put my
>>> Constants_pt.java in there.
>>> After this, I create the GzHelpIntl.jar.
>>>
>>> So, I create the jar of my main project named MercoFlex.jar.
>>>
>>> Finally, I run my project:
>>>
>>> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>>>
>>> But my help is still in English! Where is the mistake?
>>>
>>> Sorry for my insistence, but only you are helping me.
>>>
>>> Thanks a lot!!!
>>>
>>> Renata
>>>
>>>
>>>
>>> 2009/1/29 Renata Andreatti >>>
>>> >>
>>>
>>>
>>>
>>> Ok... now I understand. :o)
>>>
>>> I'll try to do like David explain before.
>>>
>>> When I'll have finished, I send other e-mail.
>>>
>>> Thanks for now,
>>> Renata
>>>
>>> 2009/1/28 David Cagle >>>
>>> >>> >>
>>>
>>>
>>> Yes Nicolas I believe you are correct. We did
>>> this trick with
>>> the 1.1.3 versions of jh.jar which were not
>>> signed. We have
>>> since abandoned this approach with 2.0* versions
>>> because they
>>> are signed. I should have mentioned that, sorry
>>> about that.
>>> There might be some ways around it but I don't
>>> think even
>>> signing the new translated Jar will do the trick
>>> since the
>>> certificates are different.
>>>
>>> -----Original Message-----
>>> From: Discussion list of JavaHelp
>>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> >>> >] On Behalf Of
>>> Nicolas
>>> Van Cleemput
>>> Sent: Tuesday, January 27, 2009 3:58 PM
>>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> >>> >
>>> Subject: Re: [JAVAHELP] Translate JavaHelp to
>>> Portuguese
>>>
>>> We tried to do it this way, but there was a
>>> problem because the
>>> translated class and the original classes are in
>>> the same
>>> package. The
>>> original classes however are in a signed jars, and
>>> therefore the
>>> classes in our jar would not load.
>>>
>>> Citeren Roger Brinkley >>>
>>> >>> >>:
>>>
>>>
>>> > That sounds about right.
>>> >
>>> > Binky
>>> >
>>> > David Cagle wrote:
>>> >>
>>> >> Renata, we did something similar a couple of
>>> years ago. I
>>> don't
>>> >> think you can add to jh.jar for licensing
>>> reasons. So what
>>> we did
>>> >> was create a separate jar that had our
>>> translations in it. And
>>> >> when the application starts up, we add our new
>>> jar to the
>>> classpath.
>>> >>
>>> >> Here is a simplified example of what we did...
>>> >>
>>> >> - First, we took *Constants.java* and
>>> translated
>>> it...be
>>> >> sure to keep the property names the same!
>>> >>
>>> >> - You also want to make sure your new
>>> *Constants_pt.java*
>>> >> class is in the same package as the original
>>> Constants*.java
>>> >> classes in jh.jar. For example, the Constants*
>>> classes live at
>>> >> "*javax/help/resources*" in jh.jar, you want
>>> your new class
>>> to live
>>> >> in the same package name.
>>> >>
>>> >> - Say our new Constant translation is
>>> added to a
>>> Jar named
>>> >> '*javahelp.translations.jar*'
>>> >>
>>> >> - The classpath for our application
>>> would look
>>> something
>>> >> like this: *java --cp
>>> "jh.jar;javahelp.translations.jar;OurApp.jar"
>>> >> --jar OurApp*
>>> >>
>>> >> If I remember correctly, that is all we did.
>>> >>
>>> >> Furthermore, we have also contributed our
>>> translations to the
>>> >> JavaHelp Open Source project at:
>>> https://javahelp.dev.java.net/.
>>> >> But I don't know where that project stands at
>>> the moment.
>>> >>
>>> >> Good luck!
>>> >>
>>> >> *From:* Discussion list of JavaHelp
>>> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> >>> >] *On Behalf Of
>>> *Renata
>>> >> Andreatti
>>> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
>>> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> >>> >
>>> >> *Subject:* [JAVAHELP] Translate JavaHelp to
>>> Portuguese
>>> >>
>>> >> Hi people!
>>> >>
>>> >> For many days I search how to translate the
>>> JavaHelp to
>>> Portuguese
>>> >> (and possible other languages).
>>> >>
>>> >> After many search, I fond this forum and some
>>> explanation.
>>> >>
>>> >> Now I know that I have to translate the class
>>> Constants.java and
>>> >> name it as Constants_pt.java. So I recompile
>>> the class.
>>> >>
>>> >> After that, I jarred the Constants_pt.class in
>>> jh.jar. But
>>> until
>>> >> now, it doesn't work!
>>> >>
>>> >> If I translate the Constants.java and put the new
>>> Constants.class
>>> >> in the jh.jar, it works! But I cannot do this,
>>> because I
>>> need other
>>> >> languages too...
>>> >>
>>> >> Please, how I do to my application run the
>>> Constants_pt.class create by me?
>>> >>
>>> >> Does any other way to translate my JavaHelp?
>>> Please... I
>>> need help.
>>> >>
>>> >>
>>> >> Thanks a lot!
>>> >> Renata
>>> >>
>>> >> PS: Sorry, my English isn't so good.
>>> >>
>>> >>
>>>
>>> ********************************************************************************
>>> You may leave the list at any time by sending
>>> message with no
>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >. Archives
>>>
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>>> >>
>>> >>
>>>
>>> ********************************************************************************
>>> You may leave the list at any time by sending
>>> message with no
>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >. Archives
>>>
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>>> >>
>>> >
>>> >
>>>
>>> ********************************************************************************
>>> >
>>> > You may leave the list at any time by sending
>>> message with
>>> no subject and
>>> > "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >. Archives
>>>
>>> > are available at
>>> >
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> > Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>> ********************************************************************************
>>>
>>> You may leave the list at any time by sending
>>> message with no
>>> subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >. Archives
>>>
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>> ********************************************************************************
>>>
>>> You may leave the list at any time by sending
>>> message with no
>>> subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >. Archives
>>>
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>>
>>> -- Renata Fernanda Andreatti
>>>
>>>
>>>
>>>
>>> -- Renata Fernanda Andreatti
>>>
>>> ********************************************************************************
>>>
>>>
>>> You may leave the list at any time by sending message
>>> with no subject and "SIGNOFF JAVAHELP-INTEREST" in the
>>> body to LISTSERV@JAVA.SUN.COM
>>> . Archives are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>> I think it has to do with the classpath. Make sure your file
>>> is ahead of the jh.jar in the classpath.
>>>
>>> binky
>>>
>>>
>>> ********************************************************************************
>>>
>>>
>>>
>>> You may leave the list at any time by sending message with no
>>> subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM . Archives
>>> are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>>
>>> -- Renata Fernanda Andreatti
>>>
>>> ********************************************************************************
>>>
>>>
>>> You may leave the list at any time by sending message with no
>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM . Archives
>>> are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message with no
>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM . Archives are
>> available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>>
>> --
>> Renata Fernanda Andreatti
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message with no subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
>> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

--
Renata Fernanda Andreatti

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Renata Andreatti

Hi people!

I'm here only to say that I solve the problem! (thanks God!)

I talk with a boy at a Java forum and I notice what I's doing wrog.

The only problem was the name of my class: Constants_pt.java. The JavaHelp
didn't understand this class, because it hasn't this class.
I do everything equal (like I tell at the last email), but now I rename my
Constants_pt.java to Constants.java. And now It works!!!!

I use my i18n tags in my new class Constants.java and everything is
tranlated.

Thanks for all!!!!
Renata

2009/3/28 Renata Andreatti

> Hi! Do you remember me?
>
> I think that like one month ago I have a problem... and this problem is
> still here!
> Sorry... I stopped to answer the emails because I have other problem, more
> urgently, and I have to pause the help project. But now, I'm back... and I
> still have the same problem: translate the javahelp.
>
> I'll try to continue at the point I stopped.
>
> I tried to compile a separate jar with the Constants_pt.java and calll this
> jar before the jar of my application. But probably I make mistakes because
> the texts are in English yet!
>
> So, Roger sad me that probably I'm not putting the Constants_pt.java in the
> correct directory. Well... I'll explain what I'm doing and please, someone
> tell me what I'm doing wrong.
>
> First, I do a project named GzHelpIntl. This project have only one package:
> javax.help.resources, and inside this package, only one class:
> Constants_pt.java. I use the Eclipse IDE, so the Constants_pt.class is
> gerate at the same directory. After that, I jarred this little project, and
> now I have the GzHelpIntl.jar.
>
> Second, I do a test project named TesteHelp. In this project I have all the
> files necessary to my help: html, xml, hs, jhm ... In this project I call
> the JavaHelp too. After that, I jarred this project, and now I have my
> TesteHelp.jar.
>
> So, I call my application like that:
>
> java -cp gzhelpintl.jar -jar testehelp.jar
>
> And no translate!
>
> Here I have my sources for download:
> http://www.gznet.com.br/boo/javahelp/GzHelpIntl.zip
> http://www.gznet.com.br/boo/javahelp/TesteHelp.zip
>
> Somebody could help me again please?
>
>
> Thanks a lot!
> Renata
>
>
> 2009/2/2 Roger Brinkley
>
>> that's not my point when you compile it, it has to be in a directory
>> called javax/help/resources.
>>
>> Binky
>>
>> Renata Andreatti wrote:
>>
>>> Yes, it is at /javax/help/resources, look my Constants_pt.java (look the
>>> package):
>>>
>>>
>>> package javax.help.resources;
>>>
>>> import java.util.ListResourceBundle;
>>>
>>> /**
>>> * Constants used for localizing JavaHelp.
>>> *
>>> * These are in the form of key, value.
>>> * Translators take care to only translate the values.
>>> */
>>>
>>> public class Constants_pt extends ListResourceBundle {
>>> /**
>>> * Overrides ListResourceBundle.
>>> */
>>> public Object[][] getContents() {
>>> return new Object[][] {
>>>
>>> // Constant strings and patterns
>>> { "helpset.wrongPublicID", "PublicID {0} desconhecido"},
>>> { "helpset.wrongTitle", "Tentativa de mudar o título para
>>> {0} quando já possue o valor {1}."},
>>> { "helpset.wrongHomeID", "Tentativa de mudar o homeID para
>>> {0} quando já possue o valor {1}."},
>>> { "helpset.subHelpSetTrouble", "Problemas ao criar
>>> subhelpset: {0}."},
>>> { "helpset.malformedURL", "URL mal informada: {0}."},
>>> { "helpset.incorrectURL", "URL incorreta: {0}."},
>>> { "helpset.wrongText", "{0} não pode conter o texto
>>> {1}."},
>>> { "helpset.wrongTopLevel", "{0} não pode ser uma tag de
>>> nível alto."},
>>> { "helpset.wrongParent", "O valor passado para a tag {0}
>>> não pode ser {1}."},
>>> { "helpset.unbalanced", "Tag {0} desbalanceada."},
>>> { "helpset.wrongLocale", "Aviso: xml: atributo lang {0}
>>> conflitante com o default {1} e com o default {2}"},
>>> { "helpset.unknownVersion", "Versão {0} desconhecida."},
>>>
>>> // IndexView messages
>>> { "index.invalidIndexFormat", "Aviso: Formato inválido de
>>> índice"},
>>> { "index.unknownVersion", "Versão {0} desconhecida."},
>>>
>>> // TOCView messages
>>> { "toc.wrongPublicID", "PublicID {0} desconhecido"},
>>> { "toc.invalidTOCFormat", "Aviso: Formato inválido de
>>> TOC"},
>>> { "toc.unknownVersion", "Versão {0} desconhecida."},
>>>
>>> // FavoritesView messages
>>> { "favorites.invalidFavoritesFormat", "Aviso: Formato
>>> inválido de favoritos"},
>>> { "favorites.unknownVersion", "Versão {0} desconhecida."},
>>>
>>> // Map messages
>>> { "map.wrongPublicID", "PublicID {0} desconhecido"},
>>> { "map.invalidMapFormat", "Aviso: Formato inválido de
>>> mapa"},
>>> { "map.unknownVersion", "Versão {0} desconhecida."},
>>>
>>> // GUI components
>>> // Labels
>>> { "index.findLabel", "Procurar: "},
>>>
>>> { "search.findLabel", "Procurar: "},
>>> { "search.hitDesc", "Número de ocorrências no documento"},
>>> { "search.qualityDesc", "Valor de penalidade baixa no
>>> documento" },
>>> { "search.high", "Alta"},
>>> { "search.midhigh", "Média alta"},
>>> { "search.mid", "Média"},
>>> { "search.midlow", "Média baixa"},
>>> { "search.low", "Baixa"},
>>>
>>> { "favorites.add", "Adicionar"},
>>> { "favorites.remove", "Remover"},
>>> { "favorites.folder", "Nova pasta"},
>>> { "favorites.name ", "Nome"},
>>> { "favorites.cut", "Recortar"},
>>> { "favorites.paste", "Colar"},
>>> { "favorites.copy" , "Copiar"},
>>>
>>> { "history.homePage", "Página inicial"},
>>> { "history.unknownTitle", " >>> desconhecido>"},
>>>
>>> // ToolTips for Actions
>>> { "tooltip.BackAction", "Página anterior"},
>>> { "tooltip.ForwardAction", "Próxima página"},
>>> { "tooltip.PrintAction", "Imprimir"},
>>> { "tooltip.PrintSetupAction", "Configurar página"},
>>> { "tooltip.ReloadAction", "Atualizar"},
>>> { "tooltip.FavoritesAction", "Adicionar à favoritos"},
>>> { "tooltip.HomeAction", "Página inicial"},
>>>
>>> // Accessibility names
>>> { "access.BackAction", "Página anterior"},
>>> { "access.ForwardAction", "Próxima página"},
>>> { "access.HistoryAction", "Histórico"},
>>> { "access.PrintAction", "Imprimir"},
>>> { "access.PrintSetupAction", "Configurar página"},
>>> { "access.ReloadAction", "Atualizar"},
>>> { "access.HomeAction", "Página inicial"},
>>> { "access.FavoritesAction", "Adicionar à favoritos"},
>>> { "access.contentViewer", "Visualizador"}
>>>
>>> };
>>> }
>>> }
>>>
>>>
>>> 2009/2/2 Roger Brinkley >>> Roger.Brinkley@sun.com>>
>>>
>>> Check your directory structure in GzHelpIntl. Make sure in
>>> Constants_pt.java is in a directory something like
>>> /javax/help/resources (I think it's resources...) which
>>> corresponds to the package name.
>>>
>>> Binky
>>>
>>> Renata Andreatti wrote:
>>>
>>>> And how I do this?
>>>>
>>>> I try like this:
>>>>
>>>> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>>>>
>>>> But I still have the problem....
>>>>
>>>> Thanks
>>>> Renata
>>>>
>>>> 2009/2/2 Roger Brinkley >>>> >
>>>>
>>>> Renata Andreatti wrote:
>>>>
>>>> Hello!
>>>>
>>>> People, I still have the problem.
>>>> I think I do everything like David said, but I isn't work!
>>>>
>>>> I do like this:
>>>>
>>>> First, I create a Project named GzHelpIntl. So, I create
>>>> the package javax.help.resources and put my
>>>> Constants_pt.java in there.
>>>> After this, I create the GzHelpIntl.jar.
>>>>
>>>> So, I create the jar of my main project named MercoFlex.jar.
>>>>
>>>> Finally, I run my project:
>>>>
>>>> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>>>>
>>>> But my help is still in English! Where is the mistake?
>>>>
>>>> Sorry for my insistence, but only you are helping me.
>>>>
>>>> Thanks a lot!!!
>>>>
>>>> Renata
>>>>
>>>>
>>>>
>>>> 2009/1/29 Renata Andreatti >>>>
>>>> >>
>>>>
>>>>
>>>>
>>>> Ok... now I understand. :o)
>>>>
>>>> I'll try to do like David explain before.
>>>>
>>>> When I'll have finished, I send other e-mail.
>>>>
>>>> Thanks for now,
>>>> Renata
>>>>
>>>> 2009/1/28 David Cagle >>>>
>>>> >>>> >>
>>>>
>>>>
>>>> Yes Nicolas I believe you are correct. We did
>>>> this trick with
>>>> the 1.1.3 versions of jh.jar which were not
>>>> signed. We have
>>>> since abandoned this approach with 2.0* versions
>>>> because they
>>>> are signed. I should have mentioned that, sorry
>>>> about that.
>>>> There might be some ways around it but I don't
>>>> think even
>>>> signing the new translated Jar will do the trick
>>>> since the
>>>> certificates are different.
>>>>
>>>> -----Original Message-----
>>>> From: Discussion list of JavaHelp
>>>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>
>>>> >>>> >] On Behalf Of
>>>> Nicolas
>>>> Van Cleemput
>>>> Sent: Tuesday, January 27, 2009 3:58 PM
>>>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>> Subject: Re: [JAVAHELP] Translate JavaHelp to
>>>> Portuguese
>>>>
>>>> We tried to do it this way, but there was a
>>>> problem because the
>>>> translated class and the original classes are in
>>>> the same
>>>> package. The
>>>> original classes however are in a signed jars, and
>>>> therefore the
>>>> classes in our jar would not load.
>>>>
>>>> Citeren Roger Brinkley >>>>
>>>> >>>> >>:
>>>>
>>>>
>>>> > That sounds about right.
>>>> >
>>>> > Binky
>>>> >
>>>> > David Cagle wrote:
>>>> >>
>>>> >> Renata, we did something similar a couple of
>>>> years ago. I
>>>> don't
>>>> >> think you can add to jh.jar for licensing
>>>> reasons. So what
>>>> we did
>>>> >> was create a separate jar that had our
>>>> translations in it. And
>>>> >> when the application starts up, we add our new
>>>> jar to the
>>>> classpath.
>>>> >>
>>>> >> Here is a simplified example of what we did...
>>>> >>
>>>> >> - First, we took *Constants.java* and
>>>> translated
>>>> it...be
>>>> >> sure to keep the property names the same!
>>>> >>
>>>> >> - You also want to make sure your new
>>>> *Constants_pt.java*
>>>> >> class is in the same package as the original
>>>> Constants*.java
>>>> >> classes in jh.jar. For example, the Constants*
>>>> classes live at
>>>> >> "*javax/help/resources*" in jh.jar, you want
>>>> your new class
>>>> to live
>>>> >> in the same package name.
>>>> >>
>>>> >> - Say our new Constant translation is
>>>> added to a
>>>> Jar named
>>>> >> '*javahelp.translations.jar*'
>>>> >>
>>>> >> - The classpath for our application
>>>> would look
>>>> something
>>>> >> like this: *java --cp
>>>> "jh.jar;javahelp.translations.jar;OurApp.jar"
>>>> >> --jar OurApp*
>>>> >>
>>>> >> If I remember correctly, that is all we did.
>>>> >>
>>>> >> Furthermore, we have also contributed our
>>>> translations to the
>>>> >> JavaHelp Open Source project at:
>>>> https://javahelp.dev.java.net/.
>>>> >> But I don't know where that project stands at
>>>> the moment.
>>>> >>
>>>> >> Good luck!
>>>> >>
>>>> >> *From:* Discussion list of JavaHelp
>>>> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>
>>>> >>>> >] *On Behalf Of
>>>> *Renata
>>>> >> Andreatti
>>>> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
>>>> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>> >> *Subject:* [JAVAHELP] Translate JavaHelp to
>>>> Portuguese
>>>> >>
>>>> >> Hi people!
>>>> >>
>>>> >> For many days I search how to translate the
>>>> JavaHelp to
>>>> Portuguese
>>>> >> (and possible other languages).
>>>> >>
>>>> >> After many search, I fond this forum and some
>>>> explanation.
>>>> >>
>>>> >> Now I know that I have to translate the class
>>>> Constants.java and
>>>> >> name it as Constants_pt.java. So I recompile
>>>> the class.
>>>> >>
>>>> >> After that, I jarred the Constants_pt.class in
>>>> jh.jar. But
>>>> until
>>>> >> now, it doesn't work!
>>>> >>
>>>> >> If I translate the Constants.java and put the new
>>>> Constants.class
>>>> >> in the jh.jar, it works! But I cannot do this,
>>>> because I
>>>> need other
>>>> >> languages too...
>>>> >>
>>>> >> Please, how I do to my application run the
>>>> Constants_pt.class create by me?
>>>> >>
>>>> >> Does any other way to translate my JavaHelp?
>>>> Please... I
>>>> need help.
>>>> >>
>>>> >>
>>>> >> Thanks a lot!
>>>> >> Renata
>>>> >>
>>>> >> PS: Sorry, my English isn't so good.
>>>> >>
>>>> >>
>>>>
>>>> ********************************************************************************
>>>> You may leave the list at any time by sending
>>>> message with no
>>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >. Archives
>>>>
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>> >>
>>>> >>
>>>>
>>>> ********************************************************************************
>>>> You may leave the list at any time by sending
>>>> message with no
>>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >. Archives
>>>>
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>> >>
>>>> >
>>>> >
>>>>
>>>> ********************************************************************************
>>>> >
>>>> > You may leave the list at any time by sending
>>>> message with
>>>> no subject and
>>>> > "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >. Archives
>>>>
>>>> > are available at
>>>> >
>>>> http://archives.java.sun.com/archives/javahelp-interest.html
>>>> .
>>>> > Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>> ********************************************************************************
>>>>
>>>> You may leave the list at any time by sending
>>>> message with no
>>>> subject and
>>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >. Archives
>>>>
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>> ********************************************************************************
>>>>
>>>> You may leave the list at any time by sending
>>>> message with no
>>>> subject and
>>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >. Archives
>>>>
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>>
>>>>
>>>> -- Renata Fernanda Andreatti
>>>>
>>>>
>>>>
>>>>
>>>> -- Renata Fernanda Andreatti
>>>>
>>>> ********************************************************************************
>>>>
>>>>
>>>> You may leave the list at any time by sending message
>>>> with no subject and "SIGNOFF JAVAHELP-INTEREST" in the
>>>> body to LISTSERV@JAVA.SUN.COM
>>>> . Archives are available at
>>>> http://archives.java.sun.com/archives/javahelp-interest.html
>>>> .
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>> I think it has to do with the classpath. Make sure your file
>>>> is ahead of the jh.jar in the classpath.
>>>>
>>>> binky
>>>>
>>>>
>>>> ********************************************************************************
>>>>
>>>>
>>>>
>>>> You may leave the list at any time by sending message with no
>>>> subject and
>>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM . Archives
>>>> are available at
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>>
>>>>
>>>> -- Renata Fernanda Andreatti
>>>>
>>>> ********************************************************************************
>>>>
>>>>
>>>> You may leave the list at any time by sending message with no
>>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM . Archives
>>>> are available at
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>> ********************************************************************************
>>>
>>>
>>> You may leave the list at any time by sending message with no
>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM . Archives are
>>> available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>>
>>> --
>>> Renata Fernanda Andreatti
>>> ********************************************************************************
>>>
>>>
>>> You may leave the list at any time by sending message with no subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>>> Archives are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
>>> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time by sending message with no subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>
>
>
> --
> Renata Fernanda Andreatti
>

--
Renata Fernanda Andreatti

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Roger Brinkley

At the expense of removing all of the default variables. My guess is
your not setting the local variable properly.

Binky

Renata Andreatti wrote:
> Hi people!
>
> I'm here only to say that I solve the problem! (thanks God!)
>
> I talk with a boy at a Java forum and I notice what I's doing wrog.
>
> The only problem was the name of my class: Constants_pt.java. The
> JavaHelp didn't understand this class, because it hasn't this class.
> I do everything equal (like I tell at the last email), but now I
> rename my Constants_pt.java to Constants.java. And now It works!!!!
>
> I use my i18n tags in my new class Constants.java and everything is
> tranlated.
>
> Thanks for all!!!!
> Renata
>
> 2009/3/28 Renata Andreatti > >
>
> Hi! Do you remember me?
>
> I think that like one month ago I have a problem... and this
> problem is still here!
> Sorry... I stopped to answer the emails because I have other
> problem, more urgently, and I have to pause the help project. But
> now, I'm back... and I still have the same problem: translate the
> javahelp.
>
> I'll try to continue at the point I stopped.
>
> I tried to compile a separate jar with the Constants_pt.java and
> calll this jar before the jar of my application. But probably I
> make mistakes because the texts are in English yet!
>
> So, Roger sad me that probably I'm not putting the
> Constants_pt.java in the correct directory. Well... I'll explain
> what I'm doing and please, someone tell me what I'm doing wrong.
>
> First, I do a project named GzHelpIntl. This project have only one
> package: javax.help.resources, and inside this package, only one
> class: Constants_pt.java. I use the Eclipse IDE, so the
> Constants_pt.class is gerate at the same directory. After that, I
> jarred this little project, and now I have the GzHelpIntl.jar.
>
> Second, I do a test project named TesteHelp. In this project I
> have all the files necessary to my help: html, xml, hs, jhm ... In
> this project I call the JavaHelp too. After that, I jarred this
> project, and now I have my TesteHelp.jar.
>
> So, I call my application like that:
>
> java -cp gzhelpintl.jar -jar testehelp.jar
>
> And no translate!
>
> Here I have my sources for download:
> http://www.gznet.com.br/boo/javahelp/GzHelpIntl.zip
> http://www.gznet.com.br/boo/javahelp/TesteHelp.zip
>
> Somebody could help me again please?
>
>
> Thanks a lot!
> Renata
>
>
> 2009/2/2 Roger Brinkley > >
>
> that's not my point when you compile it, it has to be in a
> directory called javax/help/resources.
>
> Binky
>
> Renata Andreatti wrote:
>
> Yes, it is at /javax/help/resources, look my
> Constants_pt.java (look the package):
>
>
> package javax.help.resources;
>
> import java.util.ListResourceBundle;
>
> /**
> * Constants used for localizing JavaHelp.
> *
> * These are in the form of key, value.
> * Translators take care to only translate the values.
> */
>
> public class Constants_pt extends ListResourceBundle {
> /**
> * Overrides ListResourceBundle.
> */
> public Object[][] getContents() {
> return new Object[][] {
>
> // Constant strings and patterns
> { "helpset.wrongPublicID", "PublicID {0}
> desconhecido"},
> { "helpset.wrongTitle", "Tentativa de mudar
> o título para {0} quando já possue o valor {1}."},
> { "helpset.wrongHomeID", "Tentativa de
> mudar o homeID para {0} quando já possue o valor {1}."},
> { "helpset.subHelpSetTrouble", "Problemas
> ao criar subhelpset: {0}."},
> { "helpset.malformedURL", "URL mal
> informada: {0}."},
> { "helpset.incorrectURL", "URL incorreta:
> {0}."},
> { "helpset.wrongText", "{0} não pode conter
> o texto {1}."},
> { "helpset.wrongTopLevel", "{0} não pode
> ser uma tag de nível alto."},
> { "helpset.wrongParent", "O valor passado
> para a tag {0} não pode ser {1}."},
> { "helpset.unbalanced", "Tag {0}
> desbalanceada."},
> { "helpset.wrongLocale", "Aviso: xml:
> atributo lang {0} conflitante com o default {1} e com o
> default {2}"},
> { "helpset.unknownVersion", "Versão {0}
> desconhecida."},
>
> // IndexView messages
> { "index.invalidIndexFormat", "Aviso:
> Formato inválido de índice"},
> { "index.unknownVersion", "Versão {0}
> desconhecida."},
>
> // TOCView messages
> { "toc.wrongPublicID", "PublicID {0}
> desconhecido"},
> { "toc.invalidTOCFormat", "Aviso: Formato
> inválido de TOC"},
> { "toc.unknownVersion", "Versão {0}
> desconhecida."},
>
> // FavoritesView messages
> { "favorites.invalidFavoritesFormat",
> "Aviso: Formato inválido de favoritos"},
> { "favorites.unknownVersion", "Versão {0}
> desconhecida."},
>
> // Map messages
> { "map.wrongPublicID", "PublicID {0}
> desconhecido"},
> { "map.invalidMapFormat", "Aviso: Formato
> inválido de mapa"},
> { "map.unknownVersion", "Versão {0}
> desconhecida."},
>
> // GUI components
> // Labels
> { "index.findLabel", "Procurar: "},
>
> { "search.findLabel", "Procurar: "},
> { "search.hitDesc", "Número de ocorrências
> no documento"},
> { "search.qualityDesc", "Valor de
> penalidade baixa no documento" },
> { "search.high", "Alta"},
> { "search.midhigh", "Média alta"},
> { "search.mid", "Média"},
> { "search.midlow", "Média baixa"},
> { "search.low", "Baixa"},
>
> { "favorites.add", "Adicionar"},
> { "favorites.remove", "Remover"},
> { "favorites.folder", "Nova pasta"},
> { "favorites.name
> ", "Nome"},
>
> { "favorites.cut", "Recortar"},
> { "favorites.paste", "Colar"},
> { "favorites.copy" , "Copiar"},
>
> { "history.homePage", "Página inicial"},
> { "history.unknownTitle", " > página desconhecido>"},
>
> // ToolTips for Actions
> { "tooltip.BackAction", "Página anterior"},
> { "tooltip.ForwardAction", "Próxima página"},
> { "tooltip.PrintAction", "Imprimir"},
> { "tooltip.PrintSetupAction", "Configurar
> página"},
> { "tooltip.ReloadAction", "Atualizar"},
> { "tooltip.FavoritesAction", "Adicionar à
> favoritos"},
> { "tooltip.HomeAction", "Página inicial"},
>
> // Accessibility names
> { "access.BackAction", "Página anterior"},
> { "access.ForwardAction", "Próxima página"},
> { "access.HistoryAction", "Histórico"},
> { "access.PrintAction", "Imprimir"},
> { "access.PrintSetupAction", "Configurar
> página"},
> { "access.ReloadAction", "Atualizar"},
> { "access.HomeAction", "Página inicial"},
> { "access.FavoritesAction", "Adicionar à
> favoritos"},
> { "access.contentViewer", "Visualizador"}
>
> };
> }
> }
>
>
> 2009/2/2 Roger Brinkley >
> > >>
>
>
> Check your directory structure in GzHelpIntl. Make sure in
> Constants_pt.java is in a directory something like
> /javax/help/resources (I think it's resources...) which
> corresponds to the package name.
>
> Binky
>
> Renata Andreatti wrote:
>
> And how I do this?
>
> I try like this:
>
> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>
> But I still have the problem....
>
> Thanks
> Renata
>
> 2009/2/2 Roger Brinkley >
> > >>
>
>
> Renata Andreatti wrote:
>
> Hello!
>
> People, I still have the problem.
> I think I do everything like David said,
> but I isn't work!
>
> I do like this:
>
> First, I create a Project named GzHelpIntl.
> So, I create
> the package javax.help.resources and put my
> Constants_pt.java in there.
> After this, I create the GzHelpIntl.jar.
>
> So, I create the jar of my main project
> named MercoFlex.jar.
>
> Finally, I run my project:
>
> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>
> But my help is still in English! Where is
> the mistake?
>
> Sorry for my insistence, but only you are
> helping me.
>
> Thanks a lot!!!
>
> Renata
>
>
>
> 2009/1/29 Renata Andreatti
>
> > >
> >
> > >>>
>
>
>
> Ok... now I understand. :o)
>
> I'll try to do like David explain before.
>
> When I'll have finished, I send other
> e-mail.
>
> Thanks for now,
> Renata
>
> 2009/1/28 David Cagle
>
> > >
> >
> > >>>
>
>
> Yes Nicolas I believe you are
> correct. We did
> this trick with
> the 1.1.3 versions of jh.jar which
> were not
> signed. We have
> since abandoned this approach with
> 2.0* versions
> because they
> are signed. I should have mentioned
> that, sorry
> about that.
> There might be some ways around it
> but I don't
> think even
> signing the new translated Jar will
> do the trick
> since the
> certificates are different.
>
> -----Original Message-----
> From: Discussion list of JavaHelp
>
> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >
>
> >
> > >>] On Behalf Of
> Nicolas
> Van Cleemput
> Sent: Tuesday, January 27, 2009 3:58 PM
> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >
>
> >
> > >>
> Subject: Re: [JAVAHELP] Translate
> JavaHelp to
> Portuguese
>
> We tried to do it this way, but
> there was a
> problem because the
> translated class and the original
> classes are in
> the same
> package. The
> original classes however are in a
> signed jars, and
> therefore the
> classes in our jar would not load.
>
> Citeren Roger Brinkley
>
> > >
> >
> > >>>:
>
>
> > That sounds about right.
> >
> > Binky
> >
> > David Cagle wrote:
> >>
> >> Renata, we did something similar
> a couple of
> years ago. I
> don't
> >> think you can add to jh.jar for
> licensing
> reasons. So what
> we did
> >> was create a separate jar that
> had our
> translations in it. And
> >> when the application starts up,
> we add our new
> jar to the
> classpath.
> >>
> >> Here is a simplified example of
> what we did...
> >>
> >> - First, we took
> *Constants.java* and
> translated
> it...be
> >> sure to keep the property names
> the same!
> >>
> >> - You also want to make
> sure your new
> *Constants_pt.java*
> >> class is in the same package as
> the original
> Constants*.java
> >> classes in jh.jar. For example,
> the Constants*
> classes live at
> >> "*javax/help/resources*" in
> jh.jar, you want
> your new class
> to live
> >> in the same package name.
> >>
> >> - Say our new Constant
> translation is
> added to a
> Jar named
> >> '*javahelp.translations.jar*'
> >>
> >> - The classpath for our
> application
> would look
> something
> >> like this: *java --cp
>
> "jh.jar;javahelp.translations.jar;OurApp.jar"
> >> --jar OurApp*
> >>
> >> If I remember correctly, that is
> all we did.
> >>
> >> Furthermore, we have also
> contributed our
> translations to the
> >> JavaHelp Open Source project at:
> https://javahelp.dev.java.net/.
> >> But I don't know where that
> project stands at
> the moment.
> >>
> >> Good luck!
> >>
> >> *From:* Discussion list of JavaHelp
> >>
> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >
>
> >
> > >>] *On Behalf Of
> *Renata
> >> Andreatti
> >> *Sent:* Tuesday, January 27, 2009
> 12:58 PM
> >> *To:*
> JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >
>
> >
> > >>
> >> *Subject:* [JAVAHELP] Translate
> JavaHelp to
> Portuguese
> >>
> >> Hi people!
> >>
> >> For many days I search how to
> translate the
> JavaHelp to
> Portuguese
> >> (and possible other languages).
> >>
> >> After many search, I fond this
> forum and some
> explanation.
> >>
> >> Now I know that I have to
> translate the class
> Constants.java and
> >> name it as Constants_pt.java. So
> I recompile
> the class.
> >>
> >> After that, I jarred the
> Constants_pt.class in
> jh.jar. But
> until
> >> now, it doesn't work!
> >>
> >> If I translate the Constants.java
> and put the new
> Constants.class
> >> in the jh.jar, it works! But I
> cannot do this,
> because I
> need other
> >> languages too...
> >>
> >> Please, how I do to my
> application run the
> Constants_pt.class create by me?
> >>
> >> Does any other way to translate
> my JavaHelp?
> Please... I
> need help.
> >>
> >>
> >> Thanks a lot!
> >> Renata
> >>
> >> PS: Sorry, my English isn't so good.
> >>
> >>
>
> ********************************************************************************
> You may leave the list at any time
> by sending
> message with no
> subject and "SIGNOFF
> JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
>
> > >
> >
> > >>. Archives
>
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >>
> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >>
>
> ********************************************************************************
> You may leave the list at any time
> by sending
> message with no
> subject and "SIGNOFF
> JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
>
> > >
> >
> > >>. Archives
>
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >>
> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >
> >
>
> ********************************************************************************
> >
> > You may leave the list at any time
> by sending
> message with
> no subject and
> > "SIGNOFF JAVAHELP-INTEREST" in the
> body to
> LISTSERV@JAVA.SUN.COM
>
> > >
> >
> > >>. Archives
>
> > are available at
> >
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> > Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time
> by sending
> message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the
> body to
> LISTSERV@JAVA.SUN.COM
>
> > >
> >
> > >>. Archives
>
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time
> by sending
> message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the
> body to
> LISTSERV@JAVA.SUN.COM
>
> > >
> >
> > >>. Archives
>
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> -- Renata Fernanda Andreatti
>
>
>
>
> -- Renata Fernanda Andreatti
>
> ********************************************************************************
>
>
> You may leave the list at any time by
> sending message
> with no subject and "SIGNOFF
> JAVAHELP-INTEREST" in the
> body to LISTSERV@JAVA.SUN.COM
>
> > >. Archives are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
> I think it has to do with the classpath. Make
> sure your file
> is ahead of the jh.jar in the classpath.
>
> binky
>
>
> ********************************************************************************
>
>
>
> You may leave the list at any time by sending
> message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
>
> > >. Archives
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> -- Renata Fernanda Andreatti
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending
> message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
>
> > >. Archives
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message
> with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
> > >. Archives are
> available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with
> no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM .
> Archives are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject
> and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
> Archives are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit
> bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Nicolas Van Cleemput

No, I and some other people have already explained the problem: a
package can not be distributed across two jars which are differently
signed. Since the JavaHelp jar is signed by Sun, you can't use your
own Constants_xx class because the classloader won't load it, unless
you extract the files from the JH jar and repackage the whole lot.

Kind regards,
Nico Van Cleemput

Citeren Roger Brinkley :

> At the expense of removing all of the default variables. My guess is
> your not setting the local variable properly.
>
> Binky
>
> Renata Andreatti wrote:
>> Hi people!
>>
>> I'm here only to say that I solve the problem! (thanks God!)
>>
>> I talk with a boy at a Java forum and I notice what I's doing wrog.
>>
>> The only problem was the name of my class: Constants_pt.java. The
>> JavaHelp didn't understand this class, because it hasn't this class.
>> I do everything equal (like I tell at the last email), but now I
>> rename my Constants_pt.java to Constants.java. And now It works!!!!
>>
>> I use my i18n tags in my new class Constants.java and everything is
>> tranlated.
>>
>> Thanks for all!!!!
>> Renata
>>
>> 2009/3/28 Renata Andreatti >> >
>>
>> Hi! Do you remember me?
>>
>> I think that like one month ago I have a problem... and this
>> problem is still here!
>> Sorry... I stopped to answer the emails because I have other
>> problem, more urgently, and I have to pause the help project. But
>> now, I'm back... and I still have the same problem: translate the
>> javahelp.
>>
>> I'll try to continue at the point I stopped.
>>
>> I tried to compile a separate jar with the Constants_pt.java and
>> calll this jar before the jar of my application. But probably I
>> make mistakes because the texts are in English yet!
>>
>> So, Roger sad me that probably I'm not putting the
>> Constants_pt.java in the correct directory. Well... I'll explain
>> what I'm doing and please, someone tell me what I'm doing wrong.
>>
>> First, I do a project named GzHelpIntl. This project have only one
>> package: javax.help.resources, and inside this package, only one
>> class: Constants_pt.java. I use the Eclipse IDE, so the
>> Constants_pt.class is gerate at the same directory. After that, I
>> jarred this little project, and now I have the GzHelpIntl.jar.
>>
>> Second, I do a test project named TesteHelp. In this project I
>> have all the files necessary to my help: html, xml, hs, jhm ... In
>> this project I call the JavaHelp too. After that, I jarred this
>> project, and now I have my TesteHelp.jar.
>>
>> So, I call my application like that:
>>
>> java -cp gzhelpintl.jar -jar testehelp.jar
>>
>> And no translate!
>>
>> Here I have my sources for download:
>> http://www.gznet.com.br/boo/javahelp/GzHelpIntl.zip
>> http://www.gznet.com.br/boo/javahelp/TesteHelp.zip
>>
>> Somebody could help me again please?
>>
>>
>> Thanks a lot!
>> Renata
>>
>>
>> 2009/2/2 Roger Brinkley >> >
>>
>> that's not my point when you compile it, it has to be in a
>> directory called javax/help/resources.
>>
>> Binky
>>
>> Renata Andreatti wrote:
>>
>> Yes, it is at /javax/help/resources, look my
>> Constants_pt.java (look the package):
>>
>>
>> package javax.help.resources;
>>
>> import java.util.ListResourceBundle;
>>
>> /**
>> * Constants used for localizing JavaHelp.
>> *
>> * These are in the form of key, value.
>> * Translators take care to only translate the values.
>> */
>>
>> public class Constants_pt extends ListResourceBundle {
>> /**
>> * Overrides ListResourceBundle.
>> */
>> public Object[][] getContents() {
>> return new Object[][] {
>>
>> // Constant strings and patterns
>> { "helpset.wrongPublicID", "PublicID {0}
>> desconhecido"},
>> { "helpset.wrongTitle", "Tentativa de mudar
>> o título para {0} quando já possue o valor {1}."},
>> { "helpset.wrongHomeID", "Tentativa de
>> mudar o homeID para {0} quando já possue o valor {1}."},
>> { "helpset.subHelpSetTrouble", "Problemas
>> ao criar subhelpset: {0}."},
>> { "helpset.malformedURL", "URL mal
>> informada: {0}."},
>> { "helpset.incorrectURL", "URL incorreta:
>> {0}."},
>> { "helpset.wrongText", "{0} não pode conter
>> o texto {1}."},
>> { "helpset.wrongTopLevel", "{0} não pode
>> ser uma tag de nível alto."},
>> { "helpset.wrongParent", "O valor passado
>> para a tag {0} não pode ser {1}."},
>> { "helpset.unbalanced", "Tag {0}
>> desbalanceada."},
>> { "helpset.wrongLocale", "Aviso: xml:
>> atributo lang {0} conflitante com o default {1} e com o
>> default {2}"},
>> { "helpset.unknownVersion", "Versão {0}
>> desconhecida."},
>>
>> // IndexView messages
>> { "index.invalidIndexFormat", "Aviso:
>> Formato inválido de índice"},
>> { "index.unknownVersion", "Versão {0}
>> desconhecida."},
>>
>> // TOCView messages
>> { "toc.wrongPublicID", "PublicID {0}
>> desconhecido"},
>> { "toc.invalidTOCFormat", "Aviso: Formato
>> inválido de TOC"},
>> { "toc.unknownVersion", "Versão {0}
>> desconhecida."},
>>
>> // FavoritesView messages
>> { "favorites.invalidFavoritesFormat",
>> "Aviso: Formato inválido de favoritos"},
>> { "favorites.unknownVersion", "Versão {0}
>> desconhecida."},
>>
>> // Map messages
>> { "map.wrongPublicID", "PublicID {0}
>> desconhecido"},
>> { "map.invalidMapFormat", "Aviso: Formato
>> inválido de mapa"},
>> { "map.unknownVersion", "Versão {0}
>> desconhecida."},
>>
>> // GUI components
>> // Labels
>> { "index.findLabel", "Procurar: "},
>>
>> { "search.findLabel", "Procurar: "},
>> { "search.hitDesc", "Número de ocorrências
>> no documento"},
>> { "search.qualityDesc", "Valor de
>> penalidade baixa no documento" },
>> { "search.high", "Alta"},
>> { "search.midhigh", "Média alta"},
>> { "search.mid", "Média"},
>> { "search.midlow", "Média baixa"},
>> { "search.low", "Baixa"},
>>
>> { "favorites.add", "Adicionar"},
>> { "favorites.remove", "Remover"},
>> { "favorites.folder", "Nova pasta"},
>> { "favorites.name
>> ", "Nome"},
>>
>> { "favorites.cut", "Recortar"},
>> { "favorites.paste", "Colar"},
>> { "favorites.copy" , "Copiar"},
>>
>> { "history.homePage", "Página inicial"},
>> { "history.unknownTitle", " >> página desconhecido>"},
>>
>> // ToolTips for Actions
>> { "tooltip.BackAction", "Página anterior"},
>> { "tooltip.ForwardAction", "Próxima página"},
>> { "tooltip.PrintAction", "Imprimir"},
>> { "tooltip.PrintSetupAction", "Configurar
>> página"},
>> { "tooltip.ReloadAction", "Atualizar"},
>> { "tooltip.FavoritesAction", "Adicionar à
>> favoritos"},
>> { "tooltip.HomeAction", "Página inicial"},
>>
>> // Accessibility names
>> { "access.BackAction", "Página anterior"},
>> { "access.ForwardAction", "Próxima página"},
>> { "access.HistoryAction", "Histórico"},
>> { "access.PrintAction", "Imprimir"},
>> { "access.PrintSetupAction", "Configurar
>> página"},
>> { "access.ReloadAction", "Atualizar"},
>> { "access.HomeAction", "Página inicial"},
>> { "access.FavoritesAction", "Adicionar à
>> favoritos"},
>> { "access.contentViewer", "Visualizador"}
>>
>> };
>> }
>> }
>>
>>
>> 2009/2/2 Roger Brinkley >>
>> >> >>
>>
>>
>> Check your directory structure in GzHelpIntl. Make sure in
>> Constants_pt.java is in a directory something like
>> /javax/help/resources (I think it's resources...) which
>> corresponds to the package name.
>>
>> Binky
>>
>> Renata Andreatti wrote:
>>
>> And how I do this?
>>
>> I try like this:
>>
>> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>>
>> But I still have the problem....
>>
>> Thanks
>> Renata
>>
>> 2009/2/2 Roger Brinkley >>
>> >> >>
>>
>>
>> Renata Andreatti wrote:
>>
>> Hello!
>>
>> People, I still have the problem.
>> I think I do everything like David said,
>> but I isn't work!
>>
>> I do like this:
>>
>> First, I create a Project named GzHelpIntl.
>> So, I create
>> the package javax.help.resources and put my
>> Constants_pt.java in there.
>> After this, I create the GzHelpIntl.jar.
>>
>> So, I create the jar of my main project
>> named MercoFlex.jar.
>>
>> Finally, I run my project:
>>
>> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>>
>> But my help is still in English! Where is
>> the mistake?
>>
>> Sorry for my insistence, but only you are
>> helping me.
>>
>> Thanks a lot!!!
>>
>> Renata
>>
>>
>>
>> 2009/1/29 Renata Andreatti
>>
>> >> >
>> >>
>> >> >>>
>>
>>
>>
>> Ok... now I understand. :o)
>>
>> I'll try to do like David explain before.
>>
>> When I'll have finished, I send other
>> e-mail.
>>
>> Thanks for now,
>> Renata
>>
>> 2009/1/28 David Cagle
>>
>> >> >
>> >>
>> >> >>>
>>
>>
>> Yes Nicolas I believe you are
>> correct. We did
>> this trick with
>> the 1.1.3 versions of jh.jar which
>> were not
>> signed. We have
>> since abandoned this approach with
>> 2.0* versions
>> because they
>> are signed. I should have mentioned
>> that, sorry
>> about that.
>> There might be some ways around it
>> but I don't
>> think even
>> signing the new translated Jar will
>> do the trick
>> since the
>> certificates are different.
>>
>> -----Original Message-----
>> From: Discussion list of JavaHelp
>>
>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> >> >
>>
>> >>
>> >> >>] On Behalf Of
>> Nicolas
>> Van Cleemput
>> Sent: Tuesday, January 27, 2009 3:58 PM
>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> >> >
>>
>> >>
>> >> >>
>> Subject: Re: [JAVAHELP] Translate
>> JavaHelp to
>> Portuguese
>>
>> We tried to do it this way, but
>> there was a
>> problem because the
>> translated class and the original
>> classes are in
>> the same
>> package. The
>> original classes however are in a
>> signed jars, and
>> therefore the
>> classes in our jar would not load.
>>
>> Citeren Roger Brinkley
>>
>> >> >
>> >>
>> >> >>>:
>>
>>
>> > That sounds about right.
>> >
>> > Binky
>> >
>> > David Cagle wrote:
>> >>
>> >> Renata, we did something similar
>> a couple of
>> years ago. I
>> don't
>> >> think you can add to jh.jar for
>> licensing
>> reasons. So what
>> we did
>> >> was create a separate jar that
>> had our
>> translations in it. And
>> >> when the application starts up,
>> we add our new
>> jar to the
>> classpath.
>> >>
>> >> Here is a simplified example of
>> what we did...
>> >>
>> >> - First, we took
>> *Constants.java* and
>> translated
>> it...be
>> >> sure to keep the property names
>> the same!
>> >>
>> >> - You also want to make
>> sure your new
>> *Constants_pt.java*
>> >> class is in the same package as
>> the original
>> Constants*.java
>> >> classes in jh.jar. For example,
>> the Constants*
>> classes live at
>> >> "*javax/help/resources*" in
>> jh.jar, you want
>> your new class
>> to live
>> >> in the same package name.
>> >>
>> >> - Say our new Constant
>> translation is
>> added to a
>> Jar named
>> >> '*javahelp.translations.jar*'
>> >>
>> >> - The classpath for our
>> application
>> would look
>> something
>> >> like this: *java --cp
>>
>> "jh.jar;javahelp.translations.jar;OurApp.jar"
>> >> --jar OurApp*
>> >>
>> >> If I remember correctly, that is
>> all we did.
>> >>
>> >> Furthermore, we have also
>> contributed our
>> translations to the
>> >> JavaHelp Open Source project at:
>> https://javahelp.dev.java.net/.
>> >> But I don't know where that
>> project stands at
>> the moment.
>> >>
>> >> Good luck!
>> >>
>> >> *From:* Discussion list of JavaHelp
>> >>
>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> >> >
>>
>> >>
>> >> >>] *On Behalf Of
>> *Renata
>> >> Andreatti
>> >> *Sent:* Tuesday, January 27, 2009
>> 12:58 PM
>> >> *To:*
>> JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> >> >
>>
>> >>
>> >> >>
>> >> *Subject:* [JAVAHELP] Translate
>> JavaHelp to
>> Portuguese
>> >>
>> >> Hi people!
>> >>
>> >> For many days I search how to
>> translate the
>> JavaHelp to
>> Portuguese
>> >> (and possible other languages).
>> >>
>> >> After many search, I fond this
>> forum and some
>> explanation.
>> >>
>> >> Now I know that I have to
>> translate the class
>> Constants.java and
>> >> name it as Constants_pt.java. So
>> I recompile
>> the class.
>> >>
>> >> After that, I jarred the
>> Constants_pt.class in
>> jh.jar. But
>> until
>> >> now, it doesn't work!
>> >>
>> >> If I translate the Constants.java
>> and put the new
>> Constants.class
>> >> in the jh.jar, it works! But I
>> cannot do this,
>> because I
>> need other
>> >> languages too...
>> >>
>> >> Please, how I do to my
>> application run the
>> Constants_pt.class create by me?
>> >>
>> >> Does any other way to translate
>> my JavaHelp?
>> Please... I
>> need help.
>> >>
>> >>
>> >> Thanks a lot!
>> >> Renata
>> >>
>> >> PS: Sorry, my English isn't so good.
>> >>
>> >>
>>
>> ********************************************************************************
>> You may leave the list at any time
>> by sending
>> message with no
>> subject and "SIGNOFF
>> JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >
>> >>
>> >> >>. Archives
>>
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> >>
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>> >>
>> >>
>>
>> ********************************************************************************
>> You may leave the list at any time
>> by sending
>> message with no
>> subject and "SIGNOFF
>> JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >
>> >>
>> >> >>. Archives
>>
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> >>
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>> >>
>> >
>> >
>>
>> ********************************************************************************
>> >
>> > You may leave the list at any time
>> by sending
>> message with
>> no subject and
>> > "SIGNOFF JAVAHELP-INTEREST" in the
>> body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >
>> >>
>> >> >>. Archives
>>
>> > are available at
>> >
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> > Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time
>> by sending
>> message with no
>> subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the
>> body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >
>> >>
>> >> >>. Archives
>>
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time
>> by sending
>> message with no
>> subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the
>> body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >
>> >>
>> >> >>. Archives
>>
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>>
>> -- Renata Fernanda Andreatti
>>
>>
>>
>>
>> -- Renata Fernanda Andreatti
>>
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by
>> sending message
>> with no subject and "SIGNOFF
>> JAVAHELP-INTEREST" in the
>> body to LISTSERV@JAVA.SUN.COM
>>
>> >> >. Archives are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>> I think it has to do with the classpath. Make
>> sure your file
>> is ahead of the jh.jar in the classpath.
>>
>> binky
>>
>>
>> ********************************************************************************
>>
>>
>>
>> You may leave the list at any time by sending
>> message with no
>> subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >. Archives
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>>
>> -- Renata Fernanda Andreatti
>>
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending
>> message with no
>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>>
>> >> >. Archives
>> are available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message
>> with no
>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM
>> >> >. Archives are
>> available at
>>
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>>
>> -- Renata Fernanda Andreatti
>>
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message with
>> no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM .
>> Archives are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time by sending message with no
>> subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM . Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>>
>> -- Renata Fernanda Andreatti
>>
>>
>>
>>
>> --
>> Renata Fernanda Andreatti
>> ******************************************************************************** You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

--
Nico Van Cleemput
Applied Mathematics and Computer Science
Ghent University
Krijgslaan 281 - S9
B - 9000 Ghent
http://users.ugent.be/~nvcleemp

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Roger Brinkley

Yes but renaming it Constants.java is wrong, dead wrong.

Binky

Nicolas Van Cleemput wrote:
> No, I and some other people have already explained the problem: a
> package can not be distributed across two jars which are differently
> signed. Since the JavaHelp jar is signed by Sun, you can't use your
> own Constants_xx class because the classloader won't load it, unless
> you extract the files from the JH jar and repackage the whole lot.
>
> Kind regards,
> Nico Van Cleemput
>
> Citeren Roger Brinkley :
>
>> At the expense of removing all of the default variables. My guess is
>> your not setting the local variable properly.
>>
>> Binky
>>
>> Renata Andreatti wrote:
>>> Hi people!
>>>
>>> I'm here only to say that I solve the problem! (thanks God!)
>>>
>>> I talk with a boy at a Java forum and I notice what I's doing wrog.
>>>
>>> The only problem was the name of my class: Constants_pt.java. The
>>> JavaHelp didn't understand this class, because it hasn't this class.
>>> I do everything equal (like I tell at the last email), but now I
>>> rename my Constants_pt.java to Constants.java. And now It works!!!!
>>>
>>> I use my i18n tags in my new class Constants.java and everything is
>>> tranlated.
>>>
>>> Thanks for all!!!!
>>> Renata
>>>
>>> 2009/3/28 Renata Andreatti >>> >
>>>
>>> Hi! Do you remember me?
>>>
>>> I think that like one month ago I have a problem... and this
>>> problem is still here!
>>> Sorry... I stopped to answer the emails because I have other
>>> problem, more urgently, and I have to pause the help project. But
>>> now, I'm back... and I still have the same problem: translate the
>>> javahelp.
>>>
>>> I'll try to continue at the point I stopped.
>>>
>>> I tried to compile a separate jar with the Constants_pt.java and
>>> calll this jar before the jar of my application. But probably I
>>> make mistakes because the texts are in English yet!
>>>
>>> So, Roger sad me that probably I'm not putting the
>>> Constants_pt.java in the correct directory. Well... I'll explain
>>> what I'm doing and please, someone tell me what I'm doing wrong.
>>>
>>> First, I do a project named GzHelpIntl. This project have only one
>>> package: javax.help.resources, and inside this package, only one
>>> class: Constants_pt.java. I use the Eclipse IDE, so the
>>> Constants_pt.class is gerate at the same directory. After that, I
>>> jarred this little project, and now I have the GzHelpIntl.jar.
>>>
>>> Second, I do a test project named TesteHelp. In this project I
>>> have all the files necessary to my help: html, xml, hs, jhm ... In
>>> this project I call the JavaHelp too. After that, I jarred this
>>> project, and now I have my TesteHelp.jar.
>>>
>>> So, I call my application like that:
>>>
>>> java -cp gzhelpintl.jar -jar testehelp.jar
>>>
>>> And no translate!
>>>
>>> Here I have my sources for download:
>>> http://www.gznet.com.br/boo/javahelp/GzHelpIntl.zip
>>> http://www.gznet.com.br/boo/javahelp/TesteHelp.zip
>>>
>>> Somebody could help me again please?
>>>
>>>
>>> Thanks a lot!
>>> Renata
>>>
>>>
>>> 2009/2/2 Roger Brinkley >>> >
>>>
>>> that's not my point when you compile it, it has to be in a
>>> directory called javax/help/resources.
>>>
>>> Binky
>>>
>>> Renata Andreatti wrote:
>>>
>>> Yes, it is at /javax/help/resources, look my
>>> Constants_pt.java (look the package):
>>>
>>>
>>> package javax.help.resources;
>>>
>>> import java.util.ListResourceBundle;
>>>
>>> /**
>>> * Constants used for localizing JavaHelp.
>>> *
>>> * These are in the form of key, value.
>>> * Translators take care to only translate the values.
>>> */
>>>
>>> public class Constants_pt extends ListResourceBundle {
>>> /**
>>> * Overrides ListResourceBundle.
>>> */
>>> public Object[][] getContents() {
>>> return new Object[][] {
>>>
>>> // Constant strings and patterns
>>> { "helpset.wrongPublicID", "PublicID {0}
>>> desconhecido"},
>>> { "helpset.wrongTitle", "Tentativa de mudar
>>> o título para {0} quando já possue o valor {1}."},
>>> { "helpset.wrongHomeID", "Tentativa de
>>> mudar o homeID para {0} quando já possue o valor {1}."},
>>> { "helpset.subHelpSetTrouble", "Problemas
>>> ao criar subhelpset: {0}."},
>>> { "helpset.malformedURL", "URL mal
>>> informada: {0}."},
>>> { "helpset.incorrectURL", "URL incorreta:
>>> {0}."},
>>> { "helpset.wrongText", "{0} não pode conter
>>> o texto {1}."},
>>> { "helpset.wrongTopLevel", "{0} não pode
>>> ser uma tag de nível alto."},
>>> { "helpset.wrongParent", "O valor passado
>>> para a tag {0} não pode ser {1}."},
>>> { "helpset.unbalanced", "Tag {0}
>>> desbalanceada."},
>>> { "helpset.wrongLocale", "Aviso: xml:
>>> atributo lang {0} conflitante com o default {1} e com o
>>> default {2}"},
>>> { "helpset.unknownVersion", "Versão {0}
>>> desconhecida."},
>>>
>>> // IndexView messages
>>> { "index.invalidIndexFormat", "Aviso:
>>> Formato inválido de índice"},
>>> { "index.unknownVersion", "Versão {0}
>>> desconhecida."},
>>>
>>> // TOCView messages
>>> { "toc.wrongPublicID", "PublicID {0}
>>> desconhecido"},
>>> { "toc.invalidTOCFormat", "Aviso: Formato
>>> inválido de TOC"},
>>> { "toc.unknownVersion", "Versão {0}
>>> desconhecida."},
>>>
>>> // FavoritesView messages
>>> { "favorites.invalidFavoritesFormat",
>>> "Aviso: Formato inválido de favoritos"},
>>> { "favorites.unknownVersion", "Versão {0}
>>> desconhecida."},
>>>
>>> // Map messages
>>> { "map.wrongPublicID", "PublicID {0}
>>> desconhecido"},
>>> { "map.invalidMapFormat", "Aviso: Formato
>>> inválido de mapa"},
>>> { "map.unknownVersion", "Versão {0}
>>> desconhecida."},
>>>
>>> // GUI components
>>> // Labels
>>> { "index.findLabel", "Procurar: "},
>>>
>>> { "search.findLabel", "Procurar: "},
>>> { "search.hitDesc", "Número de ocorrências
>>> no documento"},
>>> { "search.qualityDesc", "Valor de
>>> penalidade baixa no documento" },
>>> { "search.high", "Alta"},
>>> { "search.midhigh", "Média alta"},
>>> { "search.mid", "Média"},
>>> { "search.midlow", "Média baixa"},
>>> { "search.low", "Baixa"},
>>>
>>> { "favorites.add", "Adicionar"},
>>> { "favorites.remove", "Remover"},
>>> { "favorites.folder", "Nova pasta"},
>>> { "favorites.name
>>> ", "Nome"},
>>>
>>> { "favorites.cut", "Recortar"},
>>> { "favorites.paste", "Colar"},
>>> { "favorites.copy" , "Copiar"},
>>>
>>> { "history.homePage", "Página inicial"},
>>> { "history.unknownTitle", " >>> página desconhecido>"},
>>>
>>> // ToolTips for Actions
>>> { "tooltip.BackAction", "Página anterior"},
>>> { "tooltip.ForwardAction", "Próxima página"},
>>> { "tooltip.PrintAction", "Imprimir"},
>>> { "tooltip.PrintSetupAction", "Configurar
>>> página"},
>>> { "tooltip.ReloadAction", "Atualizar"},
>>> { "tooltip.FavoritesAction", "Adicionar à
>>> favoritos"},
>>> { "tooltip.HomeAction", "Página inicial"},
>>>
>>> // Accessibility names
>>> { "access.BackAction", "Página anterior"},
>>> { "access.ForwardAction", "Próxima página"},
>>> { "access.HistoryAction", "Histórico"},
>>> { "access.PrintAction", "Imprimir"},
>>> { "access.PrintSetupAction", "Configurar
>>> página"},
>>> { "access.ReloadAction", "Atualizar"},
>>> { "access.HomeAction", "Página inicial"},
>>> { "access.FavoritesAction", "Adicionar à
>>> favoritos"},
>>> { "access.contentViewer", "Visualizador"}
>>>
>>> };
>>> }
>>> }
>>>
>>>
>>> 2009/2/2 Roger Brinkley >>>
>>> >>> >>
>>>
>>>
>>> Check your directory structure in GzHelpIntl. Make
>>> sure in
>>> Constants_pt.java is in a directory something like
>>> /javax/help/resources (I think it's resources...) which
>>> corresponds to the package name.
>>>
>>> Binky
>>>
>>> Renata Andreatti wrote:
>>>
>>> And how I do this?
>>>
>>> I try like this:
>>>
>>> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>>>
>>> But I still have the problem....
>>>
>>> Thanks
>>> Renata
>>>
>>> 2009/2/2 Roger Brinkley >>>
>>> >>> >>
>>>
>>>
>>> Renata Andreatti wrote:
>>>
>>> Hello!
>>>
>>> People, I still have the problem.
>>> I think I do everything like David said,
>>> but I isn't work!
>>>
>>> I do like this:
>>>
>>> First, I create a Project named GzHelpIntl.
>>> So, I create
>>> the package javax.help.resources and put my
>>> Constants_pt.java in there.
>>> After this, I create the GzHelpIntl.jar.
>>>
>>> So, I create the jar of my main project
>>> named MercoFlex.jar.
>>>
>>> Finally, I run my project:
>>>
>>> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>>>
>>> But my help is still in English! Where is
>>> the mistake?
>>>
>>> Sorry for my insistence, but only you are
>>> helping me.
>>>
>>> Thanks a lot!!!
>>>
>>> Renata
>>>
>>>
>>>
>>> 2009/1/29 Renata Andreatti
>>>
>>> >>> >
>>> >>>
>>> >>> >>>
>>>
>>>
>>>
>>> Ok... now I understand. :o)
>>>
>>> I'll try to do like David explain before.
>>>
>>> When I'll have finished, I send other
>>> e-mail.
>>>
>>> Thanks for now,
>>> Renata
>>>
>>> 2009/1/28 David Cagle
>>>
>>> >>> >
>>> >>>
>>> >>> >>>
>>>
>>>
>>> Yes Nicolas I believe you are
>>> correct. We did
>>> this trick with
>>> the 1.1.3 versions of jh.jar which
>>> were not
>>> signed. We have
>>> since abandoned this approach with
>>> 2.0* versions
>>> because they
>>> are signed. I should have mentioned
>>> that, sorry
>>> about that.
>>> There might be some ways around it
>>> but I don't
>>> think even
>>> signing the new translated Jar will
>>> do the trick
>>> since the
>>> certificates are different.
>>>
>>> -----Original Message-----
>>> From: Discussion list of JavaHelp
>>>
>>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> >>> >
>>>
>>> >>>
>>> >>> >>] On Behalf Of
>>> Nicolas
>>> Van Cleemput
>>> Sent: Tuesday, January 27, 2009
>>> 3:58 PM
>>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> >>> >
>>>
>>> >>>
>>> >>> >>
>>> Subject: Re: [JAVAHELP] Translate
>>> JavaHelp to
>>> Portuguese
>>>
>>> We tried to do it this way, but
>>> there was a
>>> problem because the
>>> translated class and the original
>>> classes are in
>>> the same
>>> package. The
>>> original classes however are in a
>>> signed jars, and
>>> therefore the
>>> classes in our jar would not load.
>>>
>>> Citeren Roger Brinkley
>>>
>>> >>> >
>>> >>>
>>> >>> >>>:
>>>
>>>
>>> > That sounds about right.
>>> >
>>> > Binky
>>> >
>>> > David Cagle wrote:
>>> >>
>>> >> Renata, we did something similar
>>> a couple of
>>> years ago. I
>>> don't
>>> >> think you can add to jh.jar for
>>> licensing
>>> reasons. So what
>>> we did
>>> >> was create a separate jar that
>>> had our
>>> translations in it. And
>>> >> when the application starts up,
>>> we add our new
>>> jar to the
>>> classpath.
>>> >>
>>> >> Here is a simplified example of
>>> what we did...
>>> >>
>>> >> - First, we took
>>> *Constants.java* and
>>> translated
>>> it...be
>>> >> sure to keep the property names
>>> the same!
>>> >>
>>> >> - You also want to make
>>> sure your new
>>> *Constants_pt.java*
>>> >> class is in the same package as
>>> the original
>>> Constants*.java
>>> >> classes in jh.jar. For example,
>>> the Constants*
>>> classes live at
>>> >> "*javax/help/resources*" in
>>> jh.jar, you want
>>> your new class
>>> to live
>>> >> in the same package name.
>>> >>
>>> >> - Say our new Constant
>>> translation is
>>> added to a
>>> Jar named
>>> >> '*javahelp.translations.jar*'
>>> >>
>>> >> - The classpath for our
>>> application
>>> would look
>>> something
>>> >> like this: *java --cp
>>>
>>> "jh.jar;javahelp.translations.jar;OurApp.jar"
>>> >> --jar OurApp*
>>> >>
>>> >> If I remember correctly, that is
>>> all we did.
>>> >>
>>> >> Furthermore, we have also
>>> contributed our
>>> translations to the
>>> >> JavaHelp Open Source project at:
>>> https://javahelp.dev.java.net/.
>>> >> But I don't know where that
>>> project stands at
>>> the moment.
>>> >>
>>> >> Good luck!
>>> >>
>>> >> *From:* Discussion list of JavaHelp
>>> >>
>>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> >>> >
>>>
>>> >>>
>>> >>> >>] *On Behalf Of
>>> *Renata
>>> >> Andreatti
>>> >> *Sent:* Tuesday, January 27, 2009
>>> 12:58 PM
>>> >> *To:*
>>> JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> >>> >
>>>
>>> >>>
>>> >>> >>
>>> >> *Subject:* [JAVAHELP] Translate
>>> JavaHelp to
>>> Portuguese
>>> >>
>>> >> Hi people!
>>> >>
>>> >> For many days I search how to
>>> translate the
>>> JavaHelp to
>>> Portuguese
>>> >> (and possible other languages).
>>> >>
>>> >> After many search, I fond this
>>> forum and some
>>> explanation.
>>> >>
>>> >> Now I know that I have to
>>> translate the class
>>> Constants.java and
>>> >> name it as Constants_pt.java. So
>>> I recompile
>>> the class.
>>> >>
>>> >> After that, I jarred the
>>> Constants_pt.class in
>>> jh.jar. But
>>> until
>>> >> now, it doesn't work!
>>> >>
>>> >> If I translate the Constants.java
>>> and put the new
>>> Constants.class
>>> >> in the jh.jar, it works! But I
>>> cannot do this,
>>> because I
>>> need other
>>> >> languages too...
>>> >>
>>> >> Please, how I do to my
>>> application run the
>>> Constants_pt.class create by me?
>>> >>
>>> >> Does any other way to translate
>>> my JavaHelp?
>>> Please... I
>>> need help.
>>> >>
>>> >>
>>> >> Thanks a lot!
>>> >> Renata
>>> >>
>>> >> PS: Sorry, my English isn't so
>>> good.
>>> >>
>>> >>
>>>
>>> ********************************************************************************
>>>
>>> You may leave the list at any time
>>> by sending
>>> message with no
>>> subject and "SIGNOFF
>>> JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >
>>> >>>
>>> >>> >>. Archives
>>>
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> >>
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>> >>
>>> >>
>>>
>>> ********************************************************************************
>>>
>>> You may leave the list at any time
>>> by sending
>>> message with no
>>> subject and "SIGNOFF
>>> JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >
>>> >>>
>>> >>> >>. Archives
>>>
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> >>
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>> >>
>>> >
>>> >
>>>
>>> ********************************************************************************
>>>
>>> >
>>> > You may leave the list at any time
>>> by sending
>>> message with
>>> no subject and
>>> > "SIGNOFF JAVAHELP-INTEREST" in the
>>> body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >
>>> >>>
>>> >>> >>. Archives
>>>
>>> > are available at
>>> >
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> > Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>> ********************************************************************************
>>>
>>>
>>> You may leave the list at any time
>>> by sending
>>> message with no
>>> subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the
>>> body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >
>>> >>>
>>> >>> >>. Archives
>>>
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>> ********************************************************************************
>>>
>>>
>>> You may leave the list at any time
>>> by sending
>>> message with no
>>> subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the
>>> body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >
>>> >>>
>>> >>> >>. Archives
>>>
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>>
>>> -- Renata Fernanda Andreatti
>>>
>>>
>>>
>>>
>>> -- Renata Fernanda Andreatti
>>>
>>> ********************************************************************************
>>>
>>>
>>>
>>> You may leave the list at any time by
>>> sending message
>>> with no subject and "SIGNOFF
>>> JAVAHELP-INTEREST" in the
>>> body to LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >. Archives are
>>> available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>> I think it has to do with the classpath. Make
>>> sure your file
>>> is ahead of the jh.jar in the classpath.
>>>
>>> binky
>>>
>>>
>>> ********************************************************************************
>>>
>>>
>>>
>>>
>>> You may leave the list at any time by sending
>>> message with no
>>> subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >. Archives
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>>
>>> -- Renata Fernanda Andreatti
>>>
>>> ********************************************************************************
>>>
>>>
>>>
>>> You may leave the list at any time by sending
>>> message with no
>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the
>>> body to
>>> LISTSERV@JAVA.SUN.COM
>>>
>>> >>> >. Archives
>>> are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>> ********************************************************************************
>>>
>>>
>>>
>>> You may leave the list at any time by sending message
>>> with no
>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM
>>> >>> >. Archives are
>>> available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>>
>>> -- Renata Fernanda Andreatti
>>>
>>> ********************************************************************************
>>>
>>>
>>>
>>> You may leave the list at any time by sending message with
>>> no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM .
>>> Archives are available at
>>>
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>> ********************************************************************************
>>>
>>>
>>> You may leave the list at any time by sending message with no
>>> subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM . Archives
>>> are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>>
>>> -- Renata Fernanda Andreatti
>>>
>>>
>>>
>>>
>>> --
>>> Renata Fernanda Andreatti
>>> ********************************************************************************
>>> You may leave the list at any time by sending message with no
>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM. Archives are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html. Submit
>>> bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message with no subject
>> and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Nicolas Van Cleemput

That's a point with which I completely agree. I was just pointing out
that the problems are just due to the signed jars, and thus the
solution must be looked for there as well.

Nico

Citeren Roger Brinkley :

> Yes but renaming it Constants.java is wrong, dead wrong.
>
> Binky
>
> Nicolas Van Cleemput wrote:
>> No, I and some other people have already explained the problem: a
>> package can not be distributed across two jars which are
>> differently signed. Since the JavaHelp jar is signed by Sun, you
>> can't use your own Constants_xx class because the classloader won't
>> load it, unless you extract the files from the JH jar and
>> repackage the whole lot.
>>
>> Kind regards,
>> Nico Van Cleemput
>>
>> Citeren Roger Brinkley :
>>
>>> At the expense of removing all of the default variables. My guess is
>>> your not setting the local variable properly.
>>>
>>> Binky
>>>
>>> Renata Andreatti wrote:
>>>> Hi people!
>>>>
>>>> I'm here only to say that I solve the problem! (thanks God!)
>>>>
>>>> I talk with a boy at a Java forum and I notice what I's doing wrog.
>>>>
>>>> The only problem was the name of my class: Constants_pt.java. The
>>>> JavaHelp didn't understand this class, because it hasn't this
>>>> class.
>>>> I do everything equal (like I tell at the last email), but now I
>>>> rename my Constants_pt.java to Constants.java. And now It
>>>> works!!!!
>>>>
>>>> I use my i18n tags in my new class Constants.java and everything
>>>> is tranlated.
>>>>
>>>> Thanks for all!!!!
>>>> Renata
>>>>
>>>> 2009/3/28 Renata Andreatti >>>> >
>>>>
>>>> Hi! Do you remember me?
>>>>
>>>> I think that like one month ago I have a problem... and this
>>>> problem is still here!
>>>> Sorry... I stopped to answer the emails because I have other
>>>> problem, more urgently, and I have to pause the help project. But
>>>> now, I'm back... and I still have the same problem: translate the
>>>> javahelp.
>>>>
>>>> I'll try to continue at the point I stopped.
>>>>
>>>> I tried to compile a separate jar with the Constants_pt.java and
>>>> calll this jar before the jar of my application. But probably I
>>>> make mistakes because the texts are in English yet!
>>>>
>>>> So, Roger sad me that probably I'm not putting the
>>>> Constants_pt.java in the correct directory. Well... I'll explain
>>>> what I'm doing and please, someone tell me what I'm doing wrong.
>>>>
>>>> First, I do a project named GzHelpIntl. This project have only one
>>>> package: javax.help.resources, and inside this package, only one
>>>> class: Constants_pt.java. I use the Eclipse IDE, so the
>>>> Constants_pt.class is gerate at the same directory. After that, I
>>>> jarred this little project, and now I have the GzHelpIntl.jar.
>>>>
>>>> Second, I do a test project named TesteHelp. In this project I
>>>> have all the files necessary to my help: html, xml, hs, jhm ... In
>>>> this project I call the JavaHelp too. After that, I jarred this
>>>> project, and now I have my TesteHelp.jar.
>>>>
>>>> So, I call my application like that:
>>>>
>>>> java -cp gzhelpintl.jar -jar testehelp.jar
>>>>
>>>> And no translate!
>>>>
>>>> Here I have my sources for download:
>>>> http://www.gznet.com.br/boo/javahelp/GzHelpIntl.zip
>>>> http://www.gznet.com.br/boo/javahelp/TesteHelp.zip
>>>>
>>>> Somebody could help me again please?
>>>>
>>>>
>>>> Thanks a lot!
>>>> Renata
>>>>
>>>>
>>>> 2009/2/2 Roger Brinkley >>>> >
>>>>
>>>> that's not my point when you compile it, it has to be in a
>>>> directory called javax/help/resources.
>>>>
>>>> Binky
>>>>
>>>> Renata Andreatti wrote:
>>>>
>>>> Yes, it is at /javax/help/resources, look my
>>>> Constants_pt.java (look the package):
>>>>
>>>>
>>>> package javax.help.resources;
>>>>
>>>> import java.util.ListResourceBundle;
>>>>
>>>> /**
>>>> * Constants used for localizing JavaHelp.
>>>> *
>>>> * These are in the form of key, value.
>>>> * Translators take care to only translate the values.
>>>> */
>>>>
>>>> public class Constants_pt extends ListResourceBundle {
>>>> /**
>>>> * Overrides ListResourceBundle.
>>>> */
>>>> public Object[][] getContents() {
>>>> return new Object[][] {
>>>>
>>>> // Constant strings and patterns
>>>> { "helpset.wrongPublicID", "PublicID {0}
>>>> desconhecido"},
>>>> { "helpset.wrongTitle", "Tentativa de mudar
>>>> o título para {0} quando já possue o valor {1}."},
>>>> { "helpset.wrongHomeID", "Tentativa de
>>>> mudar o homeID para {0} quando já possue o valor {1}."},
>>>> { "helpset.subHelpSetTrouble", "Problemas
>>>> ao criar subhelpset: {0}."},
>>>> { "helpset.malformedURL", "URL mal
>>>> informada: {0}."},
>>>> { "helpset.incorrectURL", "URL incorreta:
>>>> {0}."},
>>>> { "helpset.wrongText", "{0} não pode conter
>>>> o texto {1}."},
>>>> { "helpset.wrongTopLevel", "{0} não pode
>>>> ser uma tag de nível alto."},
>>>> { "helpset.wrongParent", "O valor passado
>>>> para a tag {0} não pode ser {1}."},
>>>> { "helpset.unbalanced", "Tag {0}
>>>> desbalanceada."},
>>>> { "helpset.wrongLocale", "Aviso: xml:
>>>> atributo lang {0} conflitante com o default {1} e com o
>>>> default {2}"},
>>>> { "helpset.unknownVersion", "Versão {0}
>>>> desconhecida."},
>>>>
>>>> // IndexView messages
>>>> { "index.invalidIndexFormat", "Aviso:
>>>> Formato inválido de índice"},
>>>> { "index.unknownVersion", "Versão {0}
>>>> desconhecida."},
>>>>
>>>> // TOCView messages
>>>> { "toc.wrongPublicID", "PublicID {0}
>>>> desconhecido"},
>>>> { "toc.invalidTOCFormat", "Aviso: Formato
>>>> inválido de TOC"},
>>>> { "toc.unknownVersion", "Versão {0}
>>>> desconhecida."},
>>>>
>>>> // FavoritesView messages
>>>> { "favorites.invalidFavoritesFormat",
>>>> "Aviso: Formato inválido de favoritos"},
>>>> { "favorites.unknownVersion", "Versão {0}
>>>> desconhecida."},
>>>>
>>>> // Map messages
>>>> { "map.wrongPublicID", "PublicID {0}
>>>> desconhecido"},
>>>> { "map.invalidMapFormat", "Aviso: Formato
>>>> inválido de mapa"},
>>>> { "map.unknownVersion", "Versão {0}
>>>> desconhecida."},
>>>>
>>>> // GUI components
>>>> // Labels
>>>> { "index.findLabel", "Procurar: "},
>>>>
>>>> { "search.findLabel", "Procurar: "},
>>>> { "search.hitDesc", "Número de ocorrências
>>>> no documento"},
>>>> { "search.qualityDesc", "Valor de
>>>> penalidade baixa no documento" },
>>>> { "search.high", "Alta"},
>>>> { "search.midhigh", "Média alta"},
>>>> { "search.mid", "Média"},
>>>> { "search.midlow", "Média baixa"},
>>>> { "search.low", "Baixa"},
>>>>
>>>> { "favorites.add", "Adicionar"},
>>>> { "favorites.remove", "Remover"},
>>>> { "favorites.folder", "Nova pasta"},
>>>> { "favorites.name
>>>> ", "Nome"},
>>>>
>>>> { "favorites.cut", "Recortar"},
>>>> { "favorites.paste", "Colar"},
>>>> { "favorites.copy" , "Copiar"},
>>>>
>>>> { "history.homePage", "Página inicial"},
>>>> { "history.unknownTitle", " >>>> página desconhecido>"},
>>>>
>>>> // ToolTips for Actions
>>>> { "tooltip.BackAction", "Página anterior"},
>>>> { "tooltip.ForwardAction", "Próxima página"},
>>>> { "tooltip.PrintAction", "Imprimir"},
>>>> { "tooltip.PrintSetupAction", "Configurar
>>>> página"},
>>>> { "tooltip.ReloadAction", "Atualizar"},
>>>> { "tooltip.FavoritesAction", "Adicionar à
>>>> favoritos"},
>>>> { "tooltip.HomeAction", "Página inicial"},
>>>>
>>>> // Accessibility names
>>>> { "access.BackAction", "Página anterior"},
>>>> { "access.ForwardAction", "Próxima página"},
>>>> { "access.HistoryAction", "Histórico"},
>>>> { "access.PrintAction", "Imprimir"},
>>>> { "access.PrintSetupAction", "Configurar
>>>> página"},
>>>> { "access.ReloadAction", "Atualizar"},
>>>> { "access.HomeAction", "Página inicial"},
>>>> { "access.FavoritesAction", "Adicionar à
>>>> favoritos"},
>>>> { "access.contentViewer", "Visualizador"}
>>>>
>>>> };
>>>> }
>>>> }
>>>>
>>>>
>>>> 2009/2/2 Roger Brinkley >>>>
>>>> >>>> >>
>>>>
>>>>
>>>> Check your directory structure in GzHelpIntl. Make sure in
>>>> Constants_pt.java is in a directory something like
>>>> /javax/help/resources (I think it's resources...) which
>>>> corresponds to the package name.
>>>>
>>>> Binky
>>>>
>>>> Renata Andreatti wrote:
>>>>
>>>> And how I do this?
>>>>
>>>> I try like this:
>>>>
>>>> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>>>>
>>>> But I still have the problem....
>>>>
>>>> Thanks
>>>> Renata
>>>>
>>>> 2009/2/2 Roger Brinkley >>>>
>>>> >>>> >>
>>>>
>>>>
>>>> Renata Andreatti wrote:
>>>>
>>>> Hello!
>>>>
>>>> People, I still have the problem.
>>>> I think I do everything like David said,
>>>> but I isn't work!
>>>>
>>>> I do like this:
>>>>
>>>> First, I create a Project named GzHelpIntl.
>>>> So, I create
>>>> the package javax.help.resources and put my
>>>> Constants_pt.java in there.
>>>> After this, I create the GzHelpIntl.jar.
>>>>
>>>> So, I create the jar of my main project
>>>> named MercoFlex.jar.
>>>>
>>>> Finally, I run my project:
>>>>
>>>> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>>>>
>>>> But my help is still in English! Where is
>>>> the mistake?
>>>>
>>>> Sorry for my insistence, but only you are
>>>> helping me.
>>>>
>>>> Thanks a lot!!!
>>>>
>>>> Renata
>>>>
>>>>
>>>>
>>>> 2009/1/29 Renata Andreatti
>>>>
>>>> >>>> >
>>>> >>>>
>>>> >>>> >>>
>>>>
>>>>
>>>>
>>>> Ok... now I understand. :o)
>>>>
>>>> I'll try to do like David explain before.
>>>>
>>>> When I'll have finished, I send other
>>>> e-mail.
>>>>
>>>> Thanks for now,
>>>> Renata
>>>>
>>>> 2009/1/28 David Cagle
>>>>
>>>> >>>> >
>>>> >>>>
>>>> >>>> >>>
>>>>
>>>>
>>>> Yes Nicolas I believe you are
>>>> correct. We did
>>>> this trick with
>>>> the 1.1.3 versions of jh.jar which
>>>> were not
>>>> signed. We have
>>>> since abandoned this approach with
>>>> 2.0* versions
>>>> because they
>>>> are signed. I should have mentioned
>>>> that, sorry
>>>> about that.
>>>> There might be some ways around it
>>>> but I don't
>>>> think even
>>>> signing the new translated Jar will
>>>> do the trick
>>>> since the
>>>> certificates are different.
>>>>
>>>> -----Original Message-----
>>>> From: Discussion list of JavaHelp
>>>>
>>>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>>
>>>> >>>>
>>>> >>>> >>] On Behalf Of
>>>> Nicolas
>>>> Van Cleemput
>>>> Sent: Tuesday, January 27, 2009 3:58 PM
>>>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>>
>>>> >>>>
>>>> >>>> >>
>>>> Subject: Re: [JAVAHELP] Translate
>>>> JavaHelp to
>>>> Portuguese
>>>>
>>>> We tried to do it this way, but
>>>> there was a
>>>> problem because the
>>>> translated class and the original
>>>> classes are in
>>>> the same
>>>> package. The
>>>> original classes however are in a
>>>> signed jars, and
>>>> therefore the
>>>> classes in our jar would not load.
>>>>
>>>> Citeren Roger Brinkley
>>>>
>>>> >>>> >
>>>> >>>>
>>>> >>>> >>>:
>>>>
>>>>
>>>> > That sounds about right.
>>>> >
>>>> > Binky
>>>> >
>>>> > David Cagle wrote:
>>>> >>
>>>> >> Renata, we did something similar
>>>> a couple of
>>>> years ago. I
>>>> don't
>>>> >> think you can add to jh.jar for
>>>> licensing
>>>> reasons. So what
>>>> we did
>>>> >> was create a separate jar that
>>>> had our
>>>> translations in it. And
>>>> >> when the application starts up,
>>>> we add our new
>>>> jar to the
>>>> classpath.
>>>> >>
>>>> >> Here is a simplified example of
>>>> what we did...
>>>> >>
>>>> >> - First, we took
>>>> *Constants.java* and
>>>> translated
>>>> it...be
>>>> >> sure to keep the property names
>>>> the same!
>>>> >>
>>>> >> - You also want to make
>>>> sure your new
>>>> *Constants_pt.java*
>>>> >> class is in the same package as
>>>> the original
>>>> Constants*.java
>>>> >> classes in jh.jar. For example,
>>>> the Constants*
>>>> classes live at
>>>> >> "*javax/help/resources*" in
>>>> jh.jar, you want
>>>> your new class
>>>> to live
>>>> >> in the same package name.
>>>> >>
>>>> >> - Say our new Constant
>>>> translation is
>>>> added to a
>>>> Jar named
>>>> >> '*javahelp.translations.jar*'
>>>> >>
>>>> >> - The classpath for our
>>>> application
>>>> would look
>>>> something
>>>> >> like this: *java --cp
>>>>
>>>> "jh.jar;javahelp.translations.jar;OurApp.jar"
>>>> >> --jar OurApp*
>>>> >>
>>>> >> If I remember correctly, that is
>>>> all we did.
>>>> >>
>>>> >> Furthermore, we have also
>>>> contributed our
>>>> translations to the
>>>> >> JavaHelp Open Source project at:
>>>> https://javahelp.dev.java.net/.
>>>> >> But I don't know where that
>>>> project stands at
>>>> the moment.
>>>> >>
>>>> >> Good luck!
>>>> >>
>>>> >> *From:* Discussion list of JavaHelp
>>>> >>
>>>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>>
>>>> >>>>
>>>> >>>> >>] *On Behalf Of
>>>> *Renata
>>>> >> Andreatti
>>>> >> *Sent:* Tuesday, January 27, 2009
>>>> 12:58 PM
>>>> >> *To:*
>>>> JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>>
>>>> >>>>
>>>> >>>> >>
>>>> >> *Subject:* [JAVAHELP] Translate
>>>> JavaHelp to
>>>> Portuguese
>>>> >>
>>>> >> Hi people!
>>>> >>
>>>> >> For many days I search how to
>>>> translate the
>>>> JavaHelp to
>>>> Portuguese
>>>> >> (and possible other languages).
>>>> >>
>>>> >> After many search, I fond this
>>>> forum and some
>>>> explanation.
>>>> >>
>>>> >> Now I know that I have to
>>>> translate the class
>>>> Constants.java and
>>>> >> name it as Constants_pt.java. So
>>>> I recompile
>>>> the class.
>>>> >>
>>>> >> After that, I jarred the
>>>> Constants_pt.class in
>>>> jh.jar. But
>>>> until
>>>> >> now, it doesn't work!
>>>> >>
>>>> >> If I translate the Constants.java
>>>> and put the new
>>>> Constants.class
>>>> >> in the jh.jar, it works! But I
>>>> cannot do this,
>>>> because I
>>>> need other
>>>> >> languages too...
>>>> >>
>>>> >> Please, how I do to my
>>>> application run the
>>>> Constants_pt.class create by me?
>>>> >>
>>>> >> Does any other way to translate
>>>> my JavaHelp?
>>>> Please... I
>>>> need help.
>>>> >>
>>>> >>
>>>> >> Thanks a lot!
>>>> >> Renata
>>>> >>
>>>> >> PS: Sorry, my English isn't so good.
>>>> >>
>>>> >>
>>>>
>>>> ******************************************************************************** You may leave the list at any
>>>> time
>>>> by sending
>>>> message with no
>>>> subject and "SIGNOFF
>>>> JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>> >>>>
>>>> >>>> >>. Archives
>>>>
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> >>
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>> >>
>>>> >>
>>>>
>>>> ******************************************************************************** You may leave the list at any
>>>> time
>>>> by sending
>>>> message with no
>>>> subject and "SIGNOFF
>>>> JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>> >>>>
>>>> >>>> >>. Archives
>>>>
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> >>
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>> >>
>>>> >
>>>> >
>>>>
>>>> ********************************************************************************
>>>>>
>>>> > You may leave the list at any time
>>>> by sending
>>>> message with
>>>> no subject and
>>>> > "SIGNOFF JAVAHELP-INTEREST" in the
>>>> body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>> >>>>
>>>> >>>> >>. Archives
>>>>
>>>> > are available at
>>>> >
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> > Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>> ******************************************************************************** You may leave the list at any
>>>> time
>>>> by sending
>>>> message with no
>>>> subject and
>>>> "SIGNOFF JAVAHELP-INTEREST" in the
>>>> body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>> >>>>
>>>> >>>> >>. Archives
>>>>
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>> ******************************************************************************** You may leave the list at any
>>>> time
>>>> by sending
>>>> message with no
>>>> subject and
>>>> "SIGNOFF JAVAHELP-INTEREST" in the
>>>> body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >
>>>> >>>>
>>>> >>>> >>. Archives
>>>>
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>>
>>>>
>>>> -- Renata Fernanda Andreatti
>>>>
>>>>
>>>>
>>>>
>>>> -- Renata Fernanda Andreatti
>>>>
>>>> ******************************************************************************** You may leave the list at any time
>>>> by
>>>> sending message
>>>> with no subject and "SIGNOFF
>>>> JAVAHELP-INTEREST" in the
>>>> body to LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >. Archives are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>> I think it has to do with the classpath. Make
>>>> sure your file
>>>> is ahead of the jh.jar in the classpath.
>>>>
>>>> binky
>>>>
>>>>
>>>> ******************************************************************************** You may leave the list at any time by
>>>> sending
>>>> message with no
>>>> subject and
>>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >. Archives
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>>
>>>>
>>>> -- Renata Fernanda Andreatti
>>>>
>>>> ******************************************************************************** You may leave the list at any time by
>>>> sending
>>>> message with no
>>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>>
>>>> >>>> >. Archives
>>>> are available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>> ******************************************************************************** You may leave the list at any time by sending
>>>> message
>>>> with no
>>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM
>>>> >>>> >. Archives are
>>>> available at
>>>>
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>>
>>>>
>>>> -- Renata Fernanda Andreatti
>>>>
>>>> ******************************************************************************** You may leave the list at any time by sending message
>>>> with
>>>> no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM .
>>>> Archives are available at
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>>
>>>> ******************************************************************************** You may leave the list at any time by sending message with
>>>> no
>>>> subject and
>>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>> LISTSERV@JAVA.SUN.COM . Archives
>>>> are available at
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>>
>>>>
>>>>
>>>> -- Renata Fernanda Andreatti
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Renata Fernanda Andreatti
>>>> ******************************************************************************** You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at
>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>
>>>
>>> ******************************************************************************** You may leave the list at any time by sending message with no subject
>>> and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
>>> are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

--
Nico Van Cleemput
Applied Mathematics and Computer Science
Ghent University
Krijgslaan 281 - S9
B - 9000 Ghent
http://users.ugent.be/~nvcleemp

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Roger Brinkley

Interesting but I believe if the second jar wasn't signed it would work.
Could be a bug in the JDK as well.

Binky

Nicolas Van Cleemput wrote:
> That's a point with which I completely agree. I was just pointing out
> that the problems are just due to the signed jars, and thus the
> solution must be looked for there as well.
>
> Nico
>
> Citeren Roger Brinkley :
>
>> Yes but renaming it Constants.java is wrong, dead wrong.
>>
>> Binky
>>
>> Nicolas Van Cleemput wrote:
>>> No, I and some other people have already explained the problem: a
>>> package can not be distributed across two jars which are
>>> differently signed. Since the JavaHelp jar is signed by Sun, you
>>> can't use your own Constants_xx class because the classloader won't
>>> load it, unless you extract the files from the JH jar and
>>> repackage the whole lot.
>>>
>>> Kind regards,
>>> Nico Van Cleemput
>>>
>>> Citeren Roger Brinkley :
>>>
>>>> At the expense of removing all of the default variables. My guess is
>>>> your not setting the local variable properly.
>>>>
>>>> Binky
>>>>
>>>> Renata Andreatti wrote:
>>>>> Hi people!
>>>>>
>>>>> I'm here only to say that I solve the problem! (thanks God!)
>>>>>
>>>>> I talk with a boy at a Java forum and I notice what I's doing wrog.
>>>>>
>>>>> The only problem was the name of my class: Constants_pt.java. The
>>>>> JavaHelp didn't understand this class, because it hasn't this
>>>>> class.
>>>>> I do everything equal (like I tell at the last email), but now I
>>>>> rename my Constants_pt.java to Constants.java. And now It works!!!!
>>>>>
>>>>> I use my i18n tags in my new class Constants.java and everything
>>>>> is tranlated.
>>>>>
>>>>> Thanks for all!!!!
>>>>> Renata
>>>>>
>>>>> 2009/3/28 Renata Andreatti >>>>> >
>>>>>
>>>>> Hi! Do you remember me?
>>>>>
>>>>> I think that like one month ago I have a problem... and this
>>>>> problem is still here!
>>>>> Sorry... I stopped to answer the emails because I have other
>>>>> problem, more urgently, and I have to pause the help project. But
>>>>> now, I'm back... and I still have the same problem: translate the
>>>>> javahelp.
>>>>>
>>>>> I'll try to continue at the point I stopped.
>>>>>
>>>>> I tried to compile a separate jar with the Constants_pt.java and
>>>>> calll this jar before the jar of my application. But probably I
>>>>> make mistakes because the texts are in English yet!
>>>>>
>>>>> So, Roger sad me that probably I'm not putting the
>>>>> Constants_pt.java in the correct directory. Well... I'll explain
>>>>> what I'm doing and please, someone tell me what I'm doing wrong.
>>>>>
>>>>> First, I do a project named GzHelpIntl. This project have only one
>>>>> package: javax.help.resources, and inside this package, only one
>>>>> class: Constants_pt.java. I use the Eclipse IDE, so the
>>>>> Constants_pt.class is gerate at the same directory. After that, I
>>>>> jarred this little project, and now I have the GzHelpIntl.jar.
>>>>>
>>>>> Second, I do a test project named TesteHelp. In this project I
>>>>> have all the files necessary to my help: html, xml, hs, jhm ... In
>>>>> this project I call the JavaHelp too. After that, I jarred this
>>>>> project, and now I have my TesteHelp.jar.
>>>>>
>>>>> So, I call my application like that:
>>>>>
>>>>> java -cp gzhelpintl.jar -jar testehelp.jar
>>>>>
>>>>> And no translate!
>>>>>
>>>>> Here I have my sources for download:
>>>>> http://www.gznet.com.br/boo/javahelp/GzHelpIntl.zip
>>>>> http://www.gznet.com.br/boo/javahelp/TesteHelp.zip
>>>>>
>>>>> Somebody could help me again please?
>>>>>
>>>>>
>>>>> Thanks a lot!
>>>>> Renata
>>>>>
>>>>>
>>>>> 2009/2/2 Roger Brinkley >>>>> >
>>>>>
>>>>> that's not my point when you compile it, it has to be in a
>>>>> directory called javax/help/resources.
>>>>>
>>>>> Binky
>>>>>
>>>>> Renata Andreatti wrote:
>>>>>
>>>>> Yes, it is at /javax/help/resources, look my
>>>>> Constants_pt.java (look the package):
>>>>>
>>>>>
>>>>> package javax.help.resources;
>>>>>
>>>>> import java.util.ListResourceBundle;
>>>>>
>>>>> /**
>>>>> * Constants used for localizing JavaHelp.
>>>>> *
>>>>> * These are in the form of key, value.
>>>>> * Translators take care to only translate the values.
>>>>> */
>>>>>
>>>>> public class Constants_pt extends ListResourceBundle {
>>>>> /**
>>>>> * Overrides ListResourceBundle.
>>>>> */
>>>>> public Object[][] getContents() {
>>>>> return new Object[][] {
>>>>>
>>>>> // Constant strings and patterns
>>>>> { "helpset.wrongPublicID", "PublicID {0}
>>>>> desconhecido"},
>>>>> { "helpset.wrongTitle", "Tentativa de mudar
>>>>> o título para {0} quando já possue o valor {1}."},
>>>>> { "helpset.wrongHomeID", "Tentativa de
>>>>> mudar o homeID para {0} quando já possue o valor {1}."},
>>>>> { "helpset.subHelpSetTrouble", "Problemas
>>>>> ao criar subhelpset: {0}."},
>>>>> { "helpset.malformedURL", "URL mal
>>>>> informada: {0}."},
>>>>> { "helpset.incorrectURL", "URL incorreta:
>>>>> {0}."},
>>>>> { "helpset.wrongText", "{0} não pode conter
>>>>> o texto {1}."},
>>>>> { "helpset.wrongTopLevel", "{0} não pode
>>>>> ser uma tag de nível alto."},
>>>>> { "helpset.wrongParent", "O valor passado
>>>>> para a tag {0} não pode ser {1}."},
>>>>> { "helpset.unbalanced", "Tag {0}
>>>>> desbalanceada."},
>>>>> { "helpset.wrongLocale", "Aviso: xml:
>>>>> atributo lang {0} conflitante com o default {1} e com o
>>>>> default {2}"},
>>>>> { "helpset.unknownVersion", "Versão {0}
>>>>> desconhecida."},
>>>>>
>>>>> // IndexView messages
>>>>> { "index.invalidIndexFormat", "Aviso:
>>>>> Formato inválido de índice"},
>>>>> { "index.unknownVersion", "Versão {0}
>>>>> desconhecida."},
>>>>>
>>>>> // TOCView messages
>>>>> { "toc.wrongPublicID", "PublicID {0}
>>>>> desconhecido"},
>>>>> { "toc.invalidTOCFormat", "Aviso: Formato
>>>>> inválido de TOC"},
>>>>> { "toc.unknownVersion", "Versão {0}
>>>>> desconhecida."},
>>>>>
>>>>> // FavoritesView messages
>>>>> { "favorites.invalidFavoritesFormat",
>>>>> "Aviso: Formato inválido de favoritos"},
>>>>> { "favorites.unknownVersion", "Versão {0}
>>>>> desconhecida."},
>>>>>
>>>>> // Map messages
>>>>> { "map.wrongPublicID", "PublicID {0}
>>>>> desconhecido"},
>>>>> { "map.invalidMapFormat", "Aviso: Formato
>>>>> inválido de mapa"},
>>>>> { "map.unknownVersion", "Versão {0}
>>>>> desconhecida."},
>>>>>
>>>>> // GUI components
>>>>> // Labels
>>>>> { "index.findLabel", "Procurar: "},
>>>>>
>>>>> { "search.findLabel", "Procurar: "},
>>>>> { "search.hitDesc", "Número de ocorrências
>>>>> no documento"},
>>>>> { "search.qualityDesc", "Valor de
>>>>> penalidade baixa no documento" },
>>>>> { "search.high", "Alta"},
>>>>> { "search.midhigh", "Média alta"},
>>>>> { "search.mid", "Média"},
>>>>> { "search.midlow", "Média baixa"},
>>>>> { "search.low", "Baixa"},
>>>>>
>>>>> { "favorites.add", "Adicionar"},
>>>>> { "favorites.remove", "Remover"},
>>>>> { "favorites.folder", "Nova pasta"},
>>>>> { "favorites.name
>>>>> ", "Nome"},
>>>>>
>>>>> { "favorites.cut", "Recortar"},
>>>>> { "favorites.paste", "Colar"},
>>>>> { "favorites.copy" , "Copiar"},
>>>>>
>>>>> { "history.homePage", "Página inicial"},
>>>>> { "history.unknownTitle", " >>>>> página desconhecido>"},
>>>>>
>>>>> // ToolTips for Actions
>>>>> { "tooltip.BackAction", "Página anterior"},
>>>>> { "tooltip.ForwardAction", "Próxima
>>>>> página"},
>>>>> { "tooltip.PrintAction", "Imprimir"},
>>>>> { "tooltip.PrintSetupAction", "Configurar
>>>>> página"},
>>>>> { "tooltip.ReloadAction", "Atualizar"},
>>>>> { "tooltip.FavoritesAction", "Adicionar à
>>>>> favoritos"},
>>>>> { "tooltip.HomeAction", "Página inicial"},
>>>>>
>>>>> // Accessibility names
>>>>> { "access.BackAction", "Página anterior"},
>>>>> { "access.ForwardAction", "Próxima página"},
>>>>> { "access.HistoryAction", "Histórico"},
>>>>> { "access.PrintAction", "Imprimir"},
>>>>> { "access.PrintSetupAction", "Configurar
>>>>> página"},
>>>>> { "access.ReloadAction", "Atualizar"},
>>>>> { "access.HomeAction", "Página inicial"},
>>>>> { "access.FavoritesAction", "Adicionar à
>>>>> favoritos"},
>>>>> { "access.contentViewer", "Visualizador"}
>>>>>
>>>>> };
>>>>> }
>>>>> }
>>>>>
>>>>>
>>>>> 2009/2/2 Roger Brinkley >>>>>
>>>>> >>>>> >>
>>>>>
>>>>>
>>>>> Check your directory structure in GzHelpIntl. Make
>>>>> sure in
>>>>> Constants_pt.java is in a directory something like
>>>>> /javax/help/resources (I think it's resources...) which
>>>>> corresponds to the package name.
>>>>>
>>>>> Binky
>>>>>
>>>>> Renata Andreatti wrote:
>>>>>
>>>>> And how I do this?
>>>>>
>>>>> I try like this:
>>>>>
>>>>> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>>>>>
>>>>> But I still have the problem....
>>>>>
>>>>> Thanks
>>>>> Renata
>>>>>
>>>>> 2009/2/2 Roger Brinkley >>>>>
>>>>> >>>>> >>
>>>>>
>>>>>
>>>>> Renata Andreatti wrote:
>>>>>
>>>>> Hello!
>>>>>
>>>>> People, I still have the problem.
>>>>> I think I do everything like David said,
>>>>> but I isn't work!
>>>>>
>>>>> I do like this:
>>>>>
>>>>> First, I create a Project named GzHelpIntl.
>>>>> So, I create
>>>>> the package javax.help.resources and put my
>>>>> Constants_pt.java in there.
>>>>> After this, I create the GzHelpIntl.jar.
>>>>>
>>>>> So, I create the jar of my main project
>>>>> named MercoFlex.jar.
>>>>>
>>>>> Finally, I run my project:
>>>>>
>>>>> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>>>>>
>>>>> But my help is still in English! Where is
>>>>> the mistake?
>>>>>
>>>>> Sorry for my insistence, but only you are
>>>>> helping me.
>>>>>
>>>>> Thanks a lot!!!
>>>>>
>>>>> Renata
>>>>>
>>>>>
>>>>>
>>>>> 2009/1/29 Renata Andreatti
>>>>>
>>>>> >>>>> >
>>>>> >>>>>
>>>>> >>>>> >>>
>>>>>
>>>>>
>>>>>
>>>>> Ok... now I understand. :o)
>>>>>
>>>>> I'll try to do like David explain before.
>>>>>
>>>>> When I'll have finished, I send other
>>>>> e-mail.
>>>>>
>>>>> Thanks for now,
>>>>> Renata
>>>>>
>>>>> 2009/1/28 David Cagle
>>>>>
>>>>> >>>>> >
>>>>> >>>>>
>>>>> >>>>> >>>
>>>>>
>>>>>
>>>>> Yes Nicolas I believe you are
>>>>> correct. We did
>>>>> this trick with
>>>>> the 1.1.3 versions of jh.jar which
>>>>> were not
>>>>> signed. We have
>>>>> since abandoned this approach with
>>>>> 2.0* versions
>>>>> because they
>>>>> are signed. I should have mentioned
>>>>> that, sorry
>>>>> about that.
>>>>> There might be some ways around it
>>>>> but I don't
>>>>> think even
>>>>> signing the new translated Jar will
>>>>> do the trick
>>>>> since the
>>>>> certificates are different.
>>>>>
>>>>> -----Original Message-----
>>>>> From: Discussion list of JavaHelp
>>>>>
>>>>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >
>>>>>
>>>>> >>>>>
>>>>> >>>>> >>] On Behalf Of
>>>>> Nicolas
>>>>> Van Cleemput
>>>>> Sent: Tuesday, January 27, 2009
>>>>> 3:58 PM
>>>>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >
>>>>>
>>>>> >>>>>
>>>>> >>>>> >>
>>>>> Subject: Re: [JAVAHELP] Translate
>>>>> JavaHelp to
>>>>> Portuguese
>>>>>
>>>>> We tried to do it this way, but
>>>>> there was a
>>>>> problem because the
>>>>> translated class and the original
>>>>> classes are in
>>>>> the same
>>>>> package. The
>>>>> original classes however are in a
>>>>> signed jars, and
>>>>> therefore the
>>>>> classes in our jar would not load.
>>>>>
>>>>> Citeren Roger Brinkley
>>>>>
>>>>> >>>>> >
>>>>> >>>>>
>>>>> >>>>> >>>:
>>>>>
>>>>>
>>>>> > That sounds about right.
>>>>> >
>>>>> > Binky
>>>>> >
>>>>> > David Cagle wrote:
>>>>> >>
>>>>> >> Renata, we did something similar
>>>>> a couple of
>>>>> years ago. I
>>>>> don't
>>>>> >> think you can add to jh.jar for
>>>>> licensing
>>>>> reasons. So what
>>>>> we did
>>>>> >> was create a separate jar that
>>>>> had our
>>>>> translations in it. And
>>>>> >> when the application starts up,
>>>>> we add our new
>>>>> jar to the
>>>>> classpath.
>>>>> >>
>>>>> >> Here is a simplified example of
>>>>> what we did...
>>>>> >>
>>>>> >> - First, we took
>>>>> *Constants.java* and
>>>>> translated
>>>>> it...be
>>>>> >> sure to keep the property names
>>>>> the same!
>>>>> >>
>>>>> >> - You also want to make
>>>>> sure your new
>>>>> *Constants_pt.java*
>>>>> >> class is in the same package as
>>>>> the original
>>>>> Constants*.java
>>>>> >> classes in jh.jar. For example,
>>>>> the Constants*
>>>>> classes live at
>>>>> >> "*javax/help/resources*" in
>>>>> jh.jar, you want
>>>>> your new class
>>>>> to live
>>>>> >> in the same package name.
>>>>> >>
>>>>> >> - Say our new Constant
>>>>> translation is
>>>>> added to a
>>>>> Jar named
>>>>> >> '*javahelp.translations.jar*'
>>>>> >>
>>>>> >> - The classpath for our
>>>>> application
>>>>> would look
>>>>> something
>>>>> >> like this: *java --cp
>>>>>
>>>>> "jh.jar;javahelp.translations.jar;OurApp.jar"
>>>>> >> --jar OurApp*
>>>>> >>
>>>>> >> If I remember correctly, that is
>>>>> all we did.
>>>>> >>
>>>>> >> Furthermore, we have also
>>>>> contributed our
>>>>> translations to the
>>>>> >> JavaHelp Open Source project at:
>>>>> https://javahelp.dev.java.net/.
>>>>> >> But I don't know where that
>>>>> project stands at
>>>>> the moment.
>>>>> >>
>>>>> >> Good luck!
>>>>> >>
>>>>> >> *From:* Discussion list of
>>>>> JavaHelp
>>>>> >>
>>>>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >
>>>>>
>>>>> >>>>>
>>>>> >>>>> >>] *On
>>>>> Behalf Of
>>>>> *Renata
>>>>> >> Andreatti
>>>>> >> *Sent:* Tuesday, January 27, 2009
>>>>> 12:58 PM
>>>>> >> *To:*
>>>>> JAVAHELP-INTEREST@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >
>>>>>
>>>>> >>>>>
>>>>> >>>>> >>
>>>>> >> *Subject:* [JAVAHELP] Translate
>>>>> JavaHelp to
>>>>> Portuguese
>>>>> >>
>>>>> >> Hi people!
>>>>> >>
>>>>> >> For many days I search how to
>>>>> translate the
>>>>> JavaHelp to
>>>>> Portuguese
>>>>> >> (and possible other languages).
>>>>> >>
>>>>> >> After many search, I fond this
>>>>> forum and some
>>>>> explanation.
>>>>> >>
>>>>> >> Now I know that I have to
>>>>> translate the class
>>>>> Constants.java and
>>>>> >> name it as Constants_pt.java. So
>>>>> I recompile
>>>>> the class.
>>>>> >>
>>>>> >> After that, I jarred the
>>>>> Constants_pt.class in
>>>>> jh.jar. But
>>>>> until
>>>>> >> now, it doesn't work!
>>>>> >>
>>>>> >> If I translate the Constants.java
>>>>> and put the new
>>>>> Constants.class
>>>>> >> in the jh.jar, it works! But I
>>>>> cannot do this,
>>>>> because I
>>>>> need other
>>>>> >> languages too...
>>>>> >>
>>>>> >> Please, how I do to my
>>>>> application run the
>>>>> Constants_pt.class create by me?
>>>>> >>
>>>>> >> Does any other way to translate
>>>>> my JavaHelp?
>>>>> Please... I
>>>>> need help.
>>>>> >>
>>>>> >>
>>>>> >> Thanks a lot!
>>>>> >> Renata
>>>>> >>
>>>>> >> PS: Sorry, my English isn't so
>>>>> good.
>>>>> >>
>>>>> >>
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time
>>>>> by sending
>>>>> message with no
>>>>> subject and "SIGNOFF
>>>>> JAVAHELP-INTEREST" in the body to
>>>>> LISTSERV@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >
>>>>> >>>>>
>>>>> >>>>> >>. Archives
>>>>>
>>>>> are available at
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> >>
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>> >>
>>>>> >>
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time
>>>>> by sending
>>>>> message with no
>>>>> subject and "SIGNOFF
>>>>> JAVAHELP-INTEREST" in the body to
>>>>> LISTSERV@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >
>>>>> >>>>>
>>>>> >>>>> >>. Archives
>>>>>
>>>>> are available at
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> >>
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>> >>
>>>>> >
>>>>> >
>>>>>
>>>>> ********************************************************************************
>>>>>
>>>>>>
>>>>> > You may leave the list at any time
>>>>> by sending
>>>>> message with
>>>>> no subject and
>>>>> > "SIGNOFF JAVAHELP-INTEREST" in the
>>>>> body to
>>>>> LISTSERV@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >
>>>>> >>>>>
>>>>> >>>>> >>. Archives
>>>>>
>>>>> > are available at
>>>>> >
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> > Submit bug reports at
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time
>>>>> by sending
>>>>> message with no
>>>>> subject and
>>>>> "SIGNOFF JAVAHELP-INTEREST" in the
>>>>> body to
>>>>> LISTSERV@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >
>>>>> >>>>>
>>>>> >>>>> >>. Archives
>>>>>
>>>>> are available at
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time
>>>>> by sending
>>>>> message with no
>>>>> subject and
>>>>> "SIGNOFF JAVAHELP-INTEREST" in the
>>>>> body to
>>>>> LISTSERV@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >
>>>>> >>>>>
>>>>> >>>>> >>. Archives
>>>>>
>>>>> are available at
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- Renata Fernanda Andreatti
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- Renata Fernanda Andreatti
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time by
>>>>> sending message
>>>>> with no subject and "SIGNOFF
>>>>> JAVAHELP-INTEREST" in the
>>>>> body to LISTSERV@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >. Archives are
>>>>> available at
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>> I think it has to do with the classpath. Make
>>>>> sure your file
>>>>> is ahead of the jh.jar in the classpath.
>>>>>
>>>>> binky
>>>>>
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time by sending
>>>>> message with no
>>>>> subject and
>>>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>>> LISTSERV@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >. Archives
>>>>> are available at
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- Renata Fernanda Andreatti
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time by sending
>>>>> message with no
>>>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the
>>>>> body to
>>>>> LISTSERV@JAVA.SUN.COM
>>>>>
>>>>> >>>>> >. Archives
>>>>> are available at
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time by sending message
>>>>> with no
>>>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>>> LISTSERV@JAVA.SUN.COM
>>>>> >>>>> >. Archives are
>>>>> available at
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- Renata Fernanda Andreatti
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time by sending message with
>>>>> no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>>> LISTSERV@JAVA.SUN.COM .
>>>>> Archives are available at
>>>>>
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>>
>>>>>
>>>>> ********************************************************************************
>>>>> You may leave the list at any time by sending message with no
>>>>> subject and
>>>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>>> LISTSERV@JAVA.SUN.COM . Archives
>>>>> are available at
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- Renata Fernanda Andreatti
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Renata Fernanda Andreatti
>>>>> ********************************************************************************
>>>>> You may leave the list at any time by sending message with no
>>>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>>>> LISTSERV@JAVA.SUN.COM. Archives are available at
>>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>>>
>>>>
>>>> ********************************************************************************
>>>> You may leave the list at any time by sending message with no
>>>> subject and
>>>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>>>> Archives
>>>> are available at
>>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message with no subject
>> and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Renata Andreatti

So please don't fix this bug!

Well, I only create a pkg javax.help.resources into my project and put a
Constants.java there. My Constants.java is overwriting the JavaHelp
Constants.java.

I don't understand what is wrong....

2009/3/30 Roger Brinkley

> Interesting but I believe if the second jar wasn't signed it would work.
> Could be a bug in the JDK as well.
>
>
> Binky
>
>
--
Renata Fernanda Andreatti

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Renata Andreatti

Hi!

Oh, thanks for answer!!! And thanks for the private answer too! :D

I read that is not problem if I add my class in jh.jar. It isn't correct?

Tell me, when I run the javahelp in my application, what should I do? I'm
doing like this:

HelpBroker helpbroker = helpset.createHelpBroker("principal"); // at this
point, I have my object helpset created

helpbroker.setSize(new Dimension(800,600));
helpbroker.setLocation(new Point(0,0));
helpbroker.setFont(new Font("Arial",Font.PLAIN,12));
*helpbroker.setLocale(new Locale("pt","BR")); // HERE! I do this here, but
it doesn't work*

ActionListener al = new CSH.DisplayHelpFromSource(helpbroker);
CSH.setHelpIDString(botao, "visaogeral");
botao.addActionListener(al);

It always displayed in English, the default language. What is the problem?

Thanks!!!
Renata

2009/1/27 David Cagle

> Renata, we did something similar a couple of years ago. I don't think
> you can add to jh.jar for licensing reasons. So what we did was create a
> separate jar that had our translations in it. And when the application
> starts up, we add our new jar to the classpath.
>
>
>
> Here is a simplified example of what we did…
>
> - First, we took *Constants.java* and translated it…be sure to
> keep the property names the same!
>
> - You also want to make sure your new *Constants_pt.java* class
> is in the same package as the original Constants*.java classes in jh.jar.
> For example, the Constants* classes live at "*javax/help/resources*" in
> jh.jar, you want your new class to live in the same package name.
>
> - Say our new Constant translation is added to a Jar named '*
> javahelp.translations.jar*'
>
> - The classpath for our application would look something like
> this: *java –cp "jh.jar;javahelp.translations.jar;OurApp.jar" –jar OurApp*
>
>
>
> If I remember correctly, that is all we did.
>
>
>
> Furthermore, we have also contributed our translations to the JavaHelp Open
> Source project at: https://javahelp.dev.java.net/. But I don't know where
> that project stands at the moment.
>
>
>
> Good luck!
>
>
>
> *From:* Discussion list of JavaHelp [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]
> *On Behalf Of *Renata Andreatti
> *Sent:* Tuesday, January 27, 2009 12:58 PM
> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
>
>
>
>
> Hi people!
>
> For many days I search how to translate the JavaHelp to Portuguese (and
> possible other languages).
>
> After many search, I fond this forum and some explanation.
>
> Now I know that I have to translate the class Constants.java and name it as
> Constants_pt.java. So I recompile the class.
>
> After that, I jarred the Constants_pt.class in jh.jar. But until now, it
> doesn't work!
>
> If I translate the Constants.java and put the new Constants.class in the
> jh.jar, it works! But I cannot do this, because I need other languages
> too...
>
> Please, how I do to my application run the Constants_pt.class create by me?
>
> Does any other way to translate my JavaHelp? Please... I need help.
>
>
> Thanks a lot!
> Renata
>
> PS: Sorry, my English isn't so good.
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

--
Renata Fernanda Andreatti

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Renata Andreatti

Hi people!

For many days I search how to translate the JavaHelp to Portuguese (and
possible other languages).

After many search, I fond this forum and some explanation.

Now I know that I have to translate the class Constants.java and name it as
Constants_pt.java. So I recompile the class.

After that, I jarred the Constants_pt.class in jh.jar. But until now, it
doesn't work!

If I translate the Constants.java and put the new Constants.class in the
jh.jar, it works! But I cannot do this, because I need other languages
too...

Please, how I do to my application run the Constants_pt.class create by me?

Does any other way to translate my JavaHelp? Please... I need help.

Thanks a lot!
Renata

PS: Sorry, my English isn't so good.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

David Cagle

Renata, we did something similar a couple of years ago. I don't think you can add to jh.jar for licensing reasons. So what we did was create a separate jar that had our translations in it. And when the application starts up, we add our new jar to the classpath.

Here is a simplified example of what we did...

- First, we took Constants.java and translated it...be sure to keep the property names the same!

- You also want to make sure your new Constants_pt.java class is in the same package as the original Constants*.java classes in jh.jar. For example, the Constants* classes live at "javax/help/resources" in jh.jar, you want your new class to live in the same package name.

- Say our new Constant translation is added to a Jar named 'javahelp.translations.jar'

- The classpath for our application would look something like this: java -cp "jh.jar;javahelp.translations.jar;OurApp.jar" -jar OurApp

If I remember correctly, that is all we did.

Furthermore, we have also contributed our translations to the JavaHelp Open Source project at: https://javahelp.dev.java.net/. But I don't know where that project stands at the moment.

Good luck!

From: Discussion list of JavaHelp [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM] On Behalf Of Renata Andreatti
Sent: Tuesday, January 27, 2009 12:58 PM
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Subject: [JAVAHELP] Translate JavaHelp to Portuguese

Hi people!

For many days I search how to translate the JavaHelp to Portuguese (and possible other languages).

After many search, I fond this forum and some explanation.

Now I know that I have to translate the class Constants.java and name it as Constants_pt.java. So I recompile the class.

After that, I jarred the Constants_pt.class in jh.jar. But until now, it doesn't work!

If I translate the Constants.java and put the new Constants.class in the jh.jar, it works! But I cannot do this, because I need other languages too...

Please, how I do to my application run the Constants_pt.class create by me?

Does any other way to translate my JavaHelp? Please... I need help.

Thanks a lot!
Renata

PS: Sorry, my English isn't so good.
********************************************************************************

You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Roger Brinkley

That sounds about right.

Binky

David Cagle wrote:
>
> Renata, we did something similar a couple of years ago. I don't think
> you can add to jh.jar for licensing reasons. So what we did was
> create a separate jar that had our translations in it. And when the
> application starts up, we add our new jar to the classpath.
>
>
>
> Here is a simplified example of what we did...
>
> - First, we took *Constants.java* and translated it...be sure
> to keep the property names the same!
>
> - You also want to make sure your new *Constants_pt.java*
> class is in the same package as the original Constants*.java classes
> in jh.jar. For example, the Constants* classes live at
> "*javax/help/resources*" in jh.jar, you want your new class to live in
> the same package name.
>
> - Say our new Constant translation is added to a Jar named
> '*javahelp.translations.jar*'
>
> - The classpath for our application would look something like
> this: *java --cp "jh.jar;javahelp.translations.jar;OurApp.jar" --jar
> OurApp*
>
>
>
> If I remember correctly, that is all we did.
>
>
>
> Furthermore, we have also contributed our translations to the JavaHelp
> Open Source project at: https://javahelp.dev.java.net/. But I don't
> know where that project stands at the moment.
>
>
>
> Good luck!
>
>
>
> *From:* Discussion list of JavaHelp
> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM] *On Behalf Of *Renata Andreatti
> *Sent:* Tuesday, January 27, 2009 12:58 PM
> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
>
>
>
>
> Hi people!
>
> For many days I search how to translate the JavaHelp to Portuguese
> (and possible other languages).
>
> After many search, I fond this forum and some explanation.
>
> Now I know that I have to translate the class Constants.java and name
> it as Constants_pt.java. So I recompile the class.
>
> After that, I jarred the Constants_pt.class in jh.jar. But until now,
> it doesn't work!
>
> If I translate the Constants.java and put the new Constants.class in
> the jh.jar, it works! But I cannot do this, because I need other
> languages too...
>
> Please, how I do to my application run the Constants_pt.class create
> by me?
>
> Does any other way to translate my JavaHelp? Please... I need help.
>
>
> Thanks a lot!
> Renata
>
> PS: Sorry, my English isn't so good.
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject
> and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
> Archives are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit
> bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject
> and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
> Archives are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit
> bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Nicolas Van Cleemput

We tried to do it this way, but there was a problem because the
translated class and the original classes are in the same package. The
original classes however are in a signed jars, and therefore the
classes in our jar would not load.

Citeren Roger Brinkley :

> That sounds about right.
>
> Binky
>
> David Cagle wrote:
>>
>> Renata, we did something similar a couple of years ago. I don't
>> think you can add to jh.jar for licensing reasons. So what we did
>> was create a separate jar that had our translations in it. And
>> when the application starts up, we add our new jar to the classpath.
>>
>> Here is a simplified example of what we did...
>>
>> - First, we took *Constants.java* and translated it...be
>> sure to keep the property names the same!
>>
>> - You also want to make sure your new *Constants_pt.java*
>> class is in the same package as the original Constants*.java
>> classes in jh.jar. For example, the Constants* classes live at
>> "*javax/help/resources*" in jh.jar, you want your new class to live
>> in the same package name.
>>
>> - Say our new Constant translation is added to a Jar named
>> '*javahelp.translations.jar*'
>>
>> - The classpath for our application would look something
>> like this: *java --cp "jh.jar;javahelp.translations.jar;OurApp.jar"
>> --jar OurApp*
>>
>> If I remember correctly, that is all we did.
>>
>> Furthermore, we have also contributed our translations to the
>> JavaHelp Open Source project at: https://javahelp.dev.java.net/.
>> But I don't know where that project stands at the moment.
>>
>> Good luck!
>>
>> *From:* Discussion list of JavaHelp
>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM] *On Behalf Of *Renata
>> Andreatti
>> *Sent:* Tuesday, January 27, 2009 12:58 PM
>> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
>>
>> Hi people!
>>
>> For many days I search how to translate the JavaHelp to Portuguese
>> (and possible other languages).
>>
>> After many search, I fond this forum and some explanation.
>>
>> Now I know that I have to translate the class Constants.java and
>> name it as Constants_pt.java. So I recompile the class.
>>
>> After that, I jarred the Constants_pt.class in jh.jar. But until
>> now, it doesn't work!
>>
>> If I translate the Constants.java and put the new Constants.class
>> in the jh.jar, it works! But I cannot do this, because I need other
>> languages too...
>>
>> Please, how I do to my application run the Constants_pt.class create by me?
>>
>> Does any other way to translate my JavaHelp? Please... I need help.
>>
>>
>> Thanks a lot!
>> Renata
>>
>> PS: Sorry, my English isn't so good.
>>
>> ******************************************************************************** You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>> ******************************************************************************** You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

David Cagle

Yes Nicolas I believe you are correct. We did this trick with the 1.1.3 versions of jh.jar which were not signed. We have since abandoned this approach with 2.0* versions because they are signed. I should have mentioned that, sorry about that. There might be some ways around it but I don't think even signing the new translated Jar will do the trick since the certificates are different.

-----Original Message-----
From: Discussion list of JavaHelp [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM] On Behalf Of Nicolas Van Cleemput
Sent: Tuesday, January 27, 2009 3:58 PM
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese

We tried to do it this way, but there was a problem because the
translated class and the original classes are in the same package. The
original classes however are in a signed jars, and therefore the
classes in our jar would not load.

Citeren Roger Brinkley :

> That sounds about right.
>
> Binky
>
> David Cagle wrote:
>>
>> Renata, we did something similar a couple of years ago. I don't
>> think you can add to jh.jar for licensing reasons. So what we did
>> was create a separate jar that had our translations in it. And
>> when the application starts up, we add our new jar to the classpath.
>>
>> Here is a simplified example of what we did...
>>
>> - First, we took *Constants.java* and translated it...be
>> sure to keep the property names the same!
>>
>> - You also want to make sure your new *Constants_pt.java*
>> class is in the same package as the original Constants*.java
>> classes in jh.jar. For example, the Constants* classes live at
>> "*javax/help/resources*" in jh.jar, you want your new class to live
>> in the same package name.
>>
>> - Say our new Constant translation is added to a Jar named
>> '*javahelp.translations.jar*'
>>
>> - The classpath for our application would look something
>> like this: *java --cp "jh.jar;javahelp.translations.jar;OurApp.jar"
>> --jar OurApp*
>>
>> If I remember correctly, that is all we did.
>>
>> Furthermore, we have also contributed our translations to the
>> JavaHelp Open Source project at: https://javahelp.dev.java.net/.
>> But I don't know where that project stands at the moment.
>>
>> Good luck!
>>
>> *From:* Discussion list of JavaHelp
>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM] *On Behalf Of *Renata
>> Andreatti
>> *Sent:* Tuesday, January 27, 2009 12:58 PM
>> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
>>
>> Hi people!
>>
>> For many days I search how to translate the JavaHelp to Portuguese
>> (and possible other languages).
>>
>> After many search, I fond this forum and some explanation.
>>
>> Now I know that I have to translate the class Constants.java and
>> name it as Constants_pt.java. So I recompile the class.
>>
>> After that, I jarred the Constants_pt.class in jh.jar. But until
>> now, it doesn't work!
>>
>> If I translate the Constants.java and put the new Constants.class
>> in the jh.jar, it works! But I cannot do this, because I need other
>> languages too...
>>
>> Please, how I do to my application run the Constants_pt.class create by me?
>>
>> Does any other way to translate my JavaHelp? Please... I need help.
>>
>>
>> Thanks a lot!
>> Renata
>>
>> PS: Sorry, my English isn't so good.
>>
>> ******************************************************************************** You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>> ******************************************************************************** You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Renata Andreatti

Ok... now I understand. :o)

I'll try to do like David explain before.

When I'll have finished, I send other e-mail.

Thanks for now,
Renata

2009/1/28 David Cagle

> Yes Nicolas I believe you are correct. We did this trick with the 1.1.3
> versions of jh.jar which were not signed. We have since abandoned this
> approach with 2.0* versions because they are signed. I should have
> mentioned that, sorry about that. There might be some ways around it but I
> don't think even signing the new translated Jar will do the trick since the
> certificates are different.
>
> -----Original Message-----
> From: Discussion list of JavaHelp [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]
> On Behalf Of Nicolas Van Cleemput
> Sent: Tuesday, January 27, 2009 3:58 PM
> To: JAVAHELP-INTEREST@JAVA.SUN.COM
> Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese
>
> We tried to do it this way, but there was a problem because the
> translated class and the original classes are in the same package. The
> original classes however are in a signed jars, and therefore the
> classes in our jar would not load.
>
> Citeren Roger Brinkley :
>
> > That sounds about right.
> >
> > Binky
> >
> > David Cagle wrote:
> >>
> >> Renata, we did something similar a couple of years ago. I don't
> >> think you can add to jh.jar for licensing reasons. So what we did
> >> was create a separate jar that had our translations in it. And
> >> when the application starts up, we add our new jar to the classpath.
> >>
> >> Here is a simplified example of what we did...
> >>
> >> - First, we took *Constants.java* and translated it...be
> >> sure to keep the property names the same!
> >>
> >> - You also want to make sure your new *Constants_pt.java*
> >> class is in the same package as the original Constants*.java
> >> classes in jh.jar. For example, the Constants* classes live at
> >> "*javax/help/resources*" in jh.jar, you want your new class to live
> >> in the same package name.
> >>
> >> - Say our new Constant translation is added to a Jar named
> >> '*javahelp.translations.jar*'
> >>
> >> - The classpath for our application would look something
> >> like this: *java --cp "jh.jar;javahelp.translations.jar;OurApp.jar"
> >> --jar OurApp*
> >>
> >> If I remember correctly, that is all we did.
> >>
> >> Furthermore, we have also contributed our translations to the
> >> JavaHelp Open Source project at: https://javahelp.dev.java.net/.
> >> But I don't know where that project stands at the moment.
> >>
> >> Good luck!
> >>
> >> *From:* Discussion list of JavaHelp
> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM] *On Behalf Of *Renata
> >> Andreatti
> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
> >> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
> >>
> >> Hi people!
> >>
> >> For many days I search how to translate the JavaHelp to Portuguese
> >> (and possible other languages).
> >>
> >> After many search, I fond this forum and some explanation.
> >>
> >> Now I know that I have to translate the class Constants.java and
> >> name it as Constants_pt.java. So I recompile the class.
> >>
> >> After that, I jarred the Constants_pt.class in jh.jar. But until
> >> now, it doesn't work!
> >>
> >> If I translate the Constants.java and put the new Constants.class
> >> in the jh.jar, it works! But I cannot do this, because I need other
> >> languages too...
> >>
> >> Please, how I do to my application run the Constants_pt.class create by
> me?
> >>
> >> Does any other way to translate my JavaHelp? Please... I need help.
> >>
> >>
> >> Thanks a lot!
> >> Renata
> >>
> >> PS: Sorry, my English isn't so good.
> >>
> >>
> ********************************************************************************
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >>
> ********************************************************************************
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >
> >
> ********************************************************************************
> >
> > You may leave the list at any time by sending message with no subject and
> > "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
> Archives
> > are available at
> > http://archives.java.sun.com/archives/javahelp-interest.html.
> > Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

--
Renata Fernanda Andreatti

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Renata Andreatti

Hello!

People, I still have the problem.
I think I do everything like David said, but I isn't work!

I do like this:

First, I create a Project named GzHelpIntl. So, I create the package
javax.help.resources and put my Constants_pt.java in there.
After this, I create the GzHelpIntl.jar.

So, I create the jar of my main project named MercoFlex.jar.

Finally, I run my project:

java -cp "GzHelpIntl.jar" -jar MercoFlex.jar

But my help is still in English! Where is the mistake?

Sorry for my insistence, but only you are helping me.

Thanks a lot!!!

Renata

2009/1/29 Renata Andreatti

> Ok... now I understand. :o)
>
> I'll try to do like David explain before.
>
> When I'll have finished, I send other e-mail.
>
> Thanks for now,
> Renata
>
> 2009/1/28 David Cagle
>
> Yes Nicolas I believe you are correct. We did this trick with the 1.1.3
>> versions of jh.jar which were not signed. We have since abandoned this
>> approach with 2.0* versions because they are signed. I should have
>> mentioned that, sorry about that. There might be some ways around it but I
>> don't think even signing the new translated Jar will do the trick since the
>> certificates are different.
>>
>> -----Original Message-----
>> From: Discussion list of JavaHelp [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]
>> On Behalf Of Nicolas Van Cleemput
>> Sent: Tuesday, January 27, 2009 3:58 PM
>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>> Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese
>>
>> We tried to do it this way, but there was a problem because the
>> translated class and the original classes are in the same package. The
>> original classes however are in a signed jars, and therefore the
>> classes in our jar would not load.
>>
>> Citeren Roger Brinkley :
>>
>> > That sounds about right.
>> >
>> > Binky
>> >
>> > David Cagle wrote:
>> >>
>> >> Renata, we did something similar a couple of years ago. I don't
>> >> think you can add to jh.jar for licensing reasons. So what we did
>> >> was create a separate jar that had our translations in it. And
>> >> when the application starts up, we add our new jar to the classpath.
>> >>
>> >> Here is a simplified example of what we did...
>> >>
>> >> - First, we took *Constants.java* and translated it...be
>> >> sure to keep the property names the same!
>> >>
>> >> - You also want to make sure your new *Constants_pt.java*
>> >> class is in the same package as the original Constants*.java
>> >> classes in jh.jar. For example, the Constants* classes live at
>> >> "*javax/help/resources*" in jh.jar, you want your new class to live
>> >> in the same package name.
>> >>
>> >> - Say our new Constant translation is added to a Jar named
>> >> '*javahelp.translations.jar*'
>> >>
>> >> - The classpath for our application would look something
>> >> like this: *java --cp "jh.jar;javahelp.translations.jar;OurApp.jar"
>> >> --jar OurApp*
>> >>
>> >> If I remember correctly, that is all we did.
>> >>
>> >> Furthermore, we have also contributed our translations to the
>> >> JavaHelp Open Source project at: https://javahelp.dev.java.net/.
>> >> But I don't know where that project stands at the moment.
>> >>
>> >> Good luck!
>> >>
>> >> *From:* Discussion list of JavaHelp
>> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM] *On Behalf Of *Renata
>> >> Andreatti
>> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
>> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>> >> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
>> >>
>> >> Hi people!
>> >>
>> >> For many days I search how to translate the JavaHelp to Portuguese
>> >> (and possible other languages).
>> >>
>> >> After many search, I fond this forum and some explanation.
>> >>
>> >> Now I know that I have to translate the class Constants.java and
>> >> name it as Constants_pt.java. So I recompile the class.
>> >>
>> >> After that, I jarred the Constants_pt.class in jh.jar. But until
>> >> now, it doesn't work!
>> >>
>> >> If I translate the Constants.java and put the new Constants.class
>> >> in the jh.jar, it works! But I cannot do this, because I need other
>> >> languages too...
>> >>
>> >> Please, how I do to my application run the Constants_pt.class create by
>> me?
>> >>
>> >> Does any other way to translate my JavaHelp? Please... I need help.
>> >>
>> >>
>> >> Thanks a lot!
>> >> Renata
>> >>
>> >> PS: Sorry, my English isn't so good.
>> >>
>> >>
>> ********************************************************************************
>> You may leave the list at any time by sending message with no subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
>> reports at
>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>> >>
>> >>
>> ********************************************************************************
>> You may leave the list at any time by sending message with no subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
>> reports at
>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>> >>
>> >
>> >
>> ********************************************************************************
>> >
>> > You may leave the list at any time by sending message with no subject
>> and
>> > "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives
>> > are available at
>> > http://archives.java.sun.com/archives/javahelp-interest.html.
>> > Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time by sending message with no subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time by sending message with no subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>
>
>
> --
> Renata Fernanda Andreatti
>

--
Renata Fernanda Andreatti

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Roger Brinkley

Renata Andreatti wrote:
> Hello!
>
> People, I still have the problem.
> I think I do everything like David said, but I isn't work!
>
> I do like this:
>
> First, I create a Project named GzHelpIntl. So, I create the package
> javax.help.resources and put my Constants_pt.java in there.
> After this, I create the GzHelpIntl.jar.
>
> So, I create the jar of my main project named MercoFlex.jar.
>
> Finally, I run my project:
>
> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>
> But my help is still in English! Where is the mistake?
>
> Sorry for my insistence, but only you are helping me.
>
> Thanks a lot!!!
>
> Renata
>
>
>
> 2009/1/29 Renata Andreatti > >
>
> Ok... now I understand. :o)
>
> I'll try to do like David explain before.
>
> When I'll have finished, I send other e-mail.
>
> Thanks for now,
> Renata
>
> 2009/1/28 David Cagle > >
>
> Yes Nicolas I believe you are correct. We did this trick with
> the 1.1.3 versions of jh.jar which were not signed. We have
> since abandoned this approach with 2.0* versions because they
> are signed. I should have mentioned that, sorry about that.
> There might be some ways around it but I don't think even
> signing the new translated Jar will do the trick since the
> certificates are different.
>
> -----Original Message-----
> From: Discussion list of JavaHelp
> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
> ] On Behalf Of Nicolas
> Van Cleemput
> Sent: Tuesday, January 27, 2009 3:58 PM
> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>
> Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese
>
> We tried to do it this way, but there was a problem because the
> translated class and the original classes are in the same
> package. The
> original classes however are in a signed jars, and therefore the
> classes in our jar would not load.
>
> Citeren Roger Brinkley > >:
>
> > That sounds about right.
> >
> > Binky
> >
> > David Cagle wrote:
> >>
> >> Renata, we did something similar a couple of years ago. I
> don't
> >> think you can add to jh.jar for licensing reasons. So what
> we did
> >> was create a separate jar that had our translations in it. And
> >> when the application starts up, we add our new jar to the
> classpath.
> >>
> >> Here is a simplified example of what we did...
> >>
> >> - First, we took *Constants.java* and translated
> it...be
> >> sure to keep the property names the same!
> >>
> >> - You also want to make sure your new
> *Constants_pt.java*
> >> class is in the same package as the original Constants*.java
> >> classes in jh.jar. For example, the Constants* classes live at
> >> "*javax/help/resources*" in jh.jar, you want your new class
> to live
> >> in the same package name.
> >>
> >> - Say our new Constant translation is added to a
> Jar named
> >> '*javahelp.translations.jar*'
> >>
> >> - The classpath for our application would look
> something
> >> like this: *java --cp
> "jh.jar;javahelp.translations.jar;OurApp.jar"
> >> --jar OurApp*
> >>
> >> If I remember correctly, that is all we did.
> >>
> >> Furthermore, we have also contributed our translations to the
> >> JavaHelp Open Source project at:
> https://javahelp.dev.java.net/.
> >> But I don't know where that project stands at the moment.
> >>
> >> Good luck!
> >>
> >> *From:* Discussion list of JavaHelp
> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
> ] *On Behalf Of *Renata
> >> Andreatti
> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>
> >> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
> >>
> >> Hi people!
> >>
> >> For many days I search how to translate the JavaHelp to
> Portuguese
> >> (and possible other languages).
> >>
> >> After many search, I fond this forum and some explanation.
> >>
> >> Now I know that I have to translate the class
> Constants.java and
> >> name it as Constants_pt.java. So I recompile the class.
> >>
> >> After that, I jarred the Constants_pt.class in jh.jar. But
> until
> >> now, it doesn't work!
> >>
> >> If I translate the Constants.java and put the new
> Constants.class
> >> in the jh.jar, it works! But I cannot do this, because I
> need other
> >> languages too...
> >>
> >> Please, how I do to my application run the
> Constants_pt.class create by me?
> >>
> >> Does any other way to translate my JavaHelp? Please... I
> need help.
> >>
> >>
> >> Thanks a lot!
> >> Renata
> >>
> >> PS: Sorry, my English isn't so good.
> >>
> >>
> ********************************************************************************
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >>
> ********************************************************************************
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >
> >
> ********************************************************************************
> >
> > You may leave the list at any time by sending message with
> no subject and
> > "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives
> > are available at
> > http://archives.java.sun.com/archives/javahelp-interest.html.
> > Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject
> and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
> Archives are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit
> bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
I think it has to do with the classpath. Make sure your file is ahead of
the jh.jar in the classpath.

binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Renata Andreatti

And how I do this?

I try like this:

java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar

But I still have the problem....

Thanks
Renata

2009/2/2 Roger Brinkley

> Renata Andreatti wrote:
>
>> Hello!
>>
>> People, I still have the problem.
>> I think I do everything like David said, but I isn't work!
>>
>> I do like this:
>>
>> First, I create a Project named GzHelpIntl. So, I create the package
>> javax.help.resources and put my Constants_pt.java in there.
>> After this, I create the GzHelpIntl.jar.
>>
>> So, I create the jar of my main project named MercoFlex.jar.
>>
>> Finally, I run my project:
>>
>> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>>
>> But my help is still in English! Where is the mistake?
>>
>> Sorry for my insistence, but only you are helping me.
>>
>> Thanks a lot!!!
>>
>> Renata
>>
>>
>>
>> 2009/1/29 Renata Andreatti >> randreatti@gmail.com>>
>>
>> Ok... now I understand. :o)
>>
>> I'll try to do like David explain before.
>>
>> When I'll have finished, I send other e-mail.
>>
>> Thanks for now,
>> Renata
>>
>> 2009/1/28 David Cagle >> >
>>
>> Yes Nicolas I believe you are correct. We did this trick with
>> the 1.1.3 versions of jh.jar which were not signed. We have
>> since abandoned this approach with 2.0* versions because they
>> are signed. I should have mentioned that, sorry about that.
>> There might be some ways around it but I don't think even
>> signing the new translated Jar will do the trick since the
>> certificates are different.
>>
>> -----Original Message-----
>> From: Discussion list of JavaHelp
>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>> ] On Behalf Of Nicolas
>> Van Cleemput
>> Sent: Tuesday, January 27, 2009 3:58 PM
>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese
>>
>> We tried to do it this way, but there was a problem because the
>> translated class and the original classes are in the same
>> package. The
>> original classes however are in a signed jars, and therefore the
>> classes in our jar would not load.
>>
>> Citeren Roger Brinkley >> >:
>>
>>
>> > That sounds about right.
>> >
>> > Binky
>> >
>> > David Cagle wrote:
>> >>
>> >> Renata, we did something similar a couple of years ago. I
>> don't
>> >> think you can add to jh.jar for licensing reasons. So what
>> we did
>> >> was create a separate jar that had our translations in it. And
>> >> when the application starts up, we add our new jar to the
>> classpath.
>> >>
>> >> Here is a simplified example of what we did...
>> >>
>> >> - First, we took *Constants.java* and translated
>> it...be
>> >> sure to keep the property names the same!
>> >>
>> >> - You also want to make sure your new
>> *Constants_pt.java*
>> >> class is in the same package as the original Constants*.java
>> >> classes in jh.jar. For example, the Constants* classes live at
>> >> "*javax/help/resources*" in jh.jar, you want your new class
>> to live
>> >> in the same package name.
>> >>
>> >> - Say our new Constant translation is added to a
>> Jar named
>> >> '*javahelp.translations.jar*'
>> >>
>> >> - The classpath for our application would look
>> something
>> >> like this: *java --cp
>> "jh.jar;javahelp.translations.jar;OurApp.jar"
>> >> --jar OurApp*
>> >>
>> >> If I remember correctly, that is all we did.
>> >>
>> >> Furthermore, we have also contributed our translations to the
>> >> JavaHelp Open Source project at:
>> https://javahelp.dev.java.net/.
>> >> But I don't know where that project stands at the moment.
>> >>
>> >> Good luck!
>> >>
>> >> *From:* Discussion list of JavaHelp
>> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>> ] *On Behalf Of *Renata
>> >> Andreatti
>> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
>> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>>
>> >> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
>> >>
>> >> Hi people!
>> >>
>> >> For many days I search how to translate the JavaHelp to
>> Portuguese
>> >> (and possible other languages).
>> >>
>> >> After many search, I fond this forum and some explanation.
>> >>
>> >> Now I know that I have to translate the class
>> Constants.java and
>> >> name it as Constants_pt.java. So I recompile the class.
>> >>
>> >> After that, I jarred the Constants_pt.class in jh.jar. But
>> until
>> >> now, it doesn't work!
>> >>
>> >> If I translate the Constants.java and put the new
>> Constants.class
>> >> in the jh.jar, it works! But I cannot do this, because I
>> need other
>> >> languages too...
>> >>
>> >> Please, how I do to my application run the
>> Constants_pt.class create by me?
>> >>
>> >> Does any other way to translate my JavaHelp? Please... I
>> need help.
>> >>
>> >>
>> >> Thanks a lot!
>> >> Renata
>> >>
>> >> PS: Sorry, my English isn't so good.
>> >>
>> >>
>>
>> ********************************************************************************
>> You may leave the list at any time by sending message with no
>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM . Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>> >>
>> >>
>>
>> ********************************************************************************
>> You may leave the list at any time by sending message with no
>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM . Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at
>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>> >>
>> >
>> >
>>
>> ********************************************************************************
>> >
>> > You may leave the list at any time by sending message with
>> no subject and
>> > "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM . Archives
>> > are available at
>> > http://archives.java.sun.com/archives/javahelp-interest.html.
>> > Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time by sending message with no
>> subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM . Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>> ********************************************************************************
>>
>> You may leave the list at any time by sending message with no
>> subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>> LISTSERV@JAVA.SUN.COM . Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
>>
>>
>> -- Renata Fernanda Andreatti
>>
>>
>>
>>
>> --
>> Renata Fernanda Andreatti
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message with no subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
>> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>> I think it has to do with the classpath. Make sure your file is ahead of
> the jh.jar in the classpath.
>
> binky
>
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

--
Renata Fernanda Andreatti

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Roger Brinkley

Check your directory structure in GzHelpIntl. Make sure in
Constants_pt.java is in a directory something like /javax/help/resources
(I think it's resources...) which corresponds to the package name.

Binky

Renata Andreatti wrote:
> And how I do this?
>
> I try like this:
>
> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>
> But I still have the problem....
>
> Thanks
> Renata
>
> 2009/2/2 Roger Brinkley > >
>
> Renata Andreatti wrote:
>
> Hello!
>
> People, I still have the problem.
> I think I do everything like David said, but I isn't work!
>
> I do like this:
>
> First, I create a Project named GzHelpIntl. So, I create the
> package javax.help.resources and put my Constants_pt.java in
> there.
> After this, I create the GzHelpIntl.jar.
>
> So, I create the jar of my main project named MercoFlex.jar.
>
> Finally, I run my project:
>
> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>
> But my help is still in English! Where is the mistake?
>
> Sorry for my insistence, but only you are helping me.
>
> Thanks a lot!!!
>
> Renata
>
>
>
> 2009/1/29 Renata Andreatti > > >>
>
>
> Ok... now I understand. :o)
>
> I'll try to do like David explain before.
>
> When I'll have finished, I send other e-mail.
>
> Thanks for now,
> Renata
>
> 2009/1/28 David Cagle >
> >>
>
>
> Yes Nicolas I believe you are correct. We did this
> trick with
> the 1.1.3 versions of jh.jar which were not signed. We
> have
> since abandoned this approach with 2.0* versions
> because they
> are signed. I should have mentioned that, sorry about
> that.
> There might be some ways around it but I don't think even
> signing the new translated Jar will do the trick since the
> certificates are different.
>
> -----Original Message-----
> From: Discussion list of JavaHelp
> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >] On Behalf Of Nicolas
> Van Cleemput
> Sent: Tuesday, January 27, 2009 3:58 PM
> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >
> Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese
>
> We tried to do it this way, but there was a problem
> because the
> translated class and the original classes are in the same
> package. The
> original classes however are in a signed jars, and
> therefore the
> classes in our jar would not load.
>
> Citeren Roger Brinkley >
> > >>:
>
>
> > That sounds about right.
> >
> > Binky
> >
> > David Cagle wrote:
> >>
> >> Renata, we did something similar a couple of years
> ago. I
> don't
> >> think you can add to jh.jar for licensing reasons.
> So what
> we did
> >> was create a separate jar that had our translations
> in it. And
> >> when the application starts up, we add our new jar
> to the
> classpath.
> >>
> >> Here is a simplified example of what we did...
> >>
> >> - First, we took *Constants.java* and
> translated
> it...be
> >> sure to keep the property names the same!
> >>
> >> - You also want to make sure your new
> *Constants_pt.java*
> >> class is in the same package as the original
> Constants*.java
> >> classes in jh.jar. For example, the Constants*
> classes live at
> >> "*javax/help/resources*" in jh.jar, you want your
> new class
> to live
> >> in the same package name.
> >>
> >> - Say our new Constant translation is added
> to a
> Jar named
> >> '*javahelp.translations.jar*'
> >>
> >> - The classpath for our application would look
> something
> >> like this: *java --cp
> "jh.jar;javahelp.translations.jar;OurApp.jar"
> >> --jar OurApp*
> >>
> >> If I remember correctly, that is all we did.
> >>
> >> Furthermore, we have also contributed our
> translations to the
> >> JavaHelp Open Source project at:
> https://javahelp.dev.java.net/.
> >> But I don't know where that project stands at the
> moment.
> >>
> >> Good luck!
> >>
> >> *From:* Discussion list of JavaHelp
> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >] *On Behalf Of *Renata
> >> Andreatti
> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >
> >> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
> >>
> >> Hi people!
> >>
> >> For many days I search how to translate the JavaHelp to
> Portuguese
> >> (and possible other languages).
> >>
> >> After many search, I fond this forum and some
> explanation.
> >>
> >> Now I know that I have to translate the class
> Constants.java and
> >> name it as Constants_pt.java. So I recompile the class.
> >>
> >> After that, I jarred the Constants_pt.class in
> jh.jar. But
> until
> >> now, it doesn't work!
> >>
> >> If I translate the Constants.java and put the new
> Constants.class
> >> in the jh.jar, it works! But I cannot do this, because I
> need other
> >> languages too...
> >>
> >> Please, how I do to my application run the
> Constants_pt.class create by me?
> >>
> >> Does any other way to translate my JavaHelp? Please... I
> need help.
> >>
> >>
> >> Thanks a lot!
> >> Renata
> >>
> >> PS: Sorry, my English isn't so good.
> >>
> >>
>
> ********************************************************************************
> You may leave the list at any time by sending message
> with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >>
>
> ********************************************************************************
> You may leave the list at any time by sending message
> with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >
> >
>
> ********************************************************************************
> >
> > You may leave the list at any time by sending message
> with
> no subject and
> > "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
> > are available at
> >
> http://archives.java.sun.com/archives/javahelp-interest.html.
> > Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message
> with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message
> with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
> are available at
>
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> -- Renata Fernanda Andreatti
>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> I think it has to do with the classpath. Make sure your file is
> ahead of the jh.jar in the classpath.
>
> binky
>
> ********************************************************************************
>
>
>
> You may leave the list at any time by sending message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM
> . Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject
> and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
> Archives are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit
> bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Renata Andreatti

Yes, it is at /javax/help/resources, look my Constants_pt.java (look the
package):

package javax.help.resources;

import java.util.ListResourceBundle;

/**
* Constants used for localizing JavaHelp.
*
* These are in the form of key, value.
* Translators take care to only translate the values.
*/

public class Constants_pt extends ListResourceBundle {
/**
* Overrides ListResourceBundle.
*/
public Object[][] getContents() {
return new Object[][] {

// Constant strings and patterns
{ "helpset.wrongPublicID", "PublicID {0} desconhecido"},
{ "helpset.wrongTitle", "Tentativa de mudar o título para
{0} quando já possue o valor {1}."},
{ "helpset.wrongHomeID", "Tentativa de mudar o homeID para
{0} quando já possue o valor {1}."},
{ "helpset.subHelpSetTrouble", "Problemas ao criar
subhelpset: {0}."},
{ "helpset.malformedURL", "URL mal informada: {0}."},
{ "helpset.incorrectURL", "URL incorreta: {0}."},
{ "helpset.wrongText", "{0} não pode conter o texto {1}."},
{ "helpset.wrongTopLevel", "{0} não pode ser uma tag de
nível alto."},
{ "helpset.wrongParent", "O valor passado para a tag {0} não
pode ser {1}."},
{ "helpset.unbalanced", "Tag {0} desbalanceada."},
{ "helpset.wrongLocale", "Aviso: xml: atributo lang {0}
conflitante com o default {1} e com o default {2}"},
{ "helpset.unknownVersion", "Versão {0} desconhecida."},

// IndexView messages
{ "index.invalidIndexFormat", "Aviso: Formato inválido de
índice"},
{ "index.unknownVersion", "Versão {0} desconhecida."},

// TOCView messages
{ "toc.wrongPublicID", "PublicID {0} desconhecido"},
{ "toc.invalidTOCFormat", "Aviso: Formato inválido de TOC"},
{ "toc.unknownVersion", "Versão {0} desconhecida."},

// FavoritesView messages
{ "favorites.invalidFavoritesFormat", "Aviso: Formato
inválido de favoritos"},
{ "favorites.unknownVersion", "Versão {0} desconhecida."},

// Map messages
{ "map.wrongPublicID", "PublicID {0} desconhecido"},
{ "map.invalidMapFormat", "Aviso: Formato inválido de
mapa"},
{ "map.unknownVersion", "Versão {0} desconhecida."},

// GUI components
// Labels
{ "index.findLabel", "Procurar: "},

{ "search.findLabel", "Procurar: "},
{ "search.hitDesc", "Número de ocorrências no documento"},
{ "search.qualityDesc", "Valor de penalidade baixa no
documento" },
{ "search.high", "Alta"},
{ "search.midhigh", "Média alta"},
{ "search.mid", "Média"},
{ "search.midlow", "Média baixa"},
{ "search.low", "Baixa"},

{ "favorites.add", "Adicionar"},
{ "favorites.remove", "Remover"},
{ "favorites.folder", "Nova pasta"},
{ "favorites.name", "Nome"},
{ "favorites.cut", "Recortar"},
{ "favorites.paste", "Colar"},
{ "favorites.copy" , "Copiar"},

{ "history.homePage", "Página inicial"},
{ "history.unknownTitle", " desconhecido>"},

// ToolTips for Actions
{ "tooltip.BackAction", "Página anterior"},
{ "tooltip.ForwardAction", "Próxima página"},
{ "tooltip.PrintAction", "Imprimir"},
{ "tooltip.PrintSetupAction", "Configurar página"},
{ "tooltip.ReloadAction", "Atualizar"},
{ "tooltip.FavoritesAction", "Adicionar à favoritos"},
{ "tooltip.HomeAction", "Página inicial"},

// Accessibility names
{ "access.BackAction", "Página anterior"},
{ "access.ForwardAction", "Próxima página"},
{ "access.HistoryAction", "Histórico"},
{ "access.PrintAction", "Imprimir"},
{ "access.PrintSetupAction", "Configurar página"},
{ "access.ReloadAction", "Atualizar"},
{ "access.HomeAction", "Página inicial"},
{ "access.FavoritesAction", "Adicionar à favoritos"},
{ "access.contentViewer", "Visualizador"}

};
}
}

2009/2/2 Roger Brinkley

> Check your directory structure in GzHelpIntl. Make sure in
> Constants_pt.java is in a directory something like /javax/help/resources (I
> think it's resources...) which corresponds to the package name.
>
> Binky
>
> Renata Andreatti wrote:
>
> And how I do this?
>
> I try like this:
>
> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>
> But I still have the problem....
>
> Thanks
> Renata
>
> 2009/2/2 Roger Brinkley
>
>> Renata Andreatti wrote:
>>
>>> Hello!
>>>
>>> People, I still have the problem.
>>> I think I do everything like David said, but I isn't work!
>>>
>>> I do like this:
>>>
>>> First, I create a Project named GzHelpIntl. So, I create the package
>>> javax.help.resources and put my Constants_pt.java in there.
>>> After this, I create the GzHelpIntl.jar.
>>>
>>> So, I create the jar of my main project named MercoFlex.jar.
>>>
>>> Finally, I run my project:
>>>
>>> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>>>
>>> But my help is still in English! Where is the mistake?
>>>
>>> Sorry for my insistence, but only you are helping me.
>>>
>>> Thanks a lot!!!
>>>
>>> Renata
>>>
>>>
>>>
>>> 2009/1/29 Renata Andreatti >>> randreatti@gmail.com>>
>>>
>>> Ok... now I understand. :o)
>>>
>>> I'll try to do like David explain before.
>>>
>>> When I'll have finished, I send other e-mail.
>>>
>>> Thanks for now,
>>> Renata
>>>
>>> 2009/1/28 David Cagle >>> >
>>>
>>> Yes Nicolas I believe you are correct. We did this trick with
>>> the 1.1.3 versions of jh.jar which were not signed. We have
>>> since abandoned this approach with 2.0* versions because they
>>> are signed. I should have mentioned that, sorry about that.
>>> There might be some ways around it but I don't think even
>>> signing the new translated Jar will do the trick since the
>>> certificates are different.
>>>
>>> -----Original Message-----
>>> From: Discussion list of JavaHelp
>>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>> ] On Behalf Of Nicolas
>>> Van Cleemput
>>> Sent: Tuesday, January 27, 2009 3:58 PM
>>> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese
>>>
>>> We tried to do it this way, but there was a problem because the
>>> translated class and the original classes are in the same
>>> package. The
>>> original classes however are in a signed jars, and therefore the
>>> classes in our jar would not load.
>>>
>>> Citeren Roger Brinkley >>> >:
>>>
>>> > That sounds about right.
>>> >
>>> > Binky
>>> >
>>> > David Cagle wrote:
>>> >>
>>> >> Renata, we did something similar a couple of years ago. I
>>> don't
>>> >> think you can add to jh.jar for licensing reasons. So what
>>> we did
>>> >> was create a separate jar that had our translations in it. And
>>> >> when the application starts up, we add our new jar to the
>>> classpath.
>>> >>
>>> >> Here is a simplified example of what we did...
>>> >>
>>> >> - First, we took *Constants.java* and translated
>>> it...be
>>> >> sure to keep the property names the same!
>>> >>
>>> >> - You also want to make sure your new
>>> *Constants_pt.java*
>>> >> class is in the same package as the original Constants*.java
>>> >> classes in jh.jar. For example, the Constants* classes live at
>>> >> "*javax/help/resources*" in jh.jar, you want your new class
>>> to live
>>> >> in the same package name.
>>> >>
>>> >> - Say our new Constant translation is added to a
>>> Jar named
>>> >> '*javahelp.translations.jar*'
>>> >>
>>> >> - The classpath for our application would look
>>> something
>>> >> like this: *java --cp
>>> "jh.jar;javahelp.translations.jar;OurApp.jar"
>>> >> --jar OurApp*
>>> >>
>>> >> If I remember correctly, that is all we did.
>>> >>
>>> >> Furthermore, we have also contributed our translations to the
>>> >> JavaHelp Open Source project at:
>>> https://javahelp.dev.java.net/.
>>> >> But I don't know where that project stands at the moment.
>>> >>
>>> >> Good luck!
>>> >>
>>> >> *From:* Discussion list of JavaHelp
>>> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>>> ] *On Behalf Of *Renata
>>> >> Andreatti
>>> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
>>> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>>>
>>> >> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
>>> >>
>>> >> Hi people!
>>> >>
>>> >> For many days I search how to translate the JavaHelp to
>>> Portuguese
>>> >> (and possible other languages).
>>> >>
>>> >> After many search, I fond this forum and some explanation.
>>> >>
>>> >> Now I know that I have to translate the class
>>> Constants.java and
>>> >> name it as Constants_pt.java. So I recompile the class.
>>> >>
>>> >> After that, I jarred the Constants_pt.class in jh.jar. But
>>> until
>>> >> now, it doesn't work!
>>> >>
>>> >> If I translate the Constants.java and put the new
>>> Constants.class
>>> >> in the jh.jar, it works! But I cannot do this, because I
>>> need other
>>> >> languages too...
>>> >>
>>> >> Please, how I do to my application run the
>>> Constants_pt.class create by me?
>>> >>
>>> >> Does any other way to translate my JavaHelp? Please... I
>>> need help.
>>> >>
>>> >>
>>> >> Thanks a lot!
>>> >> Renata
>>> >>
>>> >> PS: Sorry, my English isn't so good.
>>> >>
>>> >>
>>>
>>> ********************************************************************************
>>> You may leave the list at any time by sending message with no
>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM . Archives
>>> are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>>> >>
>>> >>
>>>
>>> ********************************************************************************
>>> You may leave the list at any time by sending message with no
>>> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM . Archives
>>> are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at
>>> >> http://java.sun.com/cgi-bin/bugreport.cgi.
>>> >>
>>> >
>>> >
>>>
>>> ********************************************************************************
>>> >
>>> > You may leave the list at any time by sending message with
>>> no subject and
>>> > "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM . Archives
>>> > are available at
>>> > http://archives.java.sun.com/archives/javahelp-interest.html.
>>> > Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi
>>> .
>>>
>>>
>>> ********************************************************************************
>>>
>>> You may leave the list at any time by sending message with no
>>> subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM . Archives
>>> are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>> ********************************************************************************
>>>
>>> You may leave the list at any time by sending message with no
>>> subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to
>>> LISTSERV@JAVA.SUN.COM . Archives
>>> are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html.
>>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>>
>>>
>>>
>>> -- Renata Fernanda Andreatti
>>>
>>>
>>>
>>>
>>> --
>>> Renata Fernanda Andreatti
>>> ********************************************************************************
>>>
>>>
>>> You may leave the list at any time by sending message with no subject and
>>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>>> Archives are available at
>>> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
>>> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>>
>>> I think it has to do with the classpath. Make sure your file is ahead
>> of the jh.jar in the classpath.
>>
>> binky
>>
>> ********************************************************************************
>>
>>
>> You may leave the list at any time by sending message with no subject and
>> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
>> Archives
>> are available at
>> http://archives.java.sun.com/archives/javahelp-interest.html.
>> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

--
Renata Fernanda Andreatti

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

David Cagle

Renata, it appears that you are using version 2 of JavaHelp. This trick may not work because jh.jar is signed for version 2. We did the trick for 1.1.3 which was not signed. Nicolas mentioned this earlier in the thread as well.

From: Discussion list of JavaHelp [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM] On Behalf Of Renata Andreatti
Sent: Monday, February 02, 2009 2:25 PM
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese

Yes, it is at /javax/help/resources, look my Constants_pt.java (look the package):

package javax.help.resources;

import java.util.ListResourceBundle;

/**
* Constants used for localizing JavaHelp.
*
* These are in the form of key, value.
* Translators take care to only translate the values.
*/

public class Constants_pt extends ListResourceBundle {
/**
* Overrides ListResourceBundle.
*/
public Object[][] getContents() {
return new Object[][] {

// Constant strings and patterns
{ "helpset.wrongPublicID", "PublicID {0} desconhecido"},
{ "helpset.wrongTitle", "Tentativa de mudar o título para {0} quando já possue o valor {1}."},
{ "helpset.wrongHomeID", "Tentativa de mudar o homeID para {0} quando já possue o valor {1}."},
{ "helpset.subHelpSetTrouble", "Problemas ao criar subhelpset: {0}."},
{ "helpset.malformedURL", "URL mal informada: {0}."},
{ "helpset.incorrectURL", "URL incorreta: {0}."},
{ "helpset.wrongText", "{0} não pode conter o texto {1}."},
{ "helpset.wrongTopLevel", "{0} não pode ser uma tag de nível alto."},
{ "helpset.wrongParent", "O valor passado para a tag {0} não pode ser {1}."},
{ "helpset.unbalanced", "Tag {0} desbalanceada."},
{ "helpset.wrongLocale", "Aviso: xml: atributo lang {0} conflitante com o default {1} e com o default {2}"},
{ "helpset.unknownVersion", "Versão {0} desconhecida."},

// IndexView messages
{ "index.invalidIndexFormat", "Aviso: Formato inválido de índice"},
{ "index.unknownVersion", "Versão {0} desconhecida."},

// TOCView messages
{ "toc.wrongPublicID", "PublicID {0} desconhecido"},
{ "toc.invalidTOCFormat", "Aviso: Formato inválido de TOC"},
{ "toc.unknownVersion", "Versão {0} desconhecida."},

// FavoritesView messages
{ "favorites.invalidFavoritesFormat", "Aviso: Formato inválido de favoritos"},
{ "favorites.unknownVersion", "Versão {0} desconhecida."},

// Map messages
{ "map.wrongPublicID", "PublicID {0} desconhecido"},
{ "map.invalidMapFormat", "Aviso: Formato inválido de mapa"},
{ "map.unknownVersion", "Versão {0} desconhecida."},

// GUI components
// Labels
{ "index.findLabel", "Procurar: "},

{ "search.findLabel", "Procurar: "},
{ "search.hitDesc", "Número de ocorrências no documento"},
{ "search.qualityDesc", "Valor de penalidade baixa no documento" },
{ "search.high", "Alta"},
{ "search.midhigh", "Média alta"},
{ "search.mid", "Média"},
{ "search.midlow", "Média baixa"},
{ "search.low", "Baixa"},

{ "favorites.add", "Adicionar"},
{ "favorites.remove", "Remover"},
{ "favorites.folder", "Nova pasta"},
{ "favorites.name", "Nome"},
{ "favorites.cut", "Recortar"},
{ "favorites.paste", "Colar"},
{ "favorites.copy" , "Copiar"},

{ "history.homePage", "Página inicial"},
{ "history.unknownTitle", ""},

// ToolTips for Actions
{ "tooltip.BackAction", "Página anterior"},
{ "tooltip.ForwardAction", "Próxima página"},
{ "tooltip.PrintAction", "Imprimir"},
{ "tooltip.PrintSetupAction", "Configurar página"},
{ "tooltip.ReloadAction", "Atualizar"},
{ "tooltip.FavoritesAction", "Adicionar à favoritos"},
{ "tooltip.HomeAction", "Página inicial"},

// Accessibility names
{ "access.BackAction", "Página anterior"},
{ "access.ForwardAction", "Próxima página"},
{ "access.HistoryAction", "Histórico"},
{ "access.PrintAction", "Imprimir"},
{ "access.PrintSetupAction", "Configurar página"},
{ "access.ReloadAction", "Atualizar"},
{ "access.HomeAction", "Página inicial"},
{ "access.FavoritesAction", "Adicionar à favoritos"},
{ "access.contentViewer", "Visualizador"}

};
}
}

2009/2/2 Roger Brinkley >
Check your directory structure in GzHelpIntl. Make sure in Constants_pt.java is in a directory something like /javax/help/resources (I think it's resources...) which corresponds to the package name.

Binky

Renata Andreatti wrote:
And how I do this?

I try like this:

java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar

But I still have the problem....

Thanks
Renata
2009/2/2 Roger Brinkley >
Renata Andreatti wrote:
Hello!

People, I still have the problem.
I think I do everything like David said, but I isn't work!

I do like this:

First, I create a Project named GzHelpIntl. So, I create the package javax.help.resources and put my Constants_pt.java in there.
After this, I create the GzHelpIntl.jar.

So, I create the jar of my main project named MercoFlex.jar.

Finally, I run my project:

java -cp "GzHelpIntl.jar" -jar MercoFlex.jar

But my help is still in English! Where is the mistake?

Sorry for my insistence, but only you are helping me.

Thanks a lot!!!

Renata

2009/1/29 Renata Andreatti >>

Ok... now I understand. :o)

I'll try to do like David explain before.

When I'll have finished, I send other e-mail.

Thanks for now,
Renata

2009/1/28 David Cagle
>>

Yes Nicolas I believe you are correct. We did this trick with
the 1.1.3 versions of jh.jar which were not signed. We have
since abandoned this approach with 2.0* versions because they
are signed. I should have mentioned that, sorry about that.
There might be some ways around it but I don't think even
signing the new translated Jar will do the trick since the
certificates are different.

-----Original Message-----
From: Discussion list of JavaHelp
[mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>] On Behalf Of Nicolas
Van Cleemput
Sent: Tuesday, January 27, 2009 3:58 PM
To: JAVAHELP-INTEREST@JAVA.SUN.COM
>
Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese

We tried to do it this way, but there was a problem because the
translated class and the original classes are in the same
package. The
original classes however are in a signed jars, and therefore the
classes in our jar would not load.

Citeren Roger Brinkley
>>:

> That sounds about right.
>
> Binky
>
> David Cagle wrote:
>>
>> Renata, we did something similar a couple of years ago. I
don't
>> think you can add to jh.jar for licensing reasons. So what
we did
>> was create a separate jar that had our translations in it. And
>> when the application starts up, we add our new jar to the
classpath.
>>
>> Here is a simplified example of what we did...
>>
>> - First, we took *Constants.java* and translated
it...be
>> sure to keep the property names the same!
>>
>> - You also want to make sure your new
*Constants_pt.java*
>> class is in the same package as the original Constants*.java
>> classes in jh.jar. For example, the Constants* classes live at
>> "*javax/help/resources*" in jh.jar, you want your new class
to live
>> in the same package name.
>>
>> - Say our new Constant translation is added to a
Jar named
>> '*javahelp.translations.jar*'
>>
>> - The classpath for our application would look
something
>> like this: *java --cp
"jh.jar;javahelp.translations.jar;OurApp.jar"
>> --jar OurApp*
>>
>> If I remember correctly, that is all we did.
>>
>> Furthermore, we have also contributed our translations to the
>> JavaHelp Open Source project at:
https://javahelp.dev.java.net/.
>> But I don't know where that project stands at the moment.
>>
>> Good luck!
>>
>> *From:* Discussion list of JavaHelp
>> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>] *On Behalf Of *Renata
>> Andreatti
>> *Sent:* Tuesday, January 27, 2009 12:58 PM
>> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>
>> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
>>
>> Hi people!
>>
>> For many days I search how to translate the JavaHelp to
Portuguese
>> (and possible other languages).
>>
>> After many search, I fond this forum and some explanation.
>>
>> Now I know that I have to translate the class
Constants.java and
>> name it as Constants_pt.java. So I recompile the class.
>>
>> After that, I jarred the Constants_pt.class in jh.jar. But
until
>> now, it doesn't work!
>>
>> If I translate the Constants.java and put the new
Constants.class
>> in the jh.jar, it works! But I cannot do this, because I
need other
>> languages too...
>>
>> Please, how I do to my application run the
Constants_pt.class create by me?
>>
>> Does any other way to translate my JavaHelp? Please... I
need help.
>>
>>
>> Thanks a lot!
>> Renata
>>
>> PS: Sorry, my English isn't so good.
>>
>>
********************************************************************************
You may leave the list at any time by sending message with no
subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
LISTSERV@JAVA.SUN.COM >. Archives

are available at
http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>>
********************************************************************************
You may leave the list at any time by sending message with no
subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
LISTSERV@JAVA.SUN.COM >. Archives

are available at
http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at
>> http://java.sun.com/cgi-bin/bugreport.cgi.
>>
>
>
********************************************************************************
>
> You may leave the list at any time by sending message with
no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
LISTSERV@JAVA.SUN.COM >. Archives

> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no
subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to
LISTSERV@JAVA.SUN.COM >. Archives

are available at
http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no
subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to
LISTSERV@JAVA.SUN.COM >. Archives

are available at
http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

-- Renata Fernanda Andreatti

--
Renata Fernanda Andreatti
********************************************************************************

You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
I think it has to do with the classpath. Make sure your file is ahead of the jh.jar in the classpath.

binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

--
Renata Fernanda Andreatti
********************************************************************************

You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
********************************************************************************

You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

--
Renata Fernanda Andreatti
********************************************************************************

You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Renata Andreatti

Yes, I'm using the version 2 of JavaHelp.

When I read the e-mail about the signed version, I understood that I have to
create a new jar, like I do.

So now, I'm understanding that there aren't what I can do in version 2... I
need to use version 1.1.3. Is it?

But, it's incredible! I don't believe that in the new version I have no way
to translate the texts...

:'(

Thanks
Renata

2009/2/2 David Cagle

> Renata, it appears that you are using version 2 of JavaHelp. This trick
> may not work because jh.jar is signed for version 2. We did the trick for
> 1.1.3 which was not signed. Nicolas mentioned this earlier in the thread
> as well.
>
>
>
> *From:* Discussion list of JavaHelp [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]
> *On Behalf Of *Renata Andreatti
> *Sent:* Monday, February 02, 2009 2:25 PM
> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
> *Subject:* Re: [JAVAHELP] Translate JavaHelp to Portuguese
>
>
>
> Yes, it is at /javax/help/resources, look my Constants_pt.java (look the
> package):
>
>
> package javax.help.resources;
>
> import java.util.ListResourceBundle;
>
> /**
> * Constants used for localizing JavaHelp.
> *
> * These are in the form of key, value.
> * Translators take care to only translate the values.
> */
>
> public class Constants_pt extends ListResourceBundle {
> /**
> * Overrides ListResourceBundle.
> */
> public Object[][] getContents() {
> return new Object[][] {
>
> // Constant strings and patterns
> { "helpset.wrongPublicID", "PublicID {0} desconhecido"},
> { "helpset.wrongTitle", "Tentativa de mudar o título para
> {0} quando já possue o valor {1}."},
> { "helpset.wrongHomeID", "Tentativa de mudar o homeID para
> {0} quando já possue o valor {1}."},
> { "helpset.subHelpSetTrouble", "Problemas ao criar
> subhelpset: {0}."},
> { "helpset.malformedURL", "URL mal informada: {0}."},
> { "helpset.incorrectURL", "URL incorreta: {0}."},
> { "helpset.wrongText", "{0} não pode conter o texto {1}."},
> { "helpset.wrongTopLevel", "{0} não pode ser uma tag de
> nível alto."},
> { "helpset.wrongParent", "O valor passado para a tag {0}
> não pode ser {1}."},
> { "helpset.unbalanced", "Tag {0} desbalanceada."},
> { "helpset.wrongLocale", "Aviso: xml: atributo lang {0}
> conflitante com o default {1} e com o default {2}"},
> { "helpset.unknownVersion", "Versão {0} desconhecida."},
>
> // IndexView messages
> { "index.invalidIndexFormat", "Aviso: Formato inválido de
> índice"},
> { "index.unknownVersion", "Versão {0} desconhecida."},
>
> // TOCView messages
> { "toc.wrongPublicID", "PublicID {0} desconhecido"},
> { "toc.invalidTOCFormat", "Aviso: Formato inválido de
> TOC"},
> { "toc.unknownVersion", "Versão {0} desconhecida."},
>
> // FavoritesView messages
> { "favorites.invalidFavoritesFormat", "Aviso: Formato
> inválido de favoritos"},
> { "favorites.unknownVersion", "Versão {0} desconhecida."},
>
> // Map messages
> { "map.wrongPublicID", "PublicID {0} desconhecido"},
> { "map.invalidMapFormat", "Aviso: Formato inválido de
> mapa"},
> { "map.unknownVersion", "Versão {0} desconhecida."},
>
> // GUI components
> // Labels
> { "index.findLabel", "Procurar: "},
>
> { "search.findLabel", "Procurar: "},
> { "search.hitDesc", "Número de ocorrências no documento"},
> { "search.qualityDesc", "Valor de penalidade baixa no
> documento" },
> { "search.high", "Alta"},
> { "search.midhigh", "Média alta"},
> { "search.mid", "Média"},
> { "search.midlow", "Média baixa"},
> { "search.low", "Baixa"},
>
> { "favorites.add", "Adicionar"},
> { "favorites.remove", "Remover"},
> { "favorites.folder", "Nova pasta"},
> { "favorites.name", "Nome"},
> { "favorites.cut", "Recortar"},
> { "favorites.paste", "Colar"},
> { "favorites.copy" , "Copiar"},
>
> { "history.homePage", "Página inicial"},
> { "history.unknownTitle", " > desconhecido>"},
>
> // ToolTips for Actions
> { "tooltip.BackAction", "Página anterior"},
> { "tooltip.ForwardAction", "Próxima página"},
> { "tooltip.PrintAction", "Imprimir"},
> { "tooltip.PrintSetupAction", "Configurar página"},
> { "tooltip.ReloadAction", "Atualizar"},
> { "tooltip.FavoritesAction", "Adicionar à favoritos"},
> { "tooltip.HomeAction", "Página inicial"},
>
> // Accessibility names
> { "access.BackAction", "Página anterior"},
> { "access.ForwardAction", "Próxima página"},
> { "access.HistoryAction", "Histórico"},
> { "access.PrintAction", "Imprimir"},
> { "access.PrintSetupAction", "Configurar página"},
> { "access.ReloadAction", "Atualizar"},
> { "access.HomeAction", "Página inicial"},
> { "access.FavoritesAction", "Adicionar à favoritos"},
> { "access.contentViewer", "Visualizador"}
>
> };
> }
> }
>
> 2009/2/2 Roger Brinkley
>
> Check your directory structure in GzHelpIntl. Make sure in
> Constants_pt.java is in a directory something like /javax/help/resources (I
> think it's resources...) which corresponds to the package name.
>
> Binky
>
> Renata Andreatti wrote:
>
> And how I do this?
>
> I try like this:
>
> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>
> But I still have the problem....
>
> Thanks
> Renata
>
> 2009/2/2 Roger Brinkley
>
> Renata Andreatti wrote:
>
> Hello!
>
> People, I still have the problem.
> I think I do everything like David said, but I isn't work!
>
> I do like this:
>
> First, I create a Project named GzHelpIntl. So, I create the package
> javax.help.resources and put my Constants_pt.java in there.
> After this, I create the GzHelpIntl.jar.
>
> So, I create the jar of my main project named MercoFlex.jar.
>
> Finally, I run my project:
>
> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>
> But my help is still in English! Where is the mistake?
>
> Sorry for my insistence, but only you are helping me.
>
> Thanks a lot!!!
>
> Renata
>
>
> 2009/1/29 Renata Andreatti > randreatti@gmail.com>>
>
>
>
> Ok... now I understand. :o)
>
> I'll try to do like David explain before.
>
> When I'll have finished, I send other e-mail.
>
> Thanks for now,
> Renata
>
> 2009/1/28 David Cagle >
> >
>
>
>
> Yes Nicolas I believe you are correct. We did this trick with
> the 1.1.3 versions of jh.jar which were not signed. We have
> since abandoned this approach with 2.0* versions because they
> are signed. I should have mentioned that, sorry about that.
> There might be some ways around it but I don't think even
> signing the new translated Jar will do the trick since the
> certificates are different.
>
> -----Original Message-----
> From: Discussion list of JavaHelp
> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
> ] On Behalf Of Nicolas
> Van Cleemput
> Sent: Tuesday, January 27, 2009 3:58 PM
> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>
>
> Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese
>
> We tried to do it this way, but there was a problem because the
> translated class and the original classes are in the same
> package. The
> original classes however are in a signed jars, and therefore the
> classes in our jar would not load.
>
> Citeren Roger Brinkley >
> >:
>
>
>
> > That sounds about right.
> >
> > Binky
> >
> > David Cagle wrote:
> >>
> >> Renata, we did something similar a couple of years ago. I
> don't
> >> think you can add to jh.jar for licensing reasons. So what
> we did
> >> was create a separate jar that had our translations in it. And
> >> when the application starts up, we add our new jar to the
> classpath.
> >>
> >> Here is a simplified example of what we did...
> >>
> >> - First, we took *Constants.java* and translated
> it...be
> >> sure to keep the property names the same!
> >>
> >> - You also want to make sure your new
> *Constants_pt.java*
> >> class is in the same package as the original Constants*.java
> >> classes in jh.jar. For example, the Constants* classes live at
> >> "*javax/help/resources*" in jh.jar, you want your new class
> to live
> >> in the same package name.
> >>
> >> - Say our new Constant translation is added to a
> Jar named
> >> '*javahelp.translations.jar*'
> >>
> >> - The classpath for our application would look
> something
> >> like this: *java --cp
> "jh.jar;javahelp.translations.jar;OurApp.jar"
> >> --jar OurApp*
> >>
> >> If I remember correctly, that is all we did.
> >>
> >> Furthermore, we have also contributed our translations to the
> >> JavaHelp Open Source project at:
> https://javahelp.dev.java.net/.
> >> But I don't know where that project stands at the moment.
> >>
> >> Good luck!
> >>
> >> *From:* Discussion list of JavaHelp
> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
> ] *On Behalf Of *Renata
> >> Andreatti
> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>
>
>
> >> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
> >>
> >> Hi people!
> >>
> >> For many days I search how to translate the JavaHelp to
> Portuguese
> >> (and possible other languages).
> >>
> >> After many search, I fond this forum and some explanation.
> >>
> >> Now I know that I have to translate the class
> Constants.java and
> >> name it as Constants_pt.java. So I recompile the class.
> >>
> >> After that, I jarred the Constants_pt.class in jh.jar. But
> until
> >> now, it doesn't work!
> >>
> >> If I translate the Constants.java and put the new
> Constants.class
> >> in the jh.jar, it works! But I cannot do this, because I
> need other
> >> languages too...
> >>
> >> Please, how I do to my application run the
> Constants_pt.class create by me?
> >>
> >> Does any other way to translate my JavaHelp? Please... I
> need help.
> >>
> >>
> >> Thanks a lot!
> >> Renata
> >>
> >> PS: Sorry, my English isn't so good.
> >>
> >>
>
> ********************************************************************************
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM . Archives
>
>
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >>
>
> ********************************************************************************
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM . Archives
>
>
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >
> >
>
> ********************************************************************************
> >
> > You may leave the list at any time by sending message with
> no subject and
> > "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM . Archives
>
>
> > are available at
> > http://archives.java.sun.com/archives/javahelp-interest.html.
> > Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM . Archives
>
>
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM . Archives
>
>
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> -- Renata Fernanda Andreatti
>
>
>
>
> --
> Renata Fernanda Andreatti
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> I think it has to do with the classpath. Make sure your file is ahead of
> the jh.jar in the classpath.
>
> binky
>
> ********************************************************************************
>
>
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
> reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

--
Renata Fernanda Andreatti

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Roger Brinkley

No v2 is what you want to use.

binky

Renata Andreatti wrote:
> Yes, I'm using the version 2 of JavaHelp.
>
> When I read the e-mail about the signed version, I understood that I
> have to create a new jar, like I do.
>
> So now, I'm understanding that there aren't what I can do in version
> 2... I need to use version 1.1.3. Is it?
>
> But, it's incredible! I don't believe that in the new version I have
> no way to translate the texts...
>
> :'(
>
> Thanks
> Renata
>
>
>
> 2009/2/2 David Cagle >
>
> Renata, it appears that you are using version 2 of JavaHelp. This
> trick may not work because jh.jar is signed for version 2. We did
> the trick for 1.1.3 which was not signed. Nicolas mentioned this
> earlier in the thread as well.
>
>
>
> *From:* Discussion list of JavaHelp
> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
> ] *On Behalf Of *Renata
> Andreatti
> *Sent:* Monday, February 02, 2009 2:25 PM
>
> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>
> *Subject:* Re: [JAVAHELP] Translate JavaHelp to Portuguese
>
>
>
> Yes, it is at /javax/help/resources, look my Constants_pt.java
> (look the package):
>
>
> package javax.help.resources;
>
> import java.util.ListResourceBundle;
>
> /**
> * Constants used for localizing JavaHelp.
> *
> * These are in the form of key, value.
> * Translators take care to only translate the values.
> */
>
> public class Constants_pt extends ListResourceBundle {
> /**
> * Overrides ListResourceBundle.
> */
> public Object[][] getContents() {
> return new Object[][] {
>
> // Constant strings and patterns
> { "helpset.wrongPublicID", "PublicID {0}
> desconhecido"},
> { "helpset.wrongTitle", "Tentativa de mudar o
> título para {0} quando já possue o valor {1}."},
> { "helpset.wrongHomeID", "Tentativa de mudar o
> homeID para {0} quando já possue o valor {1}."},
> { "helpset.subHelpSetTrouble", "Problemas ao criar
> subhelpset: {0}."},
> { "helpset.malformedURL", "URL mal informada: {0}."},
> { "helpset.incorrectURL", "URL incorreta: {0}."},
> { "helpset.wrongText", "{0} não pode conter o
> texto {1}."},
> { "helpset.wrongTopLevel", "{0} não pode ser uma
> tag de nível alto."},
> { "helpset.wrongParent", "O valor passado para a
> tag {0} não pode ser {1}."},
> { "helpset.unbalanced", "Tag {0} desbalanceada."},
> { "helpset.wrongLocale", "Aviso: xml: atributo
> lang {0} conflitante com o default {1} e com o default {2}"},
> { "helpset.unknownVersion", "Versão {0}
> desconhecida."},
>
> // IndexView messages
> { "index.invalidIndexFormat", "Aviso: Formato
> inválido de índice"},
> { "index.unknownVersion", "Versão {0} desconhecida."},
>
> // TOCView messages
> { "toc.wrongPublicID", "PublicID {0} desconhecido"},
> { "toc.invalidTOCFormat", "Aviso: Formato inválido
> de TOC"},
> { "toc.unknownVersion", "Versão {0} desconhecida."},
>
> // FavoritesView messages
> { "favorites.invalidFavoritesFormat", "Aviso:
> Formato inválido de favoritos"},
> { "favorites.unknownVersion", "Versão {0}
> desconhecida."},
>
> // Map messages
> { "map.wrongPublicID", "PublicID {0} desconhecido"},
> { "map.invalidMapFormat", "Aviso: Formato inválido
> de mapa"},
> { "map.unknownVersion", "Versão {0} desconhecida."},
>
> // GUI components
> // Labels
> { "index.findLabel", "Procurar: "},
>
> { "search.findLabel", "Procurar: "},
> { "search.hitDesc", "Número de ocorrências no
> documento"},
> { "search.qualityDesc", "Valor de penalidade baixa
> no documento" },
> { "search.high", "Alta"},
> { "search.midhigh", "Média alta"},
> { "search.mid", "Média"},
> { "search.midlow", "Média baixa"},
> { "search.low", "Baixa"},
>
> { "favorites.add", "Adicionar"},
> { "favorites.remove", "Remover"},
> { "favorites.folder", "Nova pasta"},
> { "favorites.name ", "Nome"},
> { "favorites.cut", "Recortar"},
> { "favorites.paste", "Colar"},
> { "favorites.copy" , "Copiar"},
>
> { "history.homePage", "Página inicial"},
> { "history.unknownTitle", " > desconhecido>"},
>
> // ToolTips for Actions
> { "tooltip.BackAction", "Página anterior"},
> { "tooltip.ForwardAction", "Próxima página"},
> { "tooltip.PrintAction", "Imprimir"},
> { "tooltip.PrintSetupAction", "Configurar página"},
> { "tooltip.ReloadAction", "Atualizar"},
> { "tooltip.FavoritesAction", "Adicionar à favoritos"},
> { "tooltip.HomeAction", "Página inicial"},
>
> // Accessibility names
> { "access.BackAction", "Página anterior"},
> { "access.ForwardAction", "Próxima página"},
> { "access.HistoryAction", "Histórico"},
> { "access.PrintAction", "Imprimir"},
> { "access.PrintSetupAction", "Configurar página"},
> { "access.ReloadAction", "Atualizar"},
> { "access.HomeAction", "Página inicial"},
> { "access.FavoritesAction", "Adicionar à favoritos"},
> { "access.contentViewer", "Visualizador"}
>
> };
> }
> }
>
> 2009/2/2 Roger Brinkley > >
>
> Check your directory structure in GzHelpIntl. Make sure in
> Constants_pt.java is in a directory something like
> /javax/help/resources (I think it's resources...) which
> corresponds to the package name.
>
> Binky
>
> Renata Andreatti wrote:
>
> And how I do this?
>
> I try like this:
>
> java -cp "GzHelpIntl.jar;jh.jar" -jar MercoFlex.jar
>
> But I still have the problem....
>
> Thanks
> Renata
>
> 2009/2/2 Roger Brinkley > >
>
> Renata Andreatti wrote:
>
> Hello!
>
> People, I still have the problem.
> I think I do everything like David said, but I isn't work!
>
> I do like this:
>
> First, I create a Project named GzHelpIntl. So, I create the
> package javax.help.resources and put my Constants_pt.java in there.
> After this, I create the GzHelpIntl.jar.
>
> So, I create the jar of my main project named MercoFlex.jar.
>
> Finally, I run my project:
>
> java -cp "GzHelpIntl.jar" -jar MercoFlex.jar
>
> But my help is still in English! Where is the mistake?
>
> Sorry for my insistence, but only you are helping me.
>
> Thanks a lot!!!
>
> Renata
>
>
> 2009/1/29 Renata Andreatti > > >>
>
>
>
> Ok... now I understand. :o)
>
> I'll try to do like David explain before.
>
> When I'll have finished, I send other e-mail.
>
> Thanks for now,
> Renata
>
> 2009/1/28 David Cagle >
>
> >>
>
>
>
> Yes Nicolas I believe you are correct. We did this trick with
> the 1.1.3 versions of jh.jar which were not signed. We have
> since abandoned this approach with 2.0* versions because they
> are signed. I should have mentioned that, sorry about that.
> There might be some ways around it but I don't think even
> signing the new translated Jar will do the trick since the
> certificates are different.
>
> -----Original Message-----
> From: Discussion list of JavaHelp
> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >] On Behalf Of Nicolas
> Van Cleemput
> Sent: Tuesday, January 27, 2009 3:58 PM
> To: JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >
>
> Subject: Re: [JAVAHELP] Translate JavaHelp to Portuguese
>
> We tried to do it this way, but there was a problem because the
> translated class and the original classes are in the same
> package. The
> original classes however are in a signed jars, and
> therefore the
> classes in our jar would not load.
>
> Citeren Roger Brinkley >
>
> > >>:
>
>
>
> > That sounds about right.
> >
> > Binky
> >
> > David Cagle wrote:
> >>
> >> Renata, we did something similar a couple of years ago. I
> don't
> >> think you can add to jh.jar for licensing reasons. So what
> we did
> >> was create a separate jar that had our translations in
> it. And
> >> when the application starts up, we add our new jar to the
> classpath.
> >>
> >> Here is a simplified example of what we did...
> >>
> >> - First, we took *Constants.java* and translated
> it...be
> >> sure to keep the property names the same!
> >>
> >> - You also want to make sure your new
> *Constants_pt.java*
> >> class is in the same package as the original Constants*.java
> >> classes in jh.jar. For example, the Constants* classes
> live at
> >> "*javax/help/resources*" in jh.jar, you want your new class
> to live
> >> in the same package name.
> >>
> >> - Say our new Constant translation is added to a
> Jar named
> >> '*javahelp.translations.jar*'
> >>
> >> - The classpath for our application would look
> something
> >> like this: *java --cp
> "jh.jar;javahelp.translations.jar;OurApp.jar"
> >> --jar OurApp*
> >>
> >> If I remember correctly, that is all we did.
> >>
> >> Furthermore, we have also contributed our translations
> to the
> >> JavaHelp Open Source project at:
> https://javahelp.dev.java.net/.
> >> But I don't know where that project stands at the moment.
> >>
> >> Good luck!
> >>
> >> *From:* Discussion list of JavaHelp
> >> [mailto:JAVAHELP-INTEREST@JAVA.SUN.COM
>
> > >] *On Behalf Of *Renata
> >> Andreatti
> >> *Sent:* Tuesday, January 27, 2009 12:58 PM
> >> *To:* JAVAHELP-INTEREST@JAVA.SUN.COM
>
>
> > >
>
> >> *Subject:* [JAVAHELP] Translate JavaHelp to Portuguese
> >>
> >> Hi people!
> >>
> >> For many days I search how to translate the JavaHelp to
> Portuguese
> >> (and possible other languages).
> >>
> >> After many search, I fond this forum and some explanation.
> >>
> >> Now I know that I have to translate the class
> Constants.java and
> >> name it as Constants_pt.java. So I recompile the class.
> >>
> >> After that, I jarred the Constants_pt.class in jh.jar. But
> until
> >> now, it doesn't work!
> >>
> >> If I translate the Constants.java and put the new
> Constants.class
> >> in the jh.jar, it works! But I cannot do this, because I
> need other
> >> languages too...
> >>
> >> Please, how I do to my application run the
> Constants_pt.class create by me?
> >>
> >> Does any other way to translate my JavaHelp? Please... I
> need help.
> >>
> >>
> >> Thanks a lot!
> >> Renata
> >>
> >> PS: Sorry, my English isn't so good.
> >>
> >>
>
> ********************************************************************************
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
>
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >>
>
> ********************************************************************************
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
>
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> >> http://java.sun.com/cgi-bin/bugreport.cgi.
> >>
> >
> >
>
> ********************************************************************************
> >
> > You may leave the list at any time by sending message with
> no subject and
> > "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
>
> > are available at
> > http://archives.java.sun.com/archives/javahelp-interest.html.
> > Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
>
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
>
> LISTSERV@JAVA.SUN.COM
> >.
> Archives
>
>
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> -- Renata Fernanda Andreatti
>
>
>
>
> --
> Renata Fernanda Andreatti
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives are
> available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> I think it has to do with the classpath. Make sure your file is
> ahead of the jh.jar in the classpath.
>
> binky
>
> ********************************************************************************
>
>
>
>
> You may leave the list at any time by sending message with no
> subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM
> . Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives are
> available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives are
> available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives are
> available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no
> subject and "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM . Archives are
> available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>
>
> --
> Renata Fernanda Andreatti
> ********************************************************************************
>
>
> You may leave the list at any time by sending message with no subject
> and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
> Archives are available at
> http://archives.java.sun.com/archives/javahelp-interest.html. Submit
> bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.