mirror of
https://github.com/vale981/ablog
synced 2025-03-05 09:11:38 -05:00
Made i18n a post, and added multiple posting draft.
This commit is contained in:
parent
416d089343
commit
50ba0a493f
3 changed files with 50 additions and 12 deletions
|
@ -54,7 +54,8 @@ blog_locations = {
|
|||
}
|
||||
blog_authors = {
|
||||
'Ahmet': ('Ahmet Bakan', 'http://ahmetbakan.com'),
|
||||
'Napi': ('Lord Napi', 'http://ahmetbakan.com'),
|
||||
'Luc': ('Luc Saffre', 'http://saffre-rumma.net/luc/'),
|
||||
|
||||
}
|
||||
disqus_shortname = 'ablogforsphinx'
|
||||
disqus_pages = True
|
||||
|
|
|
@ -1,21 +1,27 @@
|
|||
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.
|
||||
|
||||
|
||||
ABlog Internationalization
|
||||
==========================
|
||||
|
||||
.. post:: Jun 10, 2014
|
||||
:tags: i18n
|
||||
:category: Manual
|
||||
:author: Luc
|
||||
|
||||
ABlog automatically generates certain labels like :ref:`blog-posts` and
|
||||
:ref:`blog-categories`. If these labels appear in English on your blog
|
||||
although you specified another language, then this page is for you.
|
||||
|
||||
These labels 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
|
||||
...
|
||||
|
31
docs/manual/multiple-posting.rst
Normal file
31
docs/manual/multiple-posting.rst
Normal file
|
@ -0,0 +1,31 @@
|
|||
Multiple Posting
|
||||
================
|
||||
|
||||
.. post:: Jun 10, 2014
|
||||
:tags: directive
|
||||
:category: Manual
|
||||
:location: SF
|
||||
:author: Ahmet
|
||||
|
||||
:rst:dir:`post` directive now can be used multiple times in a single page
|
||||
to create multiple posts of different sections of the document.
|
||||
|
||||
|
||||
|
||||
Posting a Section
|
||||
-----------------
|
||||
|
||||
.. post:: Jun 10, 2014
|
||||
:tags: directive
|
||||
:category: Manual
|
||||
:location: SF
|
||||
:author: Ahmet
|
||||
|
||||
Second time a document is posted, post title and excerpt will be extracted
|
||||
from the section in which the :rst:dir:`post` directive resides.
|
||||
|
||||
The section post will be treated like any other document post, except:
|
||||
|
||||
* Next and previous links at the bottom will only regard the first post
|
||||
in the document,
|
||||
* ...
|
Loading…
Add table
Reference in a new issue