Commits

Marcin Kuzminski committed 6e5d686

fixed translation function for models

Comments (0)

Files changed (1)

rhodecode/model/db.py

 from sqlalchemy.orm import relationship, joinedload, class_mapper, validates
 from beaker.cache import cache_region, region_invalidate
 
-_ = lambda s: s
+from pylons.i18n.translation import lazy_ugettext as _
 
 from rhodecode.lib.vcs import get_backend
 from rhodecode.lib.vcs.utils.helpers import get_scm