Andrei Kaikov wrote: > I'm using CPS 3.2.4 on Zope 2.7.6. Site has RU (Russian) local. The > i18n translation is working perfect, except of in the 'edit' mode. > Russian labels for widgets in 'edit' mode are translated to > '????????'. > > I guess the problem is somehow in renderEditDetailed() function that > collects and publish the layouts' rendering scripts. > > Can you advice me on this? I need you help urgently!
I guess, but I'm not sure, we are encoding explicitly the labels in
ISO-8859-15 within the skins of CPSDocument.... (which sucks I agree...)
You can try out to grep for "encode" within the CPSDocument and
CPSSchemas products and see what skins you may need to customize on your
instance.
For instance on my sandbox :
[EMAIL PROTECTED] CPSSchemas]$ grep -r "encode" . | grep -v svn
./skins/cps_schemas/popup_rte_form.pt: tal:define="js_rte_value
python:here.encodeJsString(rte_value)"
./BasicFields.py: return s.encode('utf-8')
./BasicFields.py: return unicode(s, 'utf-8').encode(default_encoding)
./BasicWidgets.py: return
escape(cpsmcat(vocabulary.getMsgid(value, value)).encode('ISO-8859-15',
'ignore'))
./BasicWidgets.py: 'contents':
cpsmcat(vocabulary.getMsgid(k, k)).encode('ISO-8859-15', 'ignore')
./BasicWidgets.py: 'contents':
cpsmcat(vocabulary.getMsgid(k, k)).encode('ISO-8859-15', 'ignore')
./ExtendedWidgets.py: return
escape(cpsmcat(vocabulary.getMsgid(value, value)).encode('ISO-8859-15',
'ignore'))
./ExtendedWidgets.py: v =
cpsmcat(vocabulary.getMsgid(k, k)).encode('ISO-8859-15', 'ignore')
./ExtendedWidgets.py: 'contents':
cpsmcat('label_other_selection').encode('ISO-8859-15', 'ignore'),
./ExtendedWidgets.py: 'contents':
cpsmcat('label_other_selection').encode('ISO-8859-15', 'ignore'),
./ExtendedWidgets.py: 'contents':
cpsmcat('label_none_selection').encode('ISO-8859-15', 'ignore'),
./ExtendedWidgets.py: 'contents':
cpsmcat('label_none_selection').encode('ISO-8859-15', 'ignore'),
./ExtendedWidgets.py: v =
cpsmcat(vocabulary.getMsgid(k, k)).encode('ISO-8859-15', 'ignore')
./ExtendedWidgets.py: 'contents':
cpsmcat('label_none_selection').encode('ISO-8859-15', 'ignore'),
./ExtendedWidgets.py: 'contents':
cpsmcat('label_none_selection').encode('ISO-8859-15', 'ignore'),
Cheers,
J.
--
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
signature.asc
Description: OpenPGP digital signature
_______________________________________________ cps-users mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/cps-users
