Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Creating locale submodule, and tweaking some settings so it works.
  • Loading branch information
James Socol committed Apr 27, 2010
1 parent 4464b20 commit 06167d9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "locale"]
path = locale
url = git://github.com/jsocol/sumo-locales.git
2 changes: 1 addition & 1 deletion apps/search/templates/results.html
Expand Up @@ -26,7 +26,7 @@

<div class="search-count">
{# L10n: {n} is the number of search results, {q} is the search query, {l} is the language searched. #}
{{ ngettext('Found <strong>{n}</strong> result for <strong>{q}</strong> in <strongL>{l}</strong>',
{{ ngettext('Found <strong>{n}</strong> result for <strong>{q}</strong> in <strong>{l}</strong>',
'Found <strong>{n}</strong> results for <strong>{q}</strong> in <strong>{l}</strong>',
num_results)|fe(n=num_results, q=q, l=lang_name) }}
</div>
Expand Down
1 change: 1 addition & 0 deletions locale
Submodule locale added at e645f9
7 changes: 5 additions & 2 deletions settings.py
Expand Up @@ -13,6 +13,8 @@
ROOT = os.path.dirname(os.path.abspath(__file__))
path = lambda *a: os.path.join(ROOT, *a)

ROOT_PACKAGE = os.path.basename(ROOT)

ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
Expand Down Expand Up @@ -71,7 +73,7 @@

LANGUAGE_URL_MAP = dict([(i.lower(), i) for i in SUMO_LANGUAGES])

TEXT_DOMAIN = 'k-messages'
TEXT_DOMAIN = 'messages'

SITE_ID = 1
SITE_TITLE = _lazy(u'Firefox Support', 'site_title')
Expand Down Expand Up @@ -135,7 +137,7 @@
'sumo.backends.SessionBackend', # TODO: Replace with Kitsune auth.
)

ROOT_URLCONF = 'kitsune.urls'
ROOT_URLCONF = '%s.urls' % ROOT_PACKAGE

TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates"
Expand All @@ -152,6 +154,7 @@
'django.contrib.messages',
'tower',
'jingo_minify',
ROOT_PACKAGE,
'sumo',
'search',
)
Expand Down

0 comments on commit 06167d9

Please sign in to comment.