summaryrefslogtreecommitdiff
path: root/repoze/bfg/paster_templates/routesalchemy
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/paster_templates/routesalchemy')
-rw-r--r--repoze/bfg/paster_templates/routesalchemy/+project+.ini_tmpl1
-rw-r--r--repoze/bfg/paster_templates/routesalchemy/setup.cfg_tmpl21
2 files changed, 22 insertions, 0 deletions
diff --git a/repoze/bfg/paster_templates/routesalchemy/+project+.ini_tmpl b/repoze/bfg/paster_templates/routesalchemy/+project+.ini_tmpl
index 72c373fc2..c249172d3 100644
--- a/repoze/bfg/paster_templates/routesalchemy/+project+.ini_tmpl
+++ b/repoze/bfg/paster_templates/routesalchemy/+project+.ini_tmpl
@@ -6,6 +6,7 @@ use = egg:{{package}}#app
reload_templates = true
debug_authorization = false
debug_notfound = false
+default_locale_name = en
db_string = sqlite:///%(here)s/{{package}}.db
[pipeline:main]
diff --git a/repoze/bfg/paster_templates/routesalchemy/setup.cfg_tmpl b/repoze/bfg/paster_templates/routesalchemy/setup.cfg_tmpl
index 8bf5d22c1..5bec29823 100644
--- a/repoze/bfg/paster_templates/routesalchemy/setup.cfg_tmpl
+++ b/repoze/bfg/paster_templates/routesalchemy/setup.cfg_tmpl
@@ -4,3 +4,24 @@ nocapture=1
cover-package={{package}}
with-coverage=1
cover-erase=1
+
+[compile_catalog]
+directory = {{package}}/locale
+domain = {{project}}
+statistics = true
+
+[extract_messages]
+add_comments = TRANSLATORS:
+output_file = {{package}}/locale/{{project}}.pot
+width = 80
+
+[init_catalog]
+domain = {{project}}
+input_file = {{package}}/locale/{{project}}.pot
+output_dir = {{package}}/locale
+
+[update_catalog]
+domain = {{project}}
+input_file = {{package}}/locale/{{project}}.pot
+output_dir = {{package}}/locale
+previous = true