Using ZBabel from a Python Script ?
Hello, I have a script which resturns some strings based on different results. Now I am using ZBabel to create a multi-lingual site ... I was just wondering if I in any way could translate those string with ZBabel ??? -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org ICQ: 26680028 Quote of the day: Jump right in. The best way to learn (IMNSHO) is to screw up. Build things, read other peoples code, and ask lots of questions that you may think are dumb. - Troy Farrell, Zope Mailing List, "Welcome to Zope"
Hello Gitte, I think that you have to use the translate()-function in Utils.py . Take a look there. Regards, Dirk ----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: "Zope mailinglist" <zope@zope.org> Sent: Friday, December 21, 2001 11:38 AM Subject: [Zope] Using ZBabel from a Python Script ?
Hello,
I have a script which resturns some strings based on different results.
Now I am using ZBabel to create a multi-lingual site ... I was just wondering if I in any way could translate those string with ZBabel ???
-- Gitte Wange Jensen
Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark
Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org ICQ: 26680028
Quote of the day: Jump right in. The best way to learn (IMNSHO) is to screw up. Build things, read other peoples code, and ask lots of questions that you may think are dumb.
- Troy Farrell, Zope Mailing List, "Welcome to Zope"
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
fre, 2001-12-21 kl. 11:49 skrev Dirk Datzert:
Hello Gitte,
I think that you have to use the translate()-function in Utils.py . Take a look there.
Regards, Dirk
Well I tried doing it from a Zope Python Script and got a permissions error when importing ZBabel.Utils ... Will an external method solve this ?? TIA, Gitte Wange
----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: "Zope mailinglist" <zope@zope.org> Sent: Friday, December 21, 2001 11:38 AM Subject: [Zope] Using ZBabel from a Python Script ?
Hello,
I have a script which resturns some strings based on different results.
Now I am using ZBabel to create a multi-lingual site ... I was just wondering if I in any way could translate those string with ZBabel ???
-- Gitte Wange Jensen
Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark
Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org ICQ: 26680028
Quote of the day: Jump right in. The best way to learn (IMNSHO) is to screw up. Build things, read other peoples code, and ask lots of questions that you may think are dumb.
- Troy Farrell, Zope Mailing List, "Welcome to Zope"
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hello Gitte, don't know why there is a Permission error. Would import that by from Products.ZBabel.Utils import translate I would do that in PythonScript or in a ExternalMethod. For me there is no difference. Regards, Dirk ----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: "Dirk Datzert" <Dirk.Datzert@rasselstein-hoesch.de> Cc: "Zope mailinglist" <zope@zope.org> Sent: Friday, December 21, 2001 12:18 PM Subject: Re: [Zope] Using ZBabel from a Python Script ?
fre, 2001-12-21 kl. 11:49 skrev Dirk Datzert:
Hello Gitte,
I think that you have to use the translate()-function in Utils.py . Take a look there.
Regards, Dirk
Well I tried doing it from a Zope Python Script and got a permissions error when importing ZBabel.Utils ...
Will an external method solve this ??
TIA, Gitte Wange
----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: "Zope mailinglist" <zope@zope.org> Sent: Friday, December 21, 2001 11:38 AM Subject: [Zope] Using ZBabel from a Python Script ?
Hello,
I have a script which resturns some strings based on different
results.
Now I am using ZBabel to create a multi-lingual site ... I was just wondering if I in any way could translate those string with ZBabel ???
-- Gitte Wange Jensen
Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark
Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org ICQ: 26680028
Quote of the day: Jump right in. The best way to learn (IMNSHO) is to screw up. Build things, read other peoples code, and ask lots of questions that you may think are dumb.
- Troy Farrell, Zope Mailing List, "Welcome to Zope"
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
fre, 2001-12-21 kl. 12:58 skrev Dirk Datzert:
Hello Gitte,
don't know why there is a Permission error. Would import that by
from Products.ZBabel.Utils import translate
I would do that in PythonScript or in a ExternalMethod. For me there is no difference.
Regards, Dirk
Well I can't get it to work :-( Zope Python Script gives me a permission error. External Method returns something very weird. I created a very simple method which called the translate function with the text and the destination language. And all I got back was the content of the language variable .. Why ? TIA, Gitte Wange
----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: "Dirk Datzert" <Dirk.Datzert@rasselstein-hoesch.de> Cc: "Zope mailinglist" <zope@zope.org> Sent: Friday, December 21, 2001 12:18 PM Subject: Re: [Zope] Using ZBabel from a Python Script ?
fre, 2001-12-21 kl. 11:49 skrev Dirk Datzert:
Hello Gitte,
I think that you have to use the translate()-function in Utils.py . Take a look there.
Regards, Dirk
Well I tried doing it from a Zope Python Script and got a permissions error when importing ZBabel.Utils ...
Will an external method solve this ??
TIA, Gitte Wange
----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: "Zope mailinglist" <zope@zope.org> Sent: Friday, December 21, 2001 11:38 AM Subject: [Zope] Using ZBabel from a Python Script ?
Hello,
I have a script which resturns some strings based on different
results.
Now I am using ZBabel to create a multi-lingual site ... I was just wondering if I in any way could translate those string with ZBabel ???
-- Gitte Wange Jensen
Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark
Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org ICQ: 26680028
Quote of the day: Jump right in. The best way to learn (IMNSHO) is to screw up. Build things, read other peoples code, and ask lots of questions that you may think are dumb.
- Troy Farrell, Zope Mailing List, "Welcome to Zope"
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Dirk Datzert -
Gitte Wange