Skip to content

Commit 3329e09

Browse files
committed
Removed Sphinx and Babel command class from setup.py file and added a TRANSLATE file for more details about translate the package
1 parent 8f21fd0 commit 3329e09

File tree

3 files changed

+58
-13
lines changed

3 files changed

+58
-13
lines changed

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ You can currently add the following:
9999
* ``:bitbucket_url:`` This will force the "Edit on Bitbucket" to the configured URL
100100
* ``:gitlab_url:`` This will force the "Edit on GitLab" to the configured URL
101101

102+
Translations
103+
============
104+
105+
You can help to translate the Read the Docs Sphinx Theme,
106+
please check out the ``TRANSLATE.rst`` file for more details.
107+
102108
Changelog
103109
=========
104110

TRANSLATE.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
******************
2+
Translation Guide
3+
******************
4+
5+
.. contents::
6+
7+
You can help to translate the Read the Docs Sphinx Theme.
8+
9+
Languages availables:
10+
11+
- Spanish contributed by Leonardo J. Caballero G.
12+
- Your Language by YOUR NAME.
13+
14+
Installation
15+
============
16+
17+
For translate the Read the Docs Sphinx Theme you need install the following packages:
18+
19+
.. code:: bash
20+
21+
$ pip install babel Jinja2
22+
23+
Distutils/Setuptools Integration
24+
================================
25+
26+
You can configure different parts of the theme.
27+
28+
Compile catalog
29+
---------------
30+
31+
For compile catalog of the theme's project-wide is available.
32+
More options please, check out http://babel.pocoo.org/en/latest/setup.html#compile-catalog
33+
34+
Extract messages
35+
----------------
36+
37+
It is available the option to extract messages to translate.
38+
More options please, check out http://babel.pocoo.org/en/latest/setup.html#extract-messages
39+
40+
init catalog
41+
------------
42+
43+
It is available the option to init catalog.
44+
More options please, check out http://babel.pocoo.org/en/latest/setup.html#init-catalog
45+
46+
update catalog
47+
--------------
48+
49+
It is available the option to init catalog.
50+
More options please, check out http://babel.pocoo.org/en/latest/setup.html#update-catalog
51+
52+

setup.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
66
"""
77

8-
try:
9-
from babel.messages import frontend as babel
10-
except ImportError:
11-
pass
128
from setuptools import setup
139
from sphinx_rtd_theme import __version__
1410

@@ -48,13 +44,4 @@
4844
'Topic :: Documentation',
4945
'Topic :: Software Development :: Documentation',
5046
],
51-
install_requires= [
52-
'Sphinx>=1.4.1',
53-
],
54-
cmdclass = {
55-
'compile_catalog': babel.compile_catalog,
56-
'extract_messages': babel.extract_messages,
57-
'init_catalog': babel.init_catalog,
58-
'update_catalog': babel.update_catalog
59-
},
6047
)

0 commit comments

Comments
 (0)