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

  1. whole app translated on english , german

  2. 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.

  3. i have implemented rosetta django admin , display correct .po file of them (custom .po)

  4. 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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -