mirror of
https://github.com/vale981/ablog
synced 2025-03-05 09:11:38 -05:00
Added internationalisation framework and locale 'de'.
This commit is contained in:
parent
d95692529e
commit
cfc491cffd
4 changed files with 225 additions and 0 deletions
BIN
ablog/locale/de/LC_MESSAGES/sphinx.mo
Normal file
BIN
ablog/locale/de/LC_MESSAGES/sphinx.mo
Normal file
Binary file not shown.
96
ablog/locale/de/LC_MESSAGES/sphinx.po
Normal file
96
ablog/locale/de/LC_MESSAGES/sphinx.po
Normal file
|
@ -0,0 +1,96 @@
|
|||
# German translations for ablog.
|
||||
# Copyright (C) 2014 ORGANIZATION
|
||||
# This file is distributed under the same license as the ablog project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: ablog 0.1\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2014-07-25 20:45+0300\n"
|
||||
"PO-Revision-Date: 2014-07-25 20:46+0300\n"
|
||||
"Last-Translator: Luc Saffre <luc.saffre@gmx.net>\n"
|
||||
"Language-Team: de <LL@li.org>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 1.3\n"
|
||||
"X-Generator: Poedit 1.5.4\n"
|
||||
"Language: de\n"
|
||||
|
||||
#: ablog/__init__.py:274
|
||||
msgid "Posts by"
|
||||
msgstr "Einträge von"
|
||||
|
||||
#: ablog/__init__.py:275
|
||||
msgid "Posts from"
|
||||
msgstr "Einträge aus"
|
||||
|
||||
#: ablog/__init__.py:276
|
||||
msgid "Posts in"
|
||||
msgstr "Einträge in"
|
||||
|
||||
#: ablog/__init__.py:277
|
||||
msgid "All posts"
|
||||
msgstr "Alle Einträge"
|
||||
|
||||
#: ablog/__init__.py:277
|
||||
msgid "Posted in"
|
||||
msgstr "Einträge in"
|
||||
|
||||
#: ablog/__init__.py:278
|
||||
msgid "Posts tagged"
|
||||
msgstr "Einträge mit Schlagwort"
|
||||
|
||||
#: ablog/templates/archive.html:46
|
||||
msgid "Read more ..."
|
||||
msgstr "Weiter..."
|
||||
|
||||
#: ablog/templates/archives.html:2
|
||||
msgid "Archives"
|
||||
msgstr "Archive"
|
||||
|
||||
#: ablog/templates/authors.html:2
|
||||
msgid "Authors"
|
||||
msgstr "Autoren"
|
||||
|
||||
#: ablog/templates/categories.html:2
|
||||
msgid "Categories"
|
||||
msgstr "Kategorien"
|
||||
|
||||
#: ablog/templates/locations.html:2
|
||||
msgid "Locations"
|
||||
msgstr "Orte"
|
||||
|
||||
#: ablog/templates/postcard2.html:2
|
||||
msgid "Author"
|
||||
msgstr "Autor"
|
||||
|
||||
#: ablog/templates/postcard2.html:12
|
||||
msgid "Location"
|
||||
msgstr "Ort"
|
||||
|
||||
#: ablog/templates/postcard2.html:22
|
||||
msgid "Category"
|
||||
msgstr "Kategorie"
|
||||
|
||||
#: ablog/templates/postcard2.html:31 ablog/templates/tagcloud.html:2
|
||||
msgid "Tags"
|
||||
msgstr "Schlagworte"
|
||||
|
||||
#: ablog/templates/postcard2.html:32
|
||||
msgid "Tag"
|
||||
msgstr "Schlagwort"
|
||||
|
||||
#: ablog/templates/postnavy.html:7
|
||||
msgid "Previous"
|
||||
msgstr "Vorige"
|
||||
|
||||
#: ablog/templates/postnavy.html:17
|
||||
msgid "Next"
|
||||
msgstr "Nächste"
|
||||
|
||||
#: ablog/templates/recentposts.html:2
|
||||
msgid "Recent Posts"
|
||||
msgstr "Neue Einträge"
|
95
ablog/locale/sphinx.pot
Normal file
95
ablog/locale/sphinx.pot
Normal file
|
@ -0,0 +1,95 @@
|
|||
# Translations template for ablog.
|
||||
# Copyright (C) 2014 ORGANIZATION
|
||||
# This file is distributed under the same license as the ablog project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: ablog 0.1\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2014-07-25 20:45+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 1.3\n"
|
||||
|
||||
#: ablog/__init__.py:274
|
||||
msgid "Posts by"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/__init__.py:275
|
||||
msgid "Posts from"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/__init__.py:276
|
||||
msgid "Posts in"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/__init__.py:277
|
||||
msgid "All posts"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/__init__.py:277
|
||||
msgid "Posted in"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/__init__.py:278
|
||||
msgid "Posts tagged"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/archive.html:46
|
||||
msgid "Read more ..."
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/archives.html:2
|
||||
msgid "Archives"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/authors.html:2
|
||||
msgid "Authors"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/categories.html:2
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/locations.html:2
|
||||
msgid "Locations"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/postcard2.html:2
|
||||
msgid "Author"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/postcard2.html:12
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/postcard2.html:22
|
||||
msgid "Category"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/postcard2.html:31 ablog/templates/tagcloud.html:2
|
||||
msgid "Tags"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/postcard2.html:32
|
||||
msgid "Tag"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/postnavy.html:7
|
||||
msgid "Previous"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/postnavy.html:17
|
||||
msgid "Next"
|
||||
msgstr ""
|
||||
|
||||
#: ablog/templates/recentposts.html:2
|
||||
msgid "Recent Posts"
|
||||
msgstr ""
|
||||
|
34
docs/i18n.rst
Normal file
34
docs/i18n.rst
Normal file
|
@ -0,0 +1,34 @@
|
|||
Add i18n to ablog
|
||||
=================
|
||||
|
||||
ABlog automatically generates certain strings like "Recent posts",
|
||||
"Categories". If these strings appear in English on your blog although you specified another language, then this page is for you.
|
||||
|
||||
These strings need to be translated. Ablog needs your help.
|
||||
|
||||
|
||||
.. _extract_messages: http://babel.edgewall.org/wiki/Documentation/setup.html#extract-messages
|
||||
|
||||
.. _init_catalog: http://babel.edgewall.org/wiki/Documentation/setup.html#init-catalog
|
||||
|
||||
.. _update_catalog: http://babel.edgewall.org/wiki/Documentation/setup.html#update-catalog
|
||||
|
||||
- extract_messages_ must run each time you changed some translatable
|
||||
message texts::
|
||||
|
||||
$ python setup.py extract_messages -o ablog/locale/sphinx.pot
|
||||
...
|
||||
|
||||
This will create a file :xfile:`ablog/locale/sphinx.pot`, the
|
||||
central messages catalog used by the different translations.
|
||||
|
||||
- init_catalog_ must run after extract_messages_ once for each *new* language::
|
||||
|
||||
$ python setup.py init_catalog -l de -i ablog/locale/sphinx.pot -o ablog/locale/de/LC_MESSAGES/sphinx.po
|
||||
|
||||
This will create a file :xfile:`ablog/locale/de/LC_MESSAGES/sphinx.po`.
|
||||
|
||||
- update_catalog_ must run after extract_messages_ for each existing
|
||||
language::
|
||||
|
||||
$ python setup.py update_catalog -l de -i ablog/locale/sphinx.pot -o ablog/locale/de/LC_MESSAGES/sphinx.po
|
Loading…
Add table
Reference in a new issue