Hi,<br><br>I have been trying to internationalize my application and add a Norwegian translation but am stuck. By default I am getting only English for things like date in news items and so on.<br><br>Using chapter 9 of the Philipp von Weitershausen book, I have tried various things.
<br><br>Using ++lang++test, ++lang++de, ++lang++no (or ++anything-else) always results in "a system error occurred", with an error message "Can only shift leading traversal names to application names". I do not understand this error message or what it is trying to tell me.
<br><br>Also, trying to start to create the NO translation by running i18nextract also results in a serious error which seems non trivial to work around.<br><br>Can anyone shed any light on either of these two problems? I seem to be missing something fundamental here?
<br><br>Jeremy<br><br>C:\NLRK-Zope>.\bin\i18nextract -p lib\python\wcsite -d wcsite -o locale<br>base path: 'C:\\NLRK-Zope\\'<br>search path: C:\NLRK-Zope\lib\python\wcsite<br>exclude dirs: []<br>domain: 'wcsite'
<br>output file: 'C:\\NLRK-Zope\\lib\\python\\wcsite\\locale\\wcsite.pot'<br>There was an error processing C:\NLRK-Zope\lib\python\wcsite\rss.pt<br>Traceback (most recent call last):<br> File "C:\Python24\Lib\site-packages\zope\app\locales\extract.py", line 399, in
<br> tal_strings<br> p.parseFile(filename)<br> File "C:\Python24\Lib\site-packages\zope\tal\htmltalparser.py", line 122, in p<br>arseFile<br> self.parseString(data)<br> File "C:\Python24\Lib\site-packages\zope\tal\htmltalparser.py", line 128, in p
<br>arseString<br> self.feed(data)<br> File "C:\Python24\lib\HTMLParser.py", line 108, in feed<br> self.goahead(0)<br> File "C:\Python24\lib\HTMLParser.py", line 148, in goahead<br> k = self.parse_starttag
(i)<br> File "C:\Python24\lib\HTMLParser.py", line 268, in parse_starttag<br> self.handle_starttag(tag, attrs)<br> File "C:\Python24\Lib\site-packages\zope\tal\htmltalparser.py", line 150, in h<br>
andle_starttag<br> self.getpos())<br>TALError: empty HTML tags cannot use tal:content: 'link', at line 12, column 3,<br>in file C:\NLRK-Zope\lib\python\wcsite\rss.pt<br><br><br clear="all"><br>-- <br><a href="mailto:Jeremy.Cook@bccs.uib.no" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Jeremy.Cook@bccs.uib.no</a> tlf: +47 55 58 40 65<br>Parallab Bergen Centre for Computational Science<br>