#694: Translations scaffolding
------------------------+----------------------
Reporter: olemis | Owner: olemis
Type: task | Status: assigned
Priority: minor | Milestone:
Component: trac core | Version: 0.7.0
Resolution: | Keywords: i18n
------------------------+----------------------
Comment (by SaintGermain):
i18n patch is updated against svn trunk revision r1563594.
I've corrected the widget headers translation problem (domain
initialisation problem).
I also removed a deepcopy instruction to avoid infinite recursion when
meeting translated strings.
Indeed this example:
{{{#!python
from bhdashboard.util.translation import _
import copy
temp = {'a': _('Active Tickets')}
copy.deepcopy(temp)
}}}
Gives the following error:
{{{
/home/user/.virtualenvs/bloodhound/lib/python2.7/site-
packages/babel/support.pyc in __getattr__(self, name)
250
251 def __getattr__(self, name):
--> 252 return getattr(self.value, name)
253
254 def __setattr__(self, name, value):
/home/user/.virtualenvs/bloodhound/lib/python2.7/site-
packages/babel/support.pyc in value(self)
180
181 def value(self):
--> 182 if self._value is None:
183 value = self._func(*self._args, **self._kwargs)
184 object.__setattr__(self, '_value', value)
RuntimeError: maximum recursion depth exceeded
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/694#comment:56>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker