Gerry Kirk | 1 Mar 02:37 2004
Picon

Re: where I can get Plone solutions branch of I18NLayer

Vadym Honcharuk wrote:
> Hi,
> 
> actually subj..., can someone explain me where and how I can take Plone 
> solutions branch of I18NLayer?
> 
> Thanks a lot,
> Vadym Honcharuk
> 
> PS sorry for the repeatedly
> 
> 
I18NLayer is in CVS at sf.net/projects/collective. The branch you are 
looking for is called PloneSolutions. If you want an 
AT1.2.x/1.3-compatible version, use the gerry-AT1_2 branch, which is 
still undergoing development.

Gerry

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
J Cameron Cooper | 1 Mar 04:22 2004

Re: Re: Error creating Index_html

jp wrote:

> Alexander Limi wrote:
>
>> On Fri, 27 Feb 2004 19:15:09 +0000, jp  <tester@...> wrote:
>>
>>> I'm not in a position to install the latest Python so can't install  
>>> Plone  v2.
>>
>> Plone 2 only requires Python 2.1.3 at the moment. Redhat 7.3 comes 
>> with  that, IIRC.
>
>
> I was under the impression that it required Zope 2.7 and CMF 1.4... 

Nicely enough, both CMF and Plone are quite nice about Zope versions, at 
least for a generation or two.

            --jcc

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
J Cameron Cooper | 1 Mar 04:26 2004

Re: Add file inside CMF product during install

Steinar Eriksen wrote:

>I would like to add a file during my CMF product installation; specifically
>I would like to have a JavaScript being added via Install.py to the product
>folder after installing my product to a Plone site.
>
>
>I can manually add the script (as an external file) inside the ZMI after
>setting up my product but I would like to have it added automatically as
>part of the product install.
>
>Can I accomplish this somehow?
>
If you're talking about installation of the product in a zite, then put 
that in the install script (Extensions.Install.install). It's designed 
to do that sort of thing.

If you mean instead instances, you'll have to do that in the 
constructor, or possibly in a post-creation hook.

        --jcc

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
Radha Venugopal | 1 Mar 09:50 2004

Error Type: UnicodeError Error Value: UTF-8 decoding error: invalid data

Hi All,

I'm trying to pass values containing german text and am encountering the following error:

Error Type: UnicodeError
Error Value: UTF-8 decoding error: invalid data


The form fields are:<input type=text name="firstname:utf-8:string">

The zope instance is running on german and am using plone 1.0.1. Any information on this will be appreciated.

Thanks,
rvenugopal
Itai Tavor | 1 Mar 08:16 2004
Picon
Picon

Some I18N and PlacelessTranslationService questions

Hi,

Trying to get a i18n Plone site going, and I've hit some problems:

- What's the best way to get the current language? (In a Python script  
and an action condition)

- I got a working .po file for my domain (shows up in the Control Panel  
and tests ok), but i18NDisplayList(context.REQUEST, ('word',),  
domain='mydomain') returns NOT_TRANSLATED. Any idea how to find what  
the problem is?

- Why does Products.PlacelessTranslationService.getLanguageName('en')  
result in:

2004-03-01T18:11:51 ERROR(200) SiteError  
http://10.0.1.10:8082/Accretech/portal_skins/public/scripts/test
Traceback (most recent call last):
   File "/usr/local/zope/2.7.0/lib/python/ZPublisher/Publish.py", line  
100, in publish
     request, bind=1)
   File "/usr/local/zope/2.7.0/lib/python/ZPublisher/mapply.py", line  
88, in mapply
     if debug is not None: return debug(object,args,context)
   File "/usr/local/zope/2.7.0/lib/python/ZPublisher/Publish.py", line  
40, in call_object
     result=apply(object,args) # Type s<cr> to step into published  
object.
   File  
"/Volumes/Shadow/Projects/Zope/Accretech/Products/CMFCore/ 
FSPythonScript.py", line 104, in __call__
     return Script.__call__(self, *args, **kw)
   File  
"/usr/local/zope/2.7.0/lib/python/Shared/DC/Scripts/Bindings.py", line  
306, in __call__
     return self._bindAndExec(args, kw, None)
   File  
"/usr/local/zope/2.7.0/lib/python/Shared/DC/Scripts/Bindings.py", line  
343, in _bindAndExec
     return self._exec(bound_data, args, kw)
   File  
"/Volumes/Shadow/Projects/Zope/Accretech/Products/CMFCore/ 
FSPythonScript.py", line 160, in _exec
     result = apply(f, args, kw)
   File "Script (Python)", line 23, in test
   File  
"/Volumes/Shadow/Projects/Zope/Accretech/Products/ 
PlacelessTranslationService/PlacelessTranslationService.py", line 261,  
in getLanguageName
     cat = self._getOb(cname)
   File "/usr/local/zope/2.7.0/lib/python/OFS/ObjectManager.py", line  
245, in _getOb
     raise AttributeError, id
AttributeError: plone-en.po

TIA, Itai

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
Andreas Jung | 1 Mar 08:35 2004

Re: Error Type: UnicodeError Error Value: UTF-8 decoding error: invalid data

If you pass german text then you must encode the text as UTF8. German
is encoded usually as iso-8859-15.

-aj

--On Montag, 1. März 2004 12:50 Uhr +0400 Radha Venugopal 
<rvenugopal@...> wrote:

> Hi All,
>
> I'm trying to pass values containing german text and am encountering the
> following error:
>
> Error Type: UnicodeError
> Error Value: UTF-8 decoding error: invalid data
>
>
> The form fields are:<input type=text name="firstname:utf-8:string">
>
> The zope instance is running on german and am using plone 1.0.1. Any
> information on this will be appreciated.
>
> Thanks,
> rvenugopal

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
Robert Hase | 1 Mar 09:50 2004
Picon

Re: Some I18N and PlacelessTranslationService questions

Itai Tavor wrote:

> Hi,
> 
> Trying to get a i18n Plone site going, and I've hit some problems:
> 
> - What's the best way to get the current language? (In a Python script
> and an action condition)
> 
> - I got a working .po file for my domain (shows up in the Control Panel
> and tests ok), but i18NDisplayList(context.REQUEST, ('word',),
> domain='mydomain') returns NOT_TRANSLATED. Any idea how to find what
> the problem is?
> 
> - Why does Products.PlacelessTranslationService.getLanguageName('en')
> result in:
> 
> 2004-03-01T18:11:51 ERROR(200) SiteError
> http://10.0.1.10:8082/Accretech/portal_skins/public/scripts/test
> Traceback (most recent call last):
>    File "/usr/local/zope/2.7.0/lib/python/ZPublisher/Publish.py", line
> 100, in publish
>      request, bind=1)
>    File "/usr/local/zope/2.7.0/lib/python/ZPublisher/mapply.py", line
> 88, in mapply
>      if debug is not None: return debug(object,args,context)
>    File "/usr/local/zope/2.7.0/lib/python/ZPublisher/Publish.py", line
> 40, in call_object
>      result=apply(object,args) # Type s<cr> to step into published
> object.
>    File
> "/Volumes/Shadow/Projects/Zope/Accretech/Products/CMFCore/
> FSPythonScript.py", line 104, in __call__
>      return Script.__call__(self, *args, **kw)
>    File
> "/usr/local/zope/2.7.0/lib/python/Shared/DC/Scripts/Bindings.py", line
> 306, in __call__
>      return self._bindAndExec(args, kw, None)
>    File
> "/usr/local/zope/2.7.0/lib/python/Shared/DC/Scripts/Bindings.py", line
> 343, in _bindAndExec
>      return self._exec(bound_data, args, kw)
>    File
> "/Volumes/Shadow/Projects/Zope/Accretech/Products/CMFCore/
> FSPythonScript.py", line 160, in _exec
>      result = apply(f, args, kw)
>    File "Script (Python)", line 23, in test
>    File
> "/Volumes/Shadow/Projects/Zope/Accretech/Products/
> PlacelessTranslationService/PlacelessTranslationService.py", line 261,
> in getLanguageName
>      cat = self._getOb(cname)
>    File "/usr/local/zope/2.7.0/lib/python/OFS/ObjectManager.py", line
> 245, in _getOb
>      raise AttributeError, id
> AttributeError: plone-en.po
> 
> 
> TIA, Itai
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

Hi,

I only know it for Localizer:

l = context.portal_url.Localizer
# Get the selected language code, for example "en" for english 
l_sel = l.get_selected_language()

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
Christian Heimes | 1 Mar 10:38 2004
Picon
Picon

Re: Some I18N and PlacelessTranslationService questions


Robert Hase wrote:
| I only know it for Localizer:
|
| l = context.portal_url.Localizer
| # Get the selected language code, for example "en" for english
| l_sel = l.get_selected_language()

FYI: Localizer is deprecated Plone2 and shouldn't be used.

Christian
Christian Heimes | 1 Mar 10:41 2004
Picon
Picon

Re: Some I18N and PlacelessTranslationService questions


Itai Tavor wrote:
| - What's the best way to get the current language? (In a Python script
| and an action condition)

PloneLanguageTool has an API for that. I'm talking to the guys maybe we
could move the method from PLT to PTS.

| - I got a working .po file for my domain (shows up in the Control Panel
| and tests ok), but i18NDisplayList(context.REQUEST, ('word',),
| domain='mydomain') returns NOT_TRANSLATED. Any idea how to find what
| the problem is?

Use the test tab of your language in the PTS (control panel). Is the
word translated

| - Why does Products.PlacelessTranslationService.getLanguageName('en')
| result in:

[...]

Because your version is too old. :) I'll release a new version for plone
2.0 final in the next days.

Christian
Gonzalez Vazquez, Jose M. | 1 Mar 12:03 2004
Picon

Where is the limit???

Hello plone users

I'm just finish a portal and now i'm trying to complete de contents but I've a question on my mind.

How much information can you put on the portal? Is there any limitation for this?

Thanks in advance.

José María González Vázquez
Sadiel
Avda. Isaac Newton s/n.
Edificio Pabellón de España.
Isla de la Cartuja.
Sevilla.                      C.P. 41092.
Tlf 955 024 122          Fax: 955043061
http://www.sadiel.es   e-mail: jmgonzalez-coIhRK3cyTL1P9xLtpHBDw@public.gmane.org


Gmane