Skip to content

Commit

Permalink
Continue intl (#96)
Browse files Browse the repository at this point in the history
* Continue intl

* remove sthing
  • Loading branch information
fmaussion committed Jun 11, 2020
1 parent aa40c02 commit 89d6190
Show file tree
Hide file tree
Showing 28 changed files with 2,927 additions and 54 deletions.
26 changes: 16 additions & 10 deletions docs/alps_future.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ Future evolution of glaciers in the European Alps
:width: 100%
:target: alps_future-app.html

Find out about the future evolution of glaciers in the European Alps! The graphic presents the volume change of the glaciers under three different `RCP-scenarios <https://www.skepticalscience.com/rcp.php>`_. In addition, the glacier evolution of the different alpine countries can be compared.
Find out about the future evolution of glaciers in the European Alps! This
interactive graphic displays the volume change of all alpine glaciers
under three different `RCP-scenarios <https://www.skepticalscience.com/rcp.php>`_.
In addition, the glacier evolution of the different alpine countries can be compared.


- to start the app click on this link: |badge_bokeh_en|_
To start the app, click on this link: |badge_bokeh_en|_

.. _badge_bokeh_en: alps_future-app.html

Expand All @@ -29,14 +32,17 @@ Source code

Code and data are on `GitHub <https://github.com/OGGM/alps_future>`_, BSD3 licensed.

.. ifconfig:: sphinxopt_lan in ('en')

Possible future improvements
----------------------------
Possible future app improvements
--------------------------------

- implementation of uncertainties into the graphic
- possibility to choose between absolute and percentage change of volume
- adding a map in which the user can select glaciers
- implement tick-boxes for choosing the displayed RCP-scenarios
- two dropdown menus to give the opportunity that every region can be compared to every other region/country
- display of uncertainties into the graphic
- possibility to choose between absolute and percentage change of volume
- adding a map in which the user can select glaciers
- implement tick-boxes for choosing the displayed RCP-scenarios
- two dropdown menus to give the opportunity that every region can be compared to every other region/country

If you are interested to contribute you can send us the edited `file <https://github.com/OGGM/alps_future/blob/master/app.ipynb>`_ per mail or with a pull-request. Thanks!
If you are interested to contribute you can send us the edited
`file <https://github.com/OGGM/alps_future/blob/master/app.ipynb>`_ per mail or
with a pull-request. Thanks!
21 changes: 15 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'


# The encoding of source files.
# source_encoding = 'utf-8-sig'

Expand All @@ -138,7 +139,7 @@

# General information about the project.
project = u'OGGM-Edu'
copyright = u'2018, OGGM Developers'
copyright = u'OGGM Developers'
author = u'OGGM Developers'

# The version info for the project you're documenting, acts as replacement for
Expand All @@ -157,6 +158,18 @@
# Usually you set "language" from the command line for these cases.
language = None


# Options for internationalization
locale_dirs = ['locale/'] # path is example but recommended.
gettext_compact = False # optional.


# There is probably a better way to do this - I just check in which lanuage
# we are in these docs
sphinxopt_lan = os.environ.get('SPHINXOPTS', 'en')
if 'language=' in sphinxopt_lan:
sphinxopt_lan = sphinxopt_lan.split('language=')[-1]

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
# today = ''
Expand Down Expand Up @@ -340,11 +353,6 @@
# If false, no module index is generated.
# latex_domain_indices = True

# -- Options for internationalization ---------------------------------------
locale_dirs = ['locale/'] # path is example but recommended.
gettext_compact = False # optional.


# -- Options for manual page output ---------------------------------------

# One entry per manual page. List of tuples
Expand Down Expand Up @@ -392,3 +400,4 @@
# Add toggle container https://stackoverflow.com/questions/2454577/sphinx-restructuredtext-show-hide-code-snippets
def setup(app):
app.add_stylesheet('custom.css')
app.add_config_value('sphinxopt_lan', '', sphinxopt_lan)
2 changes: 1 addition & 1 deletion docs/explorer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Part 1: app functionalities
.. raw:: html

<iframe src="https://player.vimeo.com/video/422776970" width="640" height="357" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
<p><a href="https://vimeo.com/422776970">OGGM-Edu app: World Glaciers Explorer tutorial (part 2) on Vimeo</a></p>
<p><a href="https://vimeo.com/422776970">OGGM-Edu app: World Glaciers Explorer tutorial (part 1) on Vimeo</a></p>

Part 2: example questions
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
77 changes: 40 additions & 37 deletions docs/locale/de/LC_MESSAGES/alps_future.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,104 +3,107 @@
# This file is distributed under the same license as the OGGM-Edu package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OGGM-Edu 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-06-07 15:35+0200\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"
"POT-Creation-Date: 2020-06-11 10:17+0200\n"
"PO-Revision-Date: 2020-06-11 10:00+0200\n"
"Language: de\n"
"Language-Team: German <>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.5.3\n"

#: ../../alps_future.rst:4
msgid "Future evolution of glaciers in the European Alps"
msgstr "Zukünftige Evolution von Gletschern in den Alpen"
msgstr "Zukünftige Evolution der Alpengletschern"

#: ../../alps_future.rst:10
msgid ""
"Find out about the future evolution of glaciers in the European Alps! The"
" graphic presents the volume change of the glaciers under three different"
" `RCP-scenarios <https://www.skepticalscience.com/rcp.php>`_. In "
"addition, the glacier evolution of the different alpine countries can be "
"compared."
"Find out about the future evolution of glaciers in the European Alps! "
"This interactive graphic displays the volume change of all alpine "
"glaciers under three different `RCP-scenarios "
"<https://www.skepticalscience.com/rcp.php>`_. In addition, the glacier "
"evolution of the different alpine countries can be compared."
msgstr ""
"Informieren Sie sich über die zukünftige Entwicklung der Gletscher in den europäischen Alpen! Das "
"Grafik zeigt die Volumenänderung der Gletscher unter drei verschiedenen "
"`RCP-Szenarien <https://www.skepticalscience.com/rcp.php>`_. "
"Außerdem kann die Gletscherentwicklung in verschiedenen Alpenländer "
"verglichen sein."
"Informieren Sie sich über die zukünftige Entwicklung der Gletscher in den"
" europäischen Alpen! Diese interaktive Grafik zeigt die Volumenänderung "
"aller Alpengletscher unter drei verschiedenen 'RCP-Szenarien "
"<https://www.skepticalscience.com/rcp.php>'_. Darüber hinaus kann die "
"Gletscherentwicklung der verschiedenen Alpenländer verglichen werden."

#: ../../alps_future.rst:13
msgid "to start the app click on this link: |badge_bokeh_en|_"
msgstr "um die App zu starten klicke auf folgendem Link: |badge_bokeh_en|_"
#: ../../alps_future.rst:16
msgid "To start the app, click on this link: |badge_bokeh_en|_"
msgstr "Um die App zu starten klicke auf folgendem Link: |badge_bokeh_en|_"

#: ../../alps_future.rst:18
#: ../../alps_future.rst:21
msgid "Authors"
msgstr ""
msgstr "Autoren"

#: ../../alps_future.rst:20
#: ../../alps_future.rst:23
msgid ""
"`Fabien Maussion <https://fabienmaussion.info/>`_ and `Zora Schirmeister "
"<https://github.com/zschirmeister>`_"
msgstr ""
"`Fabien Maussion <https://fabienmaussion.info/>`_ und `Zora Schirmeister "
"<https://github.com/zschirmeister>`_"

#: ../../alps_future.rst:23
#: ../../alps_future.rst:26
msgid "Data sources"
msgstr "Datenquellen"

#: ../../alps_future.rst:25
#: ../../alps_future.rst:28
msgid ""
"Data: `Zekollari et al. (2019) <https://www.the-"
"cryosphere.net/13/1125/2019/>`_"
msgstr ""
"Daten: `Zekollari et al. (2019) <https://www.the-"
"cryosphere.net/13/1125/2019/>`_"

#: ../../alps_future.rst:28
#: ../../alps_future.rst:31
msgid "Source code"
msgstr ""
msgstr "Quellcode"

#: ../../alps_future.rst:30
#: ../../alps_future.rst:33
msgid ""
"Code and data are on `GitHub <https://github.com/OGGM/alps_future>`_, "
"BSD3 licensed."
msgstr ""
"Code und Daten befinden sich auf `GitHub "
"<https://github.com/OGGM/alps_future>`_, BSD3 lizenziert."

#: ../../alps_future.rst:34
msgid "Possible future improvements"
# No need to translate below that
#: ../../alps_future.rst:38
msgid "Possible future app improvements"
msgstr ""

#: ../../alps_future.rst:36
msgid "implementation of uncertainties into the graphic"
#: ../../alps_future.rst:40
msgid "display of uncertainties into the graphic"
msgstr ""

#: ../../alps_future.rst:37
#: ../../alps_future.rst:41
msgid "possibility to choose between absolute and percentage change of volume"
msgstr ""

#: ../../alps_future.rst:38
#: ../../alps_future.rst:42
msgid "adding a map in which the user can select glaciers"
msgstr ""

#: ../../alps_future.rst:39
#: ../../alps_future.rst:43
msgid "implement tick-boxes for choosing the displayed RCP-scenarios"
msgstr ""

#: ../../alps_future.rst:40
#: ../../alps_future.rst:44
msgid ""
"two dropdown menus to give the opportunity that every region can be "
"compared to every other region/country"
msgstr ""

#: ../../alps_future.rst:42
#: ../../alps_future.rst:46
msgid ""
"If you are interested to contribute you can send us the edited `file "
"<https://github.com/OGGM/alps_future/blob/master/app.ipynb>`_ per mail or"
" with a pull-request. Thanks!"
msgstr ""

110 changes: 110 additions & 0 deletions docs/locale/fr/LC_MESSAGES/alps_future.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2018, OGGM Developers
# This file is distributed under the same license as the OGGM-Edu package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: OGGM-Edu 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-06-11 09:57+0200\n"
"PO-Revision-Date: 2020-06-11 10:23+0200\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.5.3\n"
"Language-Team: German <>\n"
"Language: fr\n"
"X-Generator: Gtranslator 2.91.7\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#: ../../alps_future.rst:4
msgid "Future evolution of glaciers in the European Alps"
msgstr "Évolution future des glaciers dans les Alpes européennes"

#: ../../alps_future.rst:10
msgid ""
"Find out about the future evolution of glaciers in the European Alps! This "
"interactive graphic displays the volume change of all alpine glaciers under "
"three different `RCP-scenarios <https://www.skepticalscience.com/rcp.php>`_. "
"In addition, the glacier evolution of the different alpine countries can be "
"compared."
msgstr ""
"Découvrez l’évolution future des glaciers dans les Alpes européennes! Ce "
"graphique interactif affiche le changement de volume de tous les glaciers "
"alpins dans le cadre de trois différents `scénarios RCP <https://www."
"skepticalscience.com/rcp.php>`_. En outre, l’évolution des glaciers des "
"différents pays alpins peut être comparée."

#: ../../alps_future.rst:16
msgid "To start the app, click on this link: |badge_bokeh_en|_"
msgstr "Pour démarrer l’application, cliquez sur ce lien : |badge_bokeh_en|_"

#: ../../alps_future.rst:21
msgid "Authors"
msgstr "Auteurs"

#: ../../alps_future.rst:23
msgid ""
"`Fabien Maussion <https://fabienmaussion.info/>`_ and `Zora Schirmeister "
"<https://github.com/zschirmeister>`_"
msgstr ""
"`Fabien Maussion <https://fabienmaussion.info/>`_ et `Zora Schirmeister "
"<https://github.com/zschirmeister>`_"

#: ../../alps_future.rst:26
msgid "Data sources"
msgstr "Sources des données"

#: ../../alps_future.rst:28
msgid ""
"Data: `Zekollari et al. (2019) <https://www.the-cryosphere.net/13/1125/2019/"
">`_"
msgstr ""
"Données: `Zekollari et al. (2019) <https://www.the-cryosphere."
"net/13/1125/2019/>`_"

#: ../../alps_future.rst:31
msgid "Source code"
msgstr "Code source"

#: ../../alps_future.rst:33
msgid ""
"Code and data are on `GitHub <https://github.com/OGGM/alps_future>`_, BSD3 "
"licensed."
msgstr ""
"Le code et les données sont sur `GitHub <https://github.com/OGGM/"
"alps_future>`_, sous une licence BSD3."

#: ../../alps_future.rst:37
msgid "Possible future app improvements"
msgstr ""

#: ../../alps_future.rst:39
msgid "display of uncertainties into the graphic"
msgstr ""

#: ../../alps_future.rst:40
msgid "possibility to choose between absolute and percentage change of volume"
msgstr ""

#: ../../alps_future.rst:41
msgid "adding a map in which the user can select glaciers"
msgstr ""

#: ../../alps_future.rst:42
msgid "implement tick-boxes for choosing the displayed RCP-scenarios"
msgstr ""

#: ../../alps_future.rst:43
msgid ""
"two dropdown menus to give the opportunity that every region can be compared "
"to every other region/country"
msgstr ""

#: ../../alps_future.rst:45
msgid ""
"If you are interested to contribute you can send us the edited `file "
"<https://github.com/OGGM/alps_future/blob/master/app.ipynb>`_ per mail or "
"with a pull-request. Thanks!"
msgstr ""

0 comments on commit 89d6190

Please sign in to comment.