Five i18n - Neue Messages sammeln

11 messages Options Options
Embed this Post
Permalink
Peter Zechmeister

Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
Hallo,
ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
automatische Übersetzung der .po Files und das Sammeln von Messages, die
noch nicht im .po/.mo File stehen.
Gibts dafür schon irgendwas?

Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
vergangen und vielleicht hat sich da ja schon was getan?):

http://worldcookery.com/files/fivei18n/


In some other ways, the Zope 3 i18n architecture isn't yet as far
advanced as the other systems. PTS, for example, doesn't require .mo
files to ship with the application. It can simply compile them itself.
Also, both Localizer and PTS support the catching of messages that have
failed to be extracted by the message extraction tool. Of course, given
the flexible nature of the Zope 3 i18n system, it would be easy to write
an extended message catalog implementation that supported both automatic
compliation of .po files as well as collecting unknown messages.

Gx
PeterZ


--
"My theory about this "l33t speak" is that some people realized they
were unable to use their own language properly, and discovered that they
were able to disguise their errors that way."
Ashe Claymore
http://forums.winamp.com/showthread.php?postid=204379




_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope
Stefan Lange-3

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
Hallo Peter,

Am Mittwoch, den 30.01.2008, 17:00 +0100 schrieb Peter Zechmeister:

> Hallo,
> ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
> automatische Übersetzung der .po Files und das Sammeln von Messages, die
> noch nicht im .po/.mo File stehen.
> Gibts dafür schon irgendwas?
>
> Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
> vergangen und vielleicht hat sich da ja schon was getan?):
>
> http://worldcookery.com/files/fivei18n/
>
>
Das hier ist zwar primär für Plone geschrieben worden, könnte Dir aber
auch hilfreiche Tipps bieten:

http://maurits.vanrees.org/weblog/archive/2007/09/i18n-locales-and-plone-3.0

HTH,

Stefan




_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope

signature.asc (196 bytes) Download Attachment
Josef Meile

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Peter Zechmeister
Hallo Peter

Du hast Gluck. Es gibt schon ein Tool, dass das Sammeln von unbekante
Meldungen macht:

http://www.simplistix.co.uk/software/zope/sx.translations

Ich habe dieses Tool sogar gepacht um die .po Dateien automatisch in .mo
zu kompilieren und andere Features:

* Patch: compiling .po in .mo, more verbose missing.pot, default
language, setting prefered languages:
https://secure.simplistix.co.uk/support/issue310

Gruss
Josef


Peter Zechmeister wrote:

> Hallo,
> ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
> automatische Übersetzung der .po Files und das Sammeln von Messages, die
> noch nicht im .po/.mo File stehen.
> Gibts dafür schon irgendwas?
>
> Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
> vergangen und vielleicht hat sich da ja schon was getan?):
>
> http://worldcookery.com/files/fivei18n/
>
>
> In some other ways, the Zope 3 i18n architecture isn't yet as far
> advanced as the other systems. PTS, for example, doesn't require .mo
> files to ship with the application. It can simply compile them itself.
> Also, both Localizer and PTS support the catching of messages that have
> failed to be extracted by the message extraction tool. Of course, given
> the flexible nature of the Zope 3 i18n system, it would be easy to write
> an extended message catalog implementation that supported both automatic
> compliation of .po files as well as collecting unknown messages.
>
> Gx
> PeterZ
>
>
>
>
> ------------------------------------------------------------------------
>
>
>
> _______________________________________________
> zope mailing list
> zope@...
> https://mail.dzug.org/mailman/listinfo/zope



_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope
Josef Meile

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
Ops, das Patch macht auch dieses Tool mit Zope 2.8.x kompatibel, also,
es kann sein, dass es mit zope > 2.9.x nicht funktioniert. Sorry, aber
das ist die Version, die ich im Moment verwende. Du kannst aber immer
noch sehen die Linien, die ich gelöscht habe.

Josef Meile wrote:

> Hallo Peter
>
> Du hast Gluck. Es gibt schon ein Tool, dass das Sammeln von unbekante
> Meldungen macht:
>
> http://www.simplistix.co.uk/software/zope/sx.translations
>
> Ich habe dieses Tool sogar gepacht um die .po Dateien automatisch in .mo
> zu kompilieren und andere Features:
>
> * Patch: compiling .po in .mo, more verbose missing.pot, default
> language, setting prefered languages:
> https://secure.simplistix.co.uk/support/issue310
>
> Gruss
> Josef
>
>
> Peter Zechmeister wrote:
>> Hallo,
>> ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
>> automatische Übersetzung der .po Files und das Sammeln von Messages, die
>> noch nicht im .po/.mo File stehen.
>> Gibts dafür schon irgendwas?
>>
>> Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
>> vergangen und vielleicht hat sich da ja schon was getan?):
>>
>> http://worldcookery.com/files/fivei18n/
>>
>>
>> In some other ways, the Zope 3 i18n architecture isn't yet as far
>> advanced as the other systems. PTS, for example, doesn't require .mo
>> files to ship with the application. It can simply compile them itself.
>> Also, both Localizer and PTS support the catching of messages that have
>> failed to be extracted by the message extraction tool. Of course, given
>> the flexible nature of the Zope 3 i18n system, it would be easy to write
>> an extended message catalog implementation that supported both automatic
>> compliation of .po files as well as collecting unknown messages.
>>
>> Gx
>> PeterZ
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>> _______________________________________________
>> zope mailing list
>> zope@...
>> https://mail.dzug.org/mailman/listinfo/zope
>
>
>
> _______________________________________________
> zope mailing list
> zope@...
> https://mail.dzug.org/mailman/listinfo/zope
>



_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope
Peter Zechmeister

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
Hm...

bekomme ich im event.log beim Zope-Start:

[...]
------
2008-01-31T12:18:53 ERROR Application Couldn't install Five
Traceback (most recent call last):
  File "/opt/zope/Zope_2.10.5/lib/python/OFS/Application.py", line 786,
in install_product
    initmethod(context)
  File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/__init__.py",
line 28, in initialize
    zcml.load_site()
  File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/zcml.py", line
53, in load_site
    _context = xmlconfig.file(file)
  File
"/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
579, in file
    include(context, name, package)
  File
"/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
515, in include
    processxmlfile(f, context)
  File
"/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
370, in processxmlfile
    parser.parse(src)
  File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/xmlreader.py", line
123, in parse
    self.feed(buffer)
  File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
line 348, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
349, in endElementNS
    self.context.end()
  File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
line 544, in end
    self.stack.pop().finish()
  File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
line 691, in finish
    args = toargs(context, *self.argdata)
  File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
line 1383, in toargs
    args[str(name)] = field.fromUnicode(s)
  File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/fields.py",
line 139, in fromUnicode
    value = self.context.resolve(name)
  File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
line 206, in resolve
    return __import__(mname+'.'+oname, *_import_chickens)
  File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
line 11, in ?
    from zope.i18nmessageid import MessageID, Message
ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
line 25.4-25.58
    ImportError: cannot import name MessageID
------
2008-01-31T12:18:53 DEBUG txn.-1208424752 new transaction
------
[...]

Ist ein Zope2.10.5
Wenn ich im Zope-Source nachsehe, finde ich dort auch kein MessageID.
Da dürfte sich noch was geändert haben.
Was tun?

LGrü
PeterZ


Am Mittwoch, den 30.01.2008, 18:31 +0100 schrieb Josef Meile:

> Ops, das Patch macht auch dieses Tool mit Zope 2.8.x kompatibel, also,
> es kann sein, dass es mit zope > 2.9.x nicht funktioniert. Sorry, aber
> das ist die Version, die ich im Moment verwende. Du kannst aber immer
> noch sehen die Linien, die ich gelöscht habe.
>
> Josef Meile wrote:
> > Hallo Peter
> >
> > Du hast Gluck. Es gibt schon ein Tool, dass das Sammeln von unbekante
> > Meldungen macht:
> >
> > http://www.simplistix.co.uk/software/zope/sx.translations
> >
> > Ich habe dieses Tool sogar gepacht um die .po Dateien automatisch in .mo
> > zu kompilieren und andere Features:
> >
> > * Patch: compiling .po in .mo, more verbose missing.pot, default
> > language, setting prefered languages:
> > https://secure.simplistix.co.uk/support/issue310
> >
> > Gruss
> > Josef
> >
> >
> > Peter Zechmeister wrote:
> >> Hallo,
> >> ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
> >> automatische Übersetzung der .po Files und das Sammeln von Messages, die
> >> noch nicht im .po/.mo File stehen.
> >> Gibts dafür schon irgendwas?
> >>
> >> Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
> >> vergangen und vielleicht hat sich da ja schon was getan?):
> >>
> >> http://worldcookery.com/files/fivei18n/
> >>
> >>
> >> In some other ways, the Zope 3 i18n architecture isn't yet as far
> >> advanced as the other systems. PTS, for example, doesn't require .mo
> >> files to ship with the application. It can simply compile them itself.
> >> Also, both Localizer and PTS support the catching of messages that have
> >> failed to be extracted by the message extraction tool. Of course, given
> >> the flexible nature of the Zope 3 i18n system, it would be easy to write
> >> an extended message catalog implementation that supported both automatic
> >> compliation of .po files as well as collecting unknown messages.
> >>
> >> Gx
> >> PeterZ
> >>
> >>
> >>
> >>
> >> ------------------------------------------------------------------------
> >>
> >>
> >>
> >> _______________________________________________
> >> zope mailing list
> >> zope@...
> >> https://mail.dzug.org/mailman/listinfo/zope
> >
> >
> >
> > _______________________________________________
> > zope mailing list
> > zope@...
> > https://mail.dzug.org/mailman/listinfo/zope
> >
>
>
>
> _______________________________________________
> zope mailing list
> zope@...
> https://mail.dzug.org/mailman/listinfo/zope
--
"My theory about this "l33t speak" is that some people realized they
were unable to use their own language properly, and discovered that they
were able to disguise their errors that way."
Ashe Claymore
http://forums.winamp.com/showthread.php?postid=204379




_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope
Josef Meile

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
Ich denke, dass diese Linie:
from zope.i18nmessageid import MessageID, Message

neuerdings so ausehen muss:
from zope.i18nmessageid.messageid import MessageID, Message

Ich bin aber nicht sicher, ob MessageID immer noch in Zope 2.10.x
existiert.

Grüss
Josef

Peter Zechmeister wrote:

> Hm...
>
> bekomme ich im event.log beim Zope-Start:
>
> [...]
> ------
> 2008-01-31T12:18:53 ERROR Application Couldn't install Five
> Traceback (most recent call last):
>   File "/opt/zope/Zope_2.10.5/lib/python/OFS/Application.py", line 786,
> in install_product
>     initmethod(context)
>   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/__init__.py",
> line 28, in initialize
>     zcml.load_site()
>   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/zcml.py", line
> 53, in load_site
>     _context = xmlconfig.file(file)
>   File
> "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> 579, in file
>     include(context, name, package)
>   File
> "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> 515, in include
>     processxmlfile(f, context)
>   File
> "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> 370, in processxmlfile
>     parser.parse(src)
>   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/xmlreader.py", line
> 123, in parse
>     self.feed(buffer)
>   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> line 348, in end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File
> "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> 349, in endElementNS
>     self.context.end()
>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> line 544, in end
>     self.stack.pop().finish()
>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> line 691, in finish
>     args = toargs(context, *self.argdata)
>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> line 1383, in toargs
>     args[str(name)] = field.fromUnicode(s)
>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/fields.py",
> line 139, in fromUnicode
>     value = self.context.resolve(name)
>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> line 206, in resolve
>     return __import__(mname+'.'+oname, *_import_chickens)
>   File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
> line 11, in ?
>     from zope.i18nmessageid import MessageID, Message
> ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
> line 25.4-25.58
>     ImportError: cannot import name MessageID
> ------
> 2008-01-31T12:18:53 DEBUG txn.-1208424752 new transaction
> ------
> [...]
>
> Ist ein Zope2.10.5
> Wenn ich im Zope-Source nachsehe, finde ich dort auch kein MessageID.
> Da dürfte sich noch was geändert haben.
> Was tun?
>
> LGrü
> PeterZ
>
>
> Am Mittwoch, den 30.01.2008, 18:31 +0100 schrieb Josef Meile:
>> Ops, das Patch macht auch dieses Tool mit Zope 2.8.x kompatibel, also,
>> es kann sein, dass es mit zope > 2.9.x nicht funktioniert. Sorry, aber
>> das ist die Version, die ich im Moment verwende. Du kannst aber immer
>> noch sehen die Linien, die ich gelöscht habe.
>>
>> Josef Meile wrote:
>>> Hallo Peter
>>>
>>> Du hast Gluck. Es gibt schon ein Tool, dass das Sammeln von unbekante
>>> Meldungen macht:
>>>
>>> http://www.simplistix.co.uk/software/zope/sx.translations
>>>
>>> Ich habe dieses Tool sogar gepacht um die .po Dateien automatisch in .mo
>>> zu kompilieren und andere Features:
>>>
>>> * Patch: compiling .po in .mo, more verbose missing.pot, default
>>> language, setting prefered languages:
>>> https://secure.simplistix.co.uk/support/issue310
>>>
>>> Gruss
>>> Josef
>>>
>>>
>>> Peter Zechmeister wrote:
>>>> Hallo,
>>>> ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
>>>> automatische Übersetzung der .po Files und das Sammeln von Messages, die
>>>> noch nicht im .po/.mo File stehen.
>>>> Gibts dafür schon irgendwas?
>>>>
>>>> Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
>>>> vergangen und vielleicht hat sich da ja schon was getan?):
>>>>
>>>> http://worldcookery.com/files/fivei18n/
>>>>
>>>>
>>>> In some other ways, the Zope 3 i18n architecture isn't yet as far
>>>> advanced as the other systems. PTS, for example, doesn't require .mo
>>>> files to ship with the application. It can simply compile them itself.
>>>> Also, both Localizer and PTS support the catching of messages that have
>>>> failed to be extracted by the message extraction tool. Of course, given
>>>> the flexible nature of the Zope 3 i18n system, it would be easy to write
>>>> an extended message catalog implementation that supported both automatic
>>>> compliation of .po files as well as collecting unknown messages.
>>>>
>>>> Gx
>>>> PeterZ
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> zope mailing list
>>>> zope@...
>>>> https://mail.dzug.org/mailman/listinfo/zope
>>>
>>>
>>> _______________________________________________
>>> zope mailing list
>>> zope@...
>>> https://mail.dzug.org/mailman/listinfo/zope
>>>
>>
>>
>> _______________________________________________
>> zope mailing list
>> zope@...
>> https://mail.dzug.org/mailman/listinfo/zope
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>> _______________________________________________
>> zope mailing list
>> zope@...
>> https://mail.dzug.org/mailman/listinfo/zope



_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope
Peter Zechmeister

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
Leider nicht:

  File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
line 11, in ?
    from zope.i18nmessageid.messageid import MessageID, Message
ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
line 25.4-25.58
    ImportError: No module named messageid

Gx
PeterZ

Am Donnerstag, den 31.01.2008, 13:03 +0100 schrieb Josef Meile:

> Ich denke, dass diese Linie:
> from zope.i18nmessageid import MessageID, Message
>
> neuerdings so ausehen muss:
> from zope.i18nmessageid.messageid import MessageID, Message
>
> Ich bin aber nicht sicher, ob MessageID immer noch in Zope 2.10.x
> existiert.
>
> Grüss
> Josef
>
> Peter Zechmeister wrote:
> > Hm...
> >
> > bekomme ich im event.log beim Zope-Start:
> >
> > [...]
> > ------
> > 2008-01-31T12:18:53 ERROR Application Couldn't install Five
> > Traceback (most recent call last):
> >   File "/opt/zope/Zope_2.10.5/lib/python/OFS/Application.py", line 786,
> > in install_product
> >     initmethod(context)
> >   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/__init__.py",
> > line 28, in initialize
> >     zcml.load_site()
> >   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/zcml.py", line
> > 53, in load_site
> >     _context = xmlconfig.file(file)
> >   File
> > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > 579, in file
> >     include(context, name, package)
> >   File
> > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > 515, in include
> >     processxmlfile(f, context)
> >   File
> > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > 370, in processxmlfile
> >     parser.parse(src)
> >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> > line 107, in parse
> >     xmlreader.IncrementalParser.parse(self, source)
> >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/xmlreader.py", line
> > 123, in parse
> >     self.feed(buffer)
> >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> > line 207, in feed
> >     self._parser.Parse(data, isFinal)
> >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> > line 348, in end_element_ns
> >     self._cont_handler.endElementNS(pair, None)
> >   File
> > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > 349, in endElementNS
> >     self.context.end()
> >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > line 544, in end
> >     self.stack.pop().finish()
> >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > line 691, in finish
> >     args = toargs(context, *self.argdata)
> >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > line 1383, in toargs
> >     args[str(name)] = field.fromUnicode(s)
> >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/fields.py",
> > line 139, in fromUnicode
> >     value = self.context.resolve(name)
> >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > line 206, in resolve
> >     return __import__(mname+'.'+oname, *_import_chickens)
> >   File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
> > line 11, in ?
> >     from zope.i18nmessageid import MessageID, Message
> > ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
> > line 25.4-25.58
> >     ImportError: cannot import name MessageID
> > ------
> > 2008-01-31T12:18:53 DEBUG txn.-1208424752 new transaction
> > ------
> > [...]
> >
> > Ist ein Zope2.10.5
> > Wenn ich im Zope-Source nachsehe, finde ich dort auch kein MessageID.
> > Da dürfte sich noch was geändert haben.
> > Was tun?
> >
> > LGrü
> > PeterZ
> >
> >
> > Am Mittwoch, den 30.01.2008, 18:31 +0100 schrieb Josef Meile:
> >> Ops, das Patch macht auch dieses Tool mit Zope 2.8.x kompatibel, also,
> >> es kann sein, dass es mit zope > 2.9.x nicht funktioniert. Sorry, aber
> >> das ist die Version, die ich im Moment verwende. Du kannst aber immer
> >> noch sehen die Linien, die ich gelöscht habe.
> >>
> >> Josef Meile wrote:
> >>> Hallo Peter
> >>>
> >>> Du hast Gluck. Es gibt schon ein Tool, dass das Sammeln von unbekante
> >>> Meldungen macht:
> >>>
> >>> http://www.simplistix.co.uk/software/zope/sx.translations
> >>>
> >>> Ich habe dieses Tool sogar gepacht um die .po Dateien automatisch in .mo
> >>> zu kompilieren und andere Features:
> >>>
> >>> * Patch: compiling .po in .mo, more verbose missing.pot, default
> >>> language, setting prefered languages:
> >>> https://secure.simplistix.co.uk/support/issue310
> >>>
> >>> Gruss
> >>> Josef
> >>>
> >>>
> >>> Peter Zechmeister wrote:
> >>>> Hallo,
> >>>> ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
> >>>> automatische Übersetzung der .po Files und das Sammeln von Messages, die
> >>>> noch nicht im .po/.mo File stehen.
> >>>> Gibts dafür schon irgendwas?
> >>>>
> >>>> Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
> >>>> vergangen und vielleicht hat sich da ja schon was getan?):
> >>>>
> >>>> http://worldcookery.com/files/fivei18n/
> >>>>
> >>>>
> >>>> In some other ways, the Zope 3 i18n architecture isn't yet as far
> >>>> advanced as the other systems. PTS, for example, doesn't require .mo
> >>>> files to ship with the application. It can simply compile them itself.
> >>>> Also, both Localizer and PTS support the catching of messages that have
> >>>> failed to be extracted by the message extraction tool. Of course, given
> >>>> the flexible nature of the Zope 3 i18n system, it would be easy to write
> >>>> an extended message catalog implementation that supported both automatic
> >>>> compliation of .po files as well as collecting unknown messages.
> >>>>
> >>>> Gx
> >>>> PeterZ
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> ------------------------------------------------------------------------
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> zope mailing list
> >>>> zope@...
> >>>> https://mail.dzug.org/mailman/listinfo/zope
> >>>
> >>>
> >>> _______________________________________________
> >>> zope mailing list
> >>> zope@...
> >>> https://mail.dzug.org/mailman/listinfo/zope
> >>>
> >>
> >>
> >> _______________________________________________
> >> zope mailing list
> >> zope@...
> >> https://mail.dzug.org/mailman/listinfo/zope
> >>
> >> ------------------------------------------------------------------------
> >>
> >>
> >>
> >> _______________________________________________
> >> zope mailing list
> >> zope@...
> >> https://mail.dzug.org/mailman/listinfo/zope
>
>
>
> _______________________________________________
> zope mailing list
> zope@...
> https://mail.dzug.org/mailman/listinfo/zope
--
"My theory about this "l33t speak" is that some people realized they
were unable to use their own language properly, and discovered that they
were able to disguise their errors that way."
Ashe Claymore
http://forums.winamp.com/showthread.php?postid=204379




_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope
Josef Meile

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
Ich habe Zope 2.10.5 Quellcode angeschaut und dort gesehen:

from zope.i18nmessageid import Message

Also, was ich vorher gesagt habe war falsch. Das import ist richtig,
aber es gibt kein MessageID mehr, so, du muss dieses Modul von import
löschen und diese Linie von translations/__init__.py ersätzen:

if isinstance(msgid, (Message, MessageID)):

für

if isinstance(msgid, Message):

Gruss
Josef




>   File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
> line 11, in ?
>     from zope.i18nmessageid.messageid import MessageID, Message
> ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
> line 25.4-25.58
>     ImportError: No module named messageid
>
> Gx
> PeterZ
>
> Am Donnerstag, den 31.01.2008, 13:03 +0100 schrieb Josef Meile:
>> Ich denke, dass diese Linie:
>> from zope.i18nmessageid import MessageID, Message
>>
>> neuerdings so ausehen muss:
>> from zope.i18nmessageid.messageid import MessageID, Message
>>
>> Ich bin aber nicht sicher, ob MessageID immer noch in Zope 2.10.x
>> existiert.
>>
>> Grüss
>> Josef
>>
>> Peter Zechmeister wrote:
>>> Hm...
>>>
>>> bekomme ich im event.log beim Zope-Start:
>>>
>>> [...]
>>> ------
>>> 2008-01-31T12:18:53 ERROR Application Couldn't install Five
>>> Traceback (most recent call last):
>>>   File "/opt/zope/Zope_2.10.5/lib/python/OFS/Application.py", line 786,
>>> in install_product
>>>     initmethod(context)
>>>   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/__init__.py",
>>> line 28, in initialize
>>>     zcml.load_site()
>>>   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/zcml.py", line
>>> 53, in load_site
>>>     _context = xmlconfig.file(file)
>>>   File
>>> "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
>>> 579, in file
>>>     include(context, name, package)
>>>   File
>>> "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
>>> 515, in include
>>>     processxmlfile(f, context)
>>>   File
>>> "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
>>> 370, in processxmlfile
>>>     parser.parse(src)
>>>   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
>>> line 107, in parse
>>>     xmlreader.IncrementalParser.parse(self, source)
>>>   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/xmlreader.py", line
>>> 123, in parse
>>>     self.feed(buffer)
>>>   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
>>> line 207, in feed
>>>     self._parser.Parse(data, isFinal)
>>>   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
>>> line 348, in end_element_ns
>>>     self._cont_handler.endElementNS(pair, None)
>>>   File
>>> "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
>>> 349, in endElementNS
>>>     self.context.end()
>>>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
>>> line 544, in end
>>>     self.stack.pop().finish()
>>>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
>>> line 691, in finish
>>>     args = toargs(context, *self.argdata)
>>>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
>>> line 1383, in toargs
>>>     args[str(name)] = field.fromUnicode(s)
>>>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/fields.py",
>>> line 139, in fromUnicode
>>>     value = self.context.resolve(name)
>>>   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
>>> line 206, in resolve
>>>     return __import__(mname+'.'+oname, *_import_chickens)
>>>   File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
>>> line 11, in ?
>>>     from zope.i18nmessageid import MessageID, Message
>>> ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
>>> line 25.4-25.58
>>>     ImportError: cannot import name MessageID
>>> ------
>>> 2008-01-31T12:18:53 DEBUG txn.-1208424752 new transaction
>>> ------
>>> [...]
>>>
>>> Ist ein Zope2.10.5
>>> Wenn ich im Zope-Source nachsehe, finde ich dort auch kein MessageID.
>>> Da dürfte sich noch was geändert haben.
>>> Was tun?
>>>
>>> LGrü
>>> PeterZ
>>>
>>>
>>> Am Mittwoch, den 30.01.2008, 18:31 +0100 schrieb Josef Meile:
>>>> Ops, das Patch macht auch dieses Tool mit Zope 2.8.x kompatibel, also,
>>>> es kann sein, dass es mit zope > 2.9.x nicht funktioniert. Sorry, aber
>>>> das ist die Version, die ich im Moment verwende. Du kannst aber immer
>>>> noch sehen die Linien, die ich gelöscht habe.
>>>>
>>>> Josef Meile wrote:
>>>>> Hallo Peter
>>>>>
>>>>> Du hast Gluck. Es gibt schon ein Tool, dass das Sammeln von unbekante
>>>>> Meldungen macht:
>>>>>
>>>>> http://www.simplistix.co.uk/software/zope/sx.translations
>>>>>
>>>>> Ich habe dieses Tool sogar gepacht um die .po Dateien automatisch in .mo
>>>>> zu kompilieren und andere Features:
>>>>>
>>>>> * Patch: compiling .po in .mo, more verbose missing.pot, default
>>>>> language, setting prefered languages:
>>>>> https://secure.simplistix.co.uk/support/issue310
>>>>>
>>>>> Gruss
>>>>> Josef
>>>>>
>>>>>
>>>>> Peter Zechmeister wrote:
>>>>>> Hallo,
>>>>>> ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
>>>>>> automatische Übersetzung der .po Files und das Sammeln von Messages, die
>>>>>> noch nicht im .po/.mo File stehen.
>>>>>> Gibts dafür schon irgendwas?
>>>>>>
>>>>>> Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
>>>>>> vergangen und vielleicht hat sich da ja schon was getan?):
>>>>>>
>>>>>> http://worldcookery.com/files/fivei18n/
>>>>>>
>>>>>>
>>>>>> In some other ways, the Zope 3 i18n architecture isn't yet as far
>>>>>> advanced as the other systems. PTS, for example, doesn't require .mo
>>>>>> files to ship with the application. It can simply compile them itself.
>>>>>> Also, both Localizer and PTS support the catching of messages that have
>>>>>> failed to be extracted by the message extraction tool. Of course, given
>>>>>> the flexible nature of the Zope 3 i18n system, it would be easy to write
>>>>>> an extended message catalog implementation that supported both automatic
>>>>>> compliation of .po files as well as collecting unknown messages.
>>>>>>
>>>>>> Gx
>>>>>> PeterZ
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> zope mailing list
>>>>>> zope@...
>>>>>> https://mail.dzug.org/mailman/listinfo/zope
>>>>>
>>>>> _______________________________________________
>>>>> zope mailing list
>>>>> zope@...
>>>>> https://mail.dzug.org/mailman/listinfo/zope
>>>>>
>>>>
>>>> _______________________________________________
>>>> zope mailing list
>>>> zope@...
>>>> https://mail.dzug.org/mailman/listinfo/zope
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> zope mailing list
>>>> zope@...
>>>> https://mail.dzug.org/mailman/listinfo/zope
>>
>>
>> _______________________________________________
>> zope mailing list
>> zope@...
>> https://mail.dzug.org/mailman/listinfo/zope
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>> _______________________________________________
>> zope mailing list
>> zope@...
>> https://mail.dzug.org/mailman/listinfo/zope



_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope
Peter Zechmeister

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Peter Zechmeister
Supi! Das klappt jetzt. Danke für deinen Support!

Allerdings hab ich auch noch Probleme mit dem Einspielen der Patches.
Ich versuche das so:

$ patch -p1 <../sx.patch
patching file Tools/msgfmt.py
patching file Tools/Readme.txt
patching file translations/__init__.py
Hunk #1 FAILED at 6.
Hunk #2 FAILED at 51.
Hunk #3 FAILED at 68.
Hunk #4 FAILED at 114.
Hunk #5 FAILED at 152.
Hunk #6 FAILED at 176.
6 out of 6 hunks FAILED -- saving rejects to file
translations/__init__.py.rej
patching file translations/meta.zcml
Hunk #1 FAILED at 9.
1 out of 1 hunk FAILED -- saving rejects to file
translations/meta.zcml.rej
patching file translations/zcml.py
Hunk #1 FAILED at 6.
Hunk #2 FAILED at 44.
Hunk #3 FAILED at 84.
3 out of 3 hunks FAILED -- saving rejects to file
translations/zcml.py.rej
$

Das passiert mit den Originaldateien von deiner Homepage (vor der
Änderung, die du vorhin vorgeschlagen hast).

Vermutlich mache ich noch irgendwas mit patch falsch?

Gx
PeterZ


Da das mit dem Reply bei deinem letzten Posting nicht hinhaut, zitiere
ich es hier nochmal:

"""
Ich habe Zope 2.10.5 Quellcode angeschaut und dort gesehen:

from zope.i18nmessageid import Message

Also, was ich vorher gesagt habe war falsch. Das import ist richtig,
aber es gibt kein MessageID mehr, so, du muss dieses Modul von import
löschen und diese Linie von translations/__init__.py ersätzen:

if isinstance(msgid, (Message, MessageID)):

für

if isinstance(msgid, Message):

Gruss
Josef
"""



Am Donnerstag, den 31.01.2008, 13:12 +0100 schrieb Peter Zechmeister:

> Leider nicht:
>
>   File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
> line 11, in ?
>     from zope.i18nmessageid.messageid import MessageID, Message
> ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
> line 25.4-25.58
>     ImportError: No module named messageid
>
> Gx
> PeterZ
>
> Am Donnerstag, den 31.01.2008, 13:03 +0100 schrieb Josef Meile:
> > Ich denke, dass diese Linie:
> > from zope.i18nmessageid import MessageID, Message
> >
> > neuerdings so ausehen muss:
> > from zope.i18nmessageid.messageid import MessageID, Message
> >
> > Ich bin aber nicht sicher, ob MessageID immer noch in Zope 2.10.x
> > existiert.
> >
> > Grüss
> > Josef
> >
> > Peter Zechmeister wrote:
> > > Hm...
> > >
> > > bekomme ich im event.log beim Zope-Start:
> > >
> > > [...]
> > > ------
> > > 2008-01-31T12:18:53 ERROR Application Couldn't install Five
> > > Traceback (most recent call last):
> > >   File "/opt/zope/Zope_2.10.5/lib/python/OFS/Application.py", line 786,
> > > in install_product
> > >     initmethod(context)
> > >   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/__init__.py",
> > > line 28, in initialize
> > >     zcml.load_site()
> > >   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/zcml.py", line
> > > 53, in load_site
> > >     _context = xmlconfig.file(file)
> > >   File
> > > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > > 579, in file
> > >     include(context, name, package)
> > >   File
> > > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > > 515, in include
> > >     processxmlfile(f, context)
> > >   File
> > > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > > 370, in processxmlfile
> > >     parser.parse(src)
> > >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> > > line 107, in parse
> > >     xmlreader.IncrementalParser.parse(self, source)
> > >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/xmlreader.py", line
> > > 123, in parse
> > >     self.feed(buffer)
> > >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> > > line 207, in feed
> > >     self._parser.Parse(data, isFinal)
> > >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> > > line 348, in end_element_ns
> > >     self._cont_handler.endElementNS(pair, None)
> > >   File
> > > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > > 349, in endElementNS
> > >     self.context.end()
> > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > > line 544, in end
> > >     self.stack.pop().finish()
> > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > > line 691, in finish
> > >     args = toargs(context, *self.argdata)
> > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > > line 1383, in toargs
> > >     args[str(name)] = field.fromUnicode(s)
> > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/fields.py",
> > > line 139, in fromUnicode
> > >     value = self.context.resolve(name)
> > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > > line 206, in resolve
> > >     return __import__(mname+'.'+oname, *_import_chickens)
> > >   File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
> > > line 11, in ?
> > >     from zope.i18nmessageid import MessageID, Message
> > > ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
> > > line 25.4-25.58
> > >     ImportError: cannot import name MessageID
> > > ------
> > > 2008-01-31T12:18:53 DEBUG txn.-1208424752 new transaction
> > > ------
> > > [...]
> > >
> > > Ist ein Zope2.10.5
> > > Wenn ich im Zope-Source nachsehe, finde ich dort auch kein MessageID.
> > > Da dürfte sich noch was geändert haben.
> > > Was tun?
> > >
> > > LGrü
> > > PeterZ
> > >
> > >
> > > Am Mittwoch, den 30.01.2008, 18:31 +0100 schrieb Josef Meile:
> > >> Ops, das Patch macht auch dieses Tool mit Zope 2.8.x kompatibel, also,
> > >> es kann sein, dass es mit zope > 2.9.x nicht funktioniert. Sorry, aber
> > >> das ist die Version, die ich im Moment verwende. Du kannst aber immer
> > >> noch sehen die Linien, die ich gelöscht habe.
> > >>
> > >> Josef Meile wrote:
> > >>> Hallo Peter
> > >>>
> > >>> Du hast Gluck. Es gibt schon ein Tool, dass das Sammeln von unbekante
> > >>> Meldungen macht:
> > >>>
> > >>> http://www.simplistix.co.uk/software/zope/sx.translations
> > >>>
> > >>> Ich habe dieses Tool sogar gepacht um die .po Dateien automatisch in .mo
> > >>> zu kompilieren und andere Features:
> > >>>
> > >>> * Patch: compiling .po in .mo, more verbose missing.pot, default
> > >>> language, setting prefered languages:
> > >>> https://secure.simplistix.co.uk/support/issue310
> > >>>
> > >>> Gruss
> > >>> Josef
> > >>>
> > >>>
> > >>> Peter Zechmeister wrote:
> > >>>> Hallo,
> > >>>> ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
> > >>>> automatische Übersetzung der .po Files und das Sammeln von Messages, die
> > >>>> noch nicht im .po/.mo File stehen.
> > >>>> Gibts dafür schon irgendwas?
> > >>>>
> > >>>> Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
> > >>>> vergangen und vielleicht hat sich da ja schon was getan?):
> > >>>>
> > >>>> http://worldcookery.com/files/fivei18n/
> > >>>>
> > >>>>
> > >>>> In some other ways, the Zope 3 i18n architecture isn't yet as far
> > >>>> advanced as the other systems. PTS, for example, doesn't require .mo
> > >>>> files to ship with the application. It can simply compile them itself.
> > >>>> Also, both Localizer and PTS support the catching of messages that have
> > >>>> failed to be extracted by the message extraction tool. Of course, given
> > >>>> the flexible nature of the Zope 3 i18n system, it would be easy to write
> > >>>> an extended message catalog implementation that supported both automatic
> > >>>> compliation of .po files as well as collecting unknown messages.
> > >>>>
> > >>>> Gx
> > >>>> PeterZ
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> ------------------------------------------------------------------------
> > >>>>
> > >>>>
> > >>>>
> > >>>> _______________________________________________
> > >>>> zope mailing list
> > >>>> zope@...
> > >>>> https://mail.dzug.org/mailman/listinfo/zope
> > >>>
> > >>>
> > >>> _______________________________________________
> > >>> zope mailing list
> > >>> zope@...
> > >>> https://mail.dzug.org/mailman/listinfo/zope
> > >>>
> > >>
> > >>
> > >> _______________________________________________
> > >> zope mailing list
> > >> zope@...
> > >> https://mail.dzug.org/mailman/listinfo/zope
> > >>
> > >> ------------------------------------------------------------------------
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> zope mailing list
> > >> zope@...
> > >> https://mail.dzug.org/mailman/listinfo/zope
> >
> >
> >
> > _______________________________________________
> > zope mailing list
> > zope@...
> > https://mail.dzug.org/mailman/listinfo/zope
>
> _______________________________________________
> zope mailing list
> zope@...
> https://mail.dzug.org/mailman/listinfo/zope
--
"My theory about this "l33t speak" is that some people realized they
were unable to use their own language properly, and discovered that they
were able to disguise their errors that way."
Ashe Claymore
http://forums.winamp.com/showthread.php?postid=204379




_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope
Peter Zechmeister

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
Hallo Josef,
könntest du eine gepatchte Version online stellen?
Gx
PeterZ

Am Donnerstag, den 31.01.2008, 14:08 +0100 schrieb Peter Zechmeister:

> Supi! Das klappt jetzt. Danke für deinen Support!
>
> Allerdings hab ich auch noch Probleme mit dem Einspielen der Patches.
> Ich versuche das so:
>
> $ patch -p1 <../sx.patch
> patching file Tools/msgfmt.py
> patching file Tools/Readme.txt
> patching file translations/__init__.py
> Hunk #1 FAILED at 6.
> Hunk #2 FAILED at 51.
> Hunk #3 FAILED at 68.
> Hunk #4 FAILED at 114.
> Hunk #5 FAILED at 152.
> Hunk #6 FAILED at 176.
> 6 out of 6 hunks FAILED -- saving rejects to file
> translations/__init__.py.rej
> patching file translations/meta.zcml
> Hunk #1 FAILED at 9.
> 1 out of 1 hunk FAILED -- saving rejects to file
> translations/meta.zcml.rej
> patching file translations/zcml.py
> Hunk #1 FAILED at 6.
> Hunk #2 FAILED at 44.
> Hunk #3 FAILED at 84.
> 3 out of 3 hunks FAILED -- saving rejects to file
> translations/zcml.py.rej
> $
>
> Das passiert mit den Originaldateien von deiner Homepage (vor der
> Änderung, die du vorhin vorgeschlagen hast).
>
> Vermutlich mache ich noch irgendwas mit patch falsch?
>
> Gx
> PeterZ
>
>
> Da das mit dem Reply bei deinem letzten Posting nicht hinhaut, zitiere
> ich es hier nochmal:
>
> """
> Ich habe Zope 2.10.5 Quellcode angeschaut und dort gesehen:
>
> from zope.i18nmessageid import Message
>
> Also, was ich vorher gesagt habe war falsch. Das import ist richtig,
> aber es gibt kein MessageID mehr, so, du muss dieses Modul von import
> löschen und diese Linie von translations/__init__.py ersätzen:
>
> if isinstance(msgid, (Message, MessageID)):
>
> für
>
> if isinstance(msgid, Message):
>
> Gruss
> Josef
> """
>
>
>
> Am Donnerstag, den 31.01.2008, 13:12 +0100 schrieb Peter Zechmeister:
> > Leider nicht:
> >
> >   File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
> > line 11, in ?
> >     from zope.i18nmessageid.messageid import MessageID, Message
> > ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
> > line 25.4-25.58
> >     ImportError: No module named messageid
> >
> > Gx
> > PeterZ
> >
> > Am Donnerstag, den 31.01.2008, 13:03 +0100 schrieb Josef Meile:
> > > Ich denke, dass diese Linie:
> > > from zope.i18nmessageid import MessageID, Message
> > >
> > > neuerdings so ausehen muss:
> > > from zope.i18nmessageid.messageid import MessageID, Message
> > >
> > > Ich bin aber nicht sicher, ob MessageID immer noch in Zope 2.10.x
> > > existiert.
> > >
> > > Grüss
> > > Josef
> > >
> > > Peter Zechmeister wrote:
> > > > Hm...
> > > >
> > > > bekomme ich im event.log beim Zope-Start:
> > > >
> > > > [...]
> > > > ------
> > > > 2008-01-31T12:18:53 ERROR Application Couldn't install Five
> > > > Traceback (most recent call last):
> > > >   File "/opt/zope/Zope_2.10.5/lib/python/OFS/Application.py", line 786,
> > > > in install_product
> > > >     initmethod(context)
> > > >   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/__init__.py",
> > > > line 28, in initialize
> > > >     zcml.load_site()
> > > >   File "/opt/zope/Zope_2.10.5/lib/python/Products/Five/zcml.py", line
> > > > 53, in load_site
> > > >     _context = xmlconfig.file(file)
> > > >   File
> > > > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > > > 579, in file
> > > >     include(context, name, package)
> > > >   File
> > > > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > > > 515, in include
> > > >     processxmlfile(f, context)
> > > >   File
> > > > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > > > 370, in processxmlfile
> > > >     parser.parse(src)
> > > >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> > > > line 107, in parse
> > > >     xmlreader.IncrementalParser.parse(self, source)
> > > >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/xmlreader.py", line
> > > > 123, in parse
> > > >     self.feed(buffer)
> > > >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> > > > line 207, in feed
> > > >     self._parser.Parse(data, isFinal)
> > > >   File "/opt/zope/Python2.4.4//lib/python2.4/xml/sax/expatreader.py",
> > > > line 348, in end_element_ns
> > > >     self._cont_handler.endElementNS(pair, None)
> > > >   File
> > > > "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/xmlconfig.py", line
> > > > 349, in endElementNS
> > > >     self.context.end()
> > > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > > > line 544, in end
> > > >     self.stack.pop().finish()
> > > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > > > line 691, in finish
> > > >     args = toargs(context, *self.argdata)
> > > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > > > line 1383, in toargs
> > > >     args[str(name)] = field.fromUnicode(s)
> > > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/fields.py",
> > > > line 139, in fromUnicode
> > > >     value = self.context.resolve(name)
> > > >   File "/opt/zope/Zope_2.10.5/lib/python/zope/configuration/config.py",
> > > > line 206, in resolve
> > > >     return __import__(mname+'.'+oname, *_import_chickens)
> > > >   File "/opt/zope/ZopeInstance/lib/python/sx/translations/__init__.py",
> > > > line 11, in ?
> > > >     from zope.i18nmessageid import MessageID, Message
> > > > ZopeXMLConfigurationError: File "/opt/zope/ZopeInstance/etc/site.zcml",
> > > > line 25.4-25.58
> > > >     ImportError: cannot import name MessageID
> > > > ------
> > > > 2008-01-31T12:18:53 DEBUG txn.-1208424752 new transaction
> > > > ------
> > > > [...]
> > > >
> > > > Ist ein Zope2.10.5
> > > > Wenn ich im Zope-Source nachsehe, finde ich dort auch kein MessageID.
> > > > Da dürfte sich noch was geändert haben.
> > > > Was tun?
> > > >
> > > > LGrü
> > > > PeterZ
> > > >
> > > >
> > > > Am Mittwoch, den 30.01.2008, 18:31 +0100 schrieb Josef Meile:
> > > >> Ops, das Patch macht auch dieses Tool mit Zope 2.8.x kompatibel, also,
> > > >> es kann sein, dass es mit zope > 2.9.x nicht funktioniert. Sorry, aber
> > > >> das ist die Version, die ich im Moment verwende. Du kannst aber immer
> > > >> noch sehen die Linien, die ich gelöscht habe.
> > > >>
> > > >> Josef Meile wrote:
> > > >>> Hallo Peter
> > > >>>
> > > >>> Du hast Gluck. Es gibt schon ein Tool, dass das Sammeln von unbekante
> > > >>> Meldungen macht:
> > > >>>
> > > >>> http://www.simplistix.co.uk/software/zope/sx.translations
> > > >>>
> > > >>> Ich habe dieses Tool sogar gepacht um die .po Dateien automatisch in .mo
> > > >>> zu kompilieren und andere Features:
> > > >>>
> > > >>> * Patch: compiling .po in .mo, more verbose missing.pot, default
> > > >>> language, setting prefered languages:
> > > >>> https://secure.simplistix.co.uk/support/issue310
> > > >>>
> > > >>> Gruss
> > > >>> Josef
> > > >>>
> > > >>>
> > > >>> Peter Zechmeister wrote:
> > > >>>> Hallo,
> > > >>>> ich arbeite mich gerade in i18n mit Five ein. Was mir da fehlt, ist die
> > > >>>> automatische Übersetzung der .po Files und das Sammeln von Messages, die
> > > >>>> noch nicht im .po/.mo File stehen.
> > > >>>> Gibts dafür schon irgendwas?
> > > >>>>
> > > >>>> Ich habe das auch hier gefunden (inzwischen ist aber schon einige Zeit
> > > >>>> vergangen und vielleicht hat sich da ja schon was getan?):
> > > >>>>
> > > >>>> http://worldcookery.com/files/fivei18n/
> > > >>>>
> > > >>>>
> > > >>>> In some other ways, the Zope 3 i18n architecture isn't yet as far
> > > >>>> advanced as the other systems. PTS, for example, doesn't require .mo
> > > >>>> files to ship with the application. It can simply compile them itself.
> > > >>>> Also, both Localizer and PTS support the catching of messages that have
> > > >>>> failed to be extracted by the message extraction tool. Of course, given
> > > >>>> the flexible nature of the Zope 3 i18n system, it would be easy to write
> > > >>>> an extended message catalog implementation that supported both automatic
> > > >>>> compliation of .po files as well as collecting unknown messages.
> > > >>>>
> > > >>>> Gx
> > > >>>> PeterZ
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>> ------------------------------------------------------------------------
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>> _______________________________________________
> > > >>>> zope mailing list
> > > >>>> zope@...
> > > >>>> https://mail.dzug.org/mailman/listinfo/zope
> > > >>>
> > > >>>
> > > >>> _______________________________________________
> > > >>> zope mailing list
> > > >>> zope@...
> > > >>> https://mail.dzug.org/mailman/listinfo/zope
> > > >>>
> > > >>
> > > >>
> > > >> _______________________________________________
> > > >> zope mailing list
> > > >> zope@...
> > > >> https://mail.dzug.org/mailman/listinfo/zope
> > > >>
> > > >> ------------------------------------------------------------------------
> > > >>
> > > >>
> > > >>
> > > >> _______________________________________________
> > > >> zope mailing list
> > > >> zope@...
> > > >> https://mail.dzug.org/mailman/listinfo/zope
> > >
> > >
> > >
> > > _______________________________________________
> > > zope mailing list
> > > zope@...
> > > https://mail.dzug.org/mailman/listinfo/zope
> >
> > _______________________________________________
> > zope mailing list
> > zope@...
> > https://mail.dzug.org/mailman/listinfo/zope
>
> _______________________________________________
> zope mailing list
> zope@...
> https://mail.dzug.org/mailman/listinfo/zope
--
"My theory about this "l33t speak" is that some people realized they
were unable to use their own language properly, and discovered that they
were able to disguise their errors that way."
Ashe Claymore
http://forums.winamp.com/showthread.php?postid=204379




_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope
Josef Meile

Re: Five i18n - Neue Messages sammeln

Reply Threaded MoreMore options
Print post
Permalink
Hallo Peter,

> könntest du eine gepatchte Version online stellen?
Ich schicke dir eine Komprimierte Datei. Ich habe leider keine Webseite,
wo ich es speichern kann.


>> Allerdings hab ich auch noch Probleme mit dem Einspielen der Patches.
>> Ich versuche das so:
>>
>> $ patch -p1 <../sx.patch
Ja, Irgendetwas stimmt nicht mit der Patch-Datei.


Gruss
Josef


_______________________________________________
zope mailing list
zope@...
https://mail.dzug.org/mailman/listinfo/zope