Skip to content

Commit

Permalink
Add localization.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Jun 25, 2024
1 parent a6d1c3c commit bfa9266
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 0 deletions.
Binary file added cache_cleaner/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
42 changes: 42 additions & 0 deletions cache_cleaner/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-25 14:47-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: cache_cleaner/admin.py
msgid "Clear selected caches"
msgstr ""

#: cache_cleaner/admin.py
msgid "Cleared caches:"
msgstr "Cleared caches:"

#: cache_cleaner/apps.py
msgid "Cache Cleaner"
msgstr "Cache Cleaner"

#: cache_cleaner/models.py
msgid "Cache"
msgstr "Cache"

#: cache_cleaner/models.py
msgid "Caches"
msgstr "Caches"

#: cache_cleaner/models.py
msgid "Name"
msgstr "Name"
Binary file added cache_cleaner/locale/it/LC_MESSAGES/django.mo
Binary file not shown.
42 changes: 42 additions & 0 deletions cache_cleaner/locale/it/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-25 14:47-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: cache_cleaner/admin.py
msgid "Clear selected caches"
msgstr ""

#: cache_cleaner/admin.py
msgid "Cleared caches:"
msgstr "Cleared caches:"

#: cache_cleaner/apps.py
msgid "Cache Cleaner"
msgstr "Cache Cleaner"

#: cache_cleaner/models.py
msgid "Cache"
msgstr "Cache"

#: cache_cleaner/models.py
msgid "Caches"
msgstr "Caches"

#: cache_cleaner/models.py
msgid "Name"
msgstr "Nome"
9 changes: 9 additions & 0 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@

DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

USE_I18N = True
LANGUAGES = (
("en", "English"),
("it", "Italiano"),
)
LANGUAGE_CODE = "en"

LOCALE_PATHS = (os.path.join(BASE_DIR, "cache_cleaner/locale/"),)

MEDIA_ROOT = os.path.join(BASE_DIR, "cache-cleaner/public/media/")
MEDIA_URL = "/media/"

Expand Down

0 comments on commit bfa9266

Please sign in to comment.