internationalization - django app with different and dynamic translation files -
currently i'm working on task, require every django user have different locale file , translation of course e.g. different translation same app.
i'm tried changes on own scenario , next lines finished , works fine met troubles
whole app translated on english , german
when create new user, copy default translation file .po new directory related user. case made container app hold custom translation , directory schema 'apps/trans/locale/user1/', 'apps/trans/locale/user2/' , on. these paths added settings.locale_paths when app started.
i have implemented rosetta django admin , display correct .po file of them (custom .po)
the django tempalatetags i18n.py copied teplatetags directory , extended purpose
i want custom modification django.core.translation module , copy file project, not know how load module correctly override default django functionality, because want replace default translation custom here
for use _ _ import _ _ , replace sys.modules['django.utils.translation'] module. correct way?
so idea?
thanks
Comments
Post a Comment