Ugly patchs in LinguaPlone 3.2

francoise <[email protected]> Tue, 4 Jan 2011 08:14:13 -0800 (PST)
Newsgroups gmane.comp.web.zope.plone.internationalization
Message-ID <[email protected]>
Hi,

I had some problems when changing language on neutral elements (at least on
neutral folders) and on some Filesystem Directory Views I still have in my
site (test on Plone-3.3.5).

So I tried some changes, just for my site, in _translations() in
browser/selector.py

It seems to work but I perhaps missed some important things. I am not
worried by the patch for neutral elements but I feel the first one is very
bad.


            translatable = ITranslatable(item, None)
            # b_modif - ugly patch for Filesystem Directory View
            if translatable is None:
                for c in missing:
                    translations[c] = item
                break
            # e_modif - ugly patch for Filesystem Directory View



            if len(missing) <= 0:
                # We have translations for all
                break

            # b_modif - ugly patch for neutral elements 
            if len(item_trans) == 1 and item_trans.keys()[0] == '':
                for c in missing:
                    translations[c] = item
                break
            # e_modif - ugly patch for neutral elements 


Regards
   françoise
-- 
View this message in context: http://plone-regional-forums.221720.n2.nabble.com/Ugly-patchs-in-LinguaPlone-3-2-tp5889220p5889220.html
Sent from the Internationalization mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Plone-i18n mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-i18n