fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor migration
[wolnelektury.git]
/
src
/
wolnelektury
/
management
/
commands
/
localepack.py
diff --git
a/src/wolnelektury/management/commands/localepack.py
b/src/wolnelektury/management/commands/localepack.py
index
5458904
..
551c2df
100644
(file)
--- a/
src/wolnelektury/management/commands/localepack.py
+++ b/
src/wolnelektury/management/commands/localepack.py
@@
-16,7
+16,7
@@
import sys
import allauth
import allauth
-ROOT =
os.path.dirname(settings.PROJECT_DIR)
+ROOT =
settings.ROOT_DIR
def is_our_app(mod):
def is_our_app(mod):
@@
-100,7
+100,7
@@
class ModelTranslation(Locale):
class CustomLocale(Locale):
def __init__(self, app_dir,
config=os.path.join(ROOT, "babel.cfg"),
class CustomLocale(Locale):
def __init__(self, app_dir,
config=os.path.join(ROOT, "babel.cfg"),
- out_file=os.path.join(ROOT, 'wolnelektury/locale-contrib/django.pot'),
+ out_file=os.path.join(ROOT, '
src/
wolnelektury/locale-contrib/django.pot'),
name=None):
self.app_dir = app_dir
self.config = config
name=None):
self.app_dir = app_dir
self.config = config