Skip to content

Commit

Permalink
Merge pull request #3 from rascaraficci/master
Browse files Browse the repository at this point in the history
Adds pt_BR translation for the Instalation Guide section.
  • Loading branch information
rascaraficci committed Oct 5, 2017
2 parents e31fde7 + 1bc0647 commit b9f54ec
Show file tree
Hide file tree
Showing 9 changed files with 1,288 additions and 2 deletions.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ do so, please follow the steps below. Those are actually based off
[Read The Docs own documentation](https://docs.readthedocs.io/en/latest/getting_started.html).

```shell
$ pip install sphinx sphinx-autobuild sphinx_rtd_theme
$ pip install sphinx sphinx-autobuild sphinx_rtd_theme sphinx-intl
$ make html
```

Expand All @@ -21,3 +21,32 @@ To install pip on an ubuntu machine:
```shell
$ sudo apt-get install python-pip
```

To build the documentation in Brazilian Portuguese language, run the following extra commands:

```shell
$ sphinx-intl -c source/conf.py build -d source/locale
$ make html BUILDDIR=build/html-pt_BR O='-d build/doctrees/ -D language=pt_BR'
```


## Update workflow

To update the documentation, follow the steps below:

1. Update the source files for the english version

2. Extract translatable messages from the english version

```shell
$ make gettext
```
3. Update the message catalog (PO Files) for pt_BR language

```shell
$ sphinx-intl -c source/conf.py update -p build/gettext -l pt_BR
```

4. Translate the messages in the pt_BR language PO files

This workflow is based on the [internationalization feature of Sphinx](http://www.sphinx-doc.org/en/stable/intl.html).
3 changes: 3 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,6 @@

# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']

#
locale_dirs = ['locale/'] # path is example but recommended
2 changes: 1 addition & 1 deletion source/install/compose_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ https://docs.docker.com/engine/installation/
Docker Compose
^^^^^^^^^^^^^^

Up to date information and installation procedures for the docker engine can
Up to date information and installation procedures for the docker-compose can
be found at the project's documentation:

https://docs.docker.com/compose/install/
Expand Down
118 changes: 118 additions & 0 deletions source/locale/pt_BR/LC_MESSAGES/architecture.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017, CPqD
# This file is distributed under the same license as the dojot package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: dojot 0.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-03 16:44-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 2.5.1\n"

#: ../../source/architecture.rst:2
msgid "Architecture"
msgstr ""

#: ../../source/architecture.rst:4
msgid ""
"This document describes the current architecture that guides the platform"
" implementation, detailing the components that comprise the solution, as "
"well as their functionalities and how each of them contribute to the "
"platform as a whole."
msgstr ""

#: ../../source/architecture.rst:8
msgid ""
"While a brief explanation of each component is provided, this high level "
"description does not explain (or aims to explain) the minutia of each "
"component's implementation. For that, please refer to each component's "
"own documentation."
msgstr ""

#: ../../source/architecture.rst:16
msgid "Components"
msgstr ""

#: ../../source/architecture.rst:18
msgid ""
"This section should describe - in high level - the components that "
"comprise the solution, giving the reader enough detail to understand the "
"responsabilities of the components, the technologies involved in its "
"design and implementation and its relation with its peers."
msgstr ""

#: ../../source/architecture.rst:23
msgid "Infrastructure"
msgstr ""

#: ../../source/architecture.rst:25
msgid ""
"This section should describe the components that are used as ready-made "
"pieces of working software that compose the solution, but have no "
"implementation specific to the project. Relevant topics that might be "
"discussed here are:"
msgstr ""

#: ../../source/architecture.rst:29
msgid "The API gateway"
msgstr ""

#: ../../source/architecture.rst:30
msgid "Storage components (mongo, redis, HDFS, CEPH, etc.)"
msgstr ""

#: ../../source/architecture.rst:31
msgid ""
"Processing libraries and environments (Spark, Flink, Storm, kafka-"
"streaming, map-reduce, etc.)"
msgstr ""

#: ../../source/architecture.rst:32
msgid "Broker components (rabbitMQ, mosquitto, kafka, verneMQ, emqtt, etc.)"
msgstr ""

#: ../../source/architecture.rst:35
msgid "Communications"
msgstr ""

#: ../../source/architecture.rst:37
msgid ""
"This section should provide the reader with the communication strategy "
"used to bind together the components that comprise the solution, as well "
"as the interfaces (protocols, serialization formats) available to the "
"applications and devices developers."
msgstr ""

#: ../../source/architecture.rst:42
msgid "Deployment strategies"
msgstr ""

#: ../../source/architecture.rst:44
msgid ""
"This section should list the deployment requirements and implementation "
"decisions made to satisfy those requirements. \"Why orchestrator platform"
" 'x'?\", \"How can this be deployed on commercial cloud environments?\", "
"\"How can this be deployed on stand-alone environments?\" are all "
"questions that should be answered here."
msgstr ""

#: ../../source/architecture.rst:50
msgid "Comparative analysis"
msgstr ""

#: ../../source/architecture.rst:52
msgid ""
"This section should detail the features that differenciate the platform "
"from a \"stock\" deployment of fiware, as well as a feature summary "
"comparing the proposed solution with a reduced set of third-party "
"implementations of IoT platforms available."
msgstr ""

0 comments on commit b9f54ec

Please sign in to comment.