[Zope-dev] Access Content stored in the FileSystem without storing them in the ZODB
I am working on product named GNOWSYS (a content management software), the software has the facility to add Objects along with the properties and Content. Only the properties of the object are stored in the ZODB but actual content are stored in the File System i.e in the zope's var directory. I am facing problem if the content is something other than "text" for eg an image. Can anybody tell me How can I display the Content of an Object that is an Image in a Page Template? Thanks for ur help in advance. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] i18n:translate - problem
ï Hi, I have the Zope 2.7.0 instaled under Linux OS. I want to have my website in many languages in one Plone site. So I have installed "Placeless Translation Service". I've made 2 .po files (cms_pl.po, cms_en.po) and compiled to .mo files (cms_pl.mo, cms_en.mo). I want to change website language version based on varriable value in ZPT and this is the problem (I think). When I do .po files with the same domain, e.g: "Domain: CMS\n" and they have different "Language-Code:" header e.g: "Language-Code: pl\n" and "Language-Code: en\n" Zope chooses language based on web browser settings :(. When I'm setting "xml:lang" and "lang" attributtes it doesen't make effect. There is second way. I can do 2 .po files with different "Domain" and choose the one depends on variable but I cant dynamicialy set "i18n:domain" attribute. How to manage that? Thanks in advance Krzysztof Kubacki ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] i18n:translate - problem
Krzysztof Kubacki wrote: Hi, I have the Zope 2.7.0 instaled under Linux OS. I want to have my website in many languages in one Plone site. So I have installed "Placeless Translation Service". I've made 2 .po files (cms_pl.po, cms_en.po) and compiled to .mo files (cms_pl.mo, cms_en.mo). I want to change website language version based on varriable value in ZPT and this is the problem (I think). When I do .po files with the same domain, e.g: "Domain: CMS\n" and they have different "Language-Code:" header e.g: "Language-Code: pl\n" and "Language-Code: en\n" Zope chooses language based on web browser settings :(. When I'm setting "xml:lang" and "lang" attributtes it doesen't make effect. i suppose you need a manual lang switch on your site ... take a look at PlacelessTranslationService/Negotiator.py you can set a cookie called 'pts_language' There is second way. I can do 2 .po files with different "Domain" and choose the one depends on variable but I cant dynamicialy set "i18n:domain" attribute. How to manage that? Thanks in advance Krzysztof Kubacki ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )