I developed a CT with about 60 fields. Due to the large number of fields the default AddView gets too long. Thats why I added some JavaScript to build an accoordion on the default view. This is done by wrapping some fields with div-Elements and adding a number of buttons. The problem is that the titles of the accordion buttons are not translated. I've tried to declare XML namespace i18n and translation domain to each button but the labels which need to be translated are not added to the .pot files.
Any other ideas how translate text strings added by JavaScript? Thanks in advance!
thanks for the reply. I've tried manual translation before and it didn't work. I used TAL-attributes to call the "translate" method for my accordion buttons but it seems like TAL-attributes are not working in the HTML elements added with javascript.