sphinx 1.1 i18n 機能紹介

Download Sphinx 1.1 i18n 機能紹介

If you can't read please download the document

Upload: ian-lewis

Post on 16-Apr-2017

5.803 views

Category:

Technology


0 download

TRANSCRIPT

Arc

Sphinx 1.1 i18n

BeProud

Google Appengine API

Python/Django
Python

RedBull

feiz--

Bucho

Sphinx

sphinx-users.jp

http://sphinx-users.jp

Sphinx

http://sphinx.pocoo.org/

Python

ReStructuredText

Autodoc

HTML, PDF, LaTeX

Python

ReST/Sphinx

Sphinx

http://www.flickr.com/photos/shibukawa/4067856691/

http://www.flickr.com/photos/shibukawa/4067856691/


?

(`)



http://sphinx.pocoo.org/latest/intl.html

Sphinx 1.1
()

gettext
(`)

http://sphinx.pocoo.org/latest/intl.html

Sphinx 1.1

sphinx-build gettext

index.rst

other.rst

directory/subfile.rst

index.pot

other.pot

directory/subfile.pot

sphinx-build gettext

bpssl Documentation====================

What is bpssl?-----------------------------------

bpssl is a Django application that helps you supportHTTPS on your website. The main functionality is performing redirectionfor HTTPS only URLs and views. For instance, if a request for yourlogin view '/login' is recieved over HTTP, the provided middleware canredirect the user to the equivalent HTTPS page.

Specifying views and urls as secure is supported as are `flatpages`_. `Fastcgi`_and HTTP proxy setups are also well supported. See the sourcecode/homepage at:

#b6395b85f34144a1a91a23a1bce5aa37msgid "What is bpssl?"msgstr ""

#2a85f8ce621c4e88897b51f59d868a55msgid "Specifying views and urls as secure is supported as are `flatpages`_. `Fastcgi`_ and HTTP proxy setups are also well supported. See the sourcecode/homepage at:"msgstr ""

#3ec7b8f0c3e0425baac65f2a0f97394cmsgid "bpssl is a Django application that helps you support HTTPS on your website. The main functionality is performing redirection for HTTPS only URLs and views. For instance, if a request for your login view '/login' is recieved over HTTP, the provided middleware can redirect the user to the equivalent HTTPS page."msgstr ""

#46cbf44fbb2040d983af60128148537dmsgid "bpssl Documentation"msgstr ""

sphinx-build gettext

bpssl Documentation====================

What is bpssl?-----------------------------------

bpssl is a Django application that helps you supportHTTPS on your website. The main functionality is performing redirectionfor HTTPS only URLs and views. For instance, if a request for yourlogin view '/login' is recieved over HTTP, the provided middleware canredirect the user to the equivalent HTTPS page.

Specifying views and urls as secure is supported as are `flatpages`_. `Fastcgi`_and HTTP proxy setups are also well supported. See the sourcecode/homepage at:

#b6395b85f34144a1a91a23a1bce5aa37msgid "What is bpssl?"msgstr "bpssl"

#2a85f8ce621c4e88897b51f59d868a55msgid "Specifying views and urls as secure is supported as are `flatpages`_. `Fastcgi`_ and HTTP proxy setups are also well supported. See the sourcecode/homepage at:"msgstr ""

#3ec7b8f0c3e0425baac65f2a0f97394cmsgid "bpssl is a Django application that helps you support HTTPS on your website. The main functionality is performing redirection for HTTPS only URLs and views. For instance, if a request for your login view '/login' is recieved over HTTP, the provided middleware can redirect the user to the equivalent HTTPS page."msgstr ""

#46cbf44fbb2040d983af60128148537dmsgid "bpssl Documentation"msgstr ""

sphinx-build gettext

bpssl Documentation====================

What is bpssl?-----------------------------------

bpssl is a Django application that helps you supportHTTPS on your website. The main functionality is performing redirectionfor HTTPS only URLs and views. For instance, if a request for yourlogin view '/login' is recieved over HTTP, the provided middleware canredirect the user to the equivalent HTTPS page.

Specifying views and urls as secure is supported as are `flatpages`_. `Fastcgi`_and HTTP proxy setups are also well supported. See the sourcecode/homepage at:

#b6395b85f34144a1a91a23a1bce5aa37msgid "What is bpssl?"msgstr ""

#2a85f8ce621c4e88897b51f59d868a55msgid "Specifying views and urls as secure is supported as are `flatpages`_. `Fastcgi`_ and HTTP proxy setups are also well supported. See the sourcecode/homepage at:"msgstr ""

#3ec7b8f0c3e0425baac65f2a0f97394cmsgid "bpssl is a Django application that helps you support HTTPS on your website. The main functionality is performing redirection for HTTPS only URLs and views. For instance, if a request for your login view '/login' is recieved over HTTP, the provided middleware can redirect the user to the equivalent HTTPS page."msgstr ""

#46cbf44fbb2040d983af60128148537dmsgid "bpssl Documentation"msgstr ""

sphinx-build gettext

bpssl Documentation====================

What is bpssl?-----------------------------------

bpssl is a Django application that helps you supportHTTPS on your website. The main functionality is performing redirectionfor HTTPS only URLs and views. For instance, if a request for yourlogin view '/login' is recieved over HTTP, the provided middleware canredirect the user to the equivalent HTTPS page.

Specifying views and urls as secure is supported as are `flatpages`_. `Fastcgi`_and HTTP proxy setups are also well supported. See the sourcecode/homepage at:

#b6395b85f34144a1a91a23a1bce5aa37msgid "What is bpssl?"msgstr ""

#2a85f8ce621c4e88897b51f59d868a55msgid "Specifying views and urls as secure is supported as are `flatpages`_. `Fastcgi`_ and HTTP proxy setups are also well supported. See the sourcecode/homepage at:"msgstr ""

#3ec7b8f0c3e0425baac65f2a0f97394cmsgid "bpssl is a Django application that helps you support HTTPS on your website. The main functionality is performing redirection for HTTPS only URLs and views. For instance, if a request for your login view '/login' is recieved over HTTP, the provided middleware can redirect the user to the equivalent HTTPS page."msgstr ""

#46cbf44fbb2040d983af60128148537dmsgid "bpssl Documentation"msgstr ""

http://sphinx.pocoo.org/latest/intl.html

Sphinx 1.1
()

http://sphinx.pocoo.org/latest/intl.html

Sphinx 1.1
()


(`)

INDIR=$1OUTDIR=$2LOCALES=`cd $OUTDIR && ls -d */ | sed 's/\/$//'`for LOCALE in $LOCALES; do echo "Updating locale $LOCALE..." for FILE in `cd $INDIR && find . -name "*.pot"`; do OUTFILE=`echo "$FILE" | sed 's/\.pot$/\.po/'` OUTFILE=`echo "$OUTFILE" | cut -b 1-2 --complement` INFILE=`echo "$FILE" | cut -b 1-2 --complement`

pybabel update -l $LOCALE -i $INDIR/$INFILE -o $OUTDIR$LOCALE/LC_MESSAGES/$OUTFILE donedone

init_trans.sh / update_trans.sh

index.pot

other.pot

directory/subfile.pot

en/LC_MESSAGES/index.po

other.po

directory/subfile.po

ja/...

de/...

http://sphinx.pocoo.org/latest/intl.html

Sphinx 1.1
()

http://sphinx.pocoo.org/latest/intl.html

Sphinx 1.1
()

compile_trans.sh

index.po

other.po

directory/subfile.po

index.mo

other.mo

directory/subfile.mo

http://sphinx.pocoo.org/latest/intl.html

Sphinx 1.1
()

sphinx-build -Dlanguage=ja

index.mo

other.mo

directory/subfile.mo

index.rst

other.rst

directory/subfile.rst

+

gettext

gettext

Python

[email protected]@IanMLewis