[Zope3-Users] Translating vocabularies

Maken Seteva crapkonto at gmail.com
Sat Sep 29 13:46:00 EDT 2007


Hello,
I am reading Phillips book and the internationalization chapter is  
very extensive but it does not talk
about how to manage content like in vocabularies which gets added as  
time progress.

Let's say i have a vocabulary with a list of kitchen tools that is  
initially empty. I continuously add new
strings to this vocabulary via ZMI, but how can i get multi-language  
support? It should have fallback
support to english.

Does zope3 have a finished package for this?
If not,  how could i make this work? Do i need one utility for the  
vocabulary which stores messageids
like "FORK", "FPAN" and another one with translations?

tools = {
	'FORK':{
		'en':u'Fork',
		'de':u'Gabel',
		'es':u'Tenedor'
		},
	'FPAN':{
		'en':u'Frying pan'
		}
	}

 >>> print mytranslationfunction('FORK','de')
Gabel
 >>> print mytranslationfunction('FPAN','de')
Frying pan


No, this doesn't sound like a good idea..  so any guidelines or  
pointers are highly appreciated. Looking
forward to a nice discussion on this!

My best regards
M.Seteva


More information about the Zope3-users mailing list