Skip to content

Commit

Permalink
Updated PO files for French
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Sep 21, 2020
1 parent 986c193 commit 12201b3
Show file tree
Hide file tree
Showing 35 changed files with 5,685 additions and 1,714 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@
SOURCEDIR = src
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXINTL = sphinx-intl
SPHINXPROJ = RoadizDoc
PAPER = a4
BUILDDIR = _build
SPHINXINTL_LANGUAGE = fr

# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
endif

# Internal variables.
# Internal variables

PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR)
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR)

.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext

Expand Down Expand Up @@ -173,6 +176,7 @@ info:

gettext:
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
${SPHINXINTL} -c ${SOURCEDIR}/conf.py update -p $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."

Expand Down
5 changes: 2 additions & 3 deletions src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@
from recommonmark.transform import AutoStructify

# import sphinx_rtd_theme
#
cwd = os.getcwd()
_themes = os.path.join(cwd, '../_themes/roadiz_rtd_theme')
# Add and use Pylons theme
if 'sphinx-build' in ' '.join(sys.argv): # protect against dumb importers
from subprocess import call, Popen, PIPE

p = Popen('which git', shell=True, stdout=PIPE)
git = p.stdout.read().strip()
cwd = os.getcwd()
_themes = os.path.join(cwd, '../_themes/roadiz_rtd_theme')

if not os.path.isdir(_themes):
call([git, 'clone', 'https://github.com/roadiz/roadiz_rtd_theme.git',
Expand Down
184 changes: 184 additions & 0 deletions src/locale/fr/LC_MESSAGES/developer/attributes/index.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2020, Ambroise Maupate & Julien Blanchet
# This file is distributed under the same license as the Roadiz
# documentation package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Roadiz documentation 1.5.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-09-21 11:54+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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"

#: ../../src/developer/attributes/index.rst:3
msgid "Attributes"
msgstr ""

#: ../../src/developer/attributes/index.rst:5
msgid ""
"Attributes are entities meant to qualify features on other entities, such"
" as *nodes*. The main difference between *tags* and *attributes* is that "
"you can set a value for each attributed *node*."
msgstr ""

#: ../../src/developer/attributes/index.rst:13
msgid ""
"The attribute \"Color\" can be set to \"red\" for one node and set to "
"\"green\" for an other one."
msgstr ""

#: ../../src/developer/attributes/index.rst:15
msgid ""
"Okay, but now what is the difference between *attributes* and node-type "
"fields? Not so much because node-type fields describe your node' features"
" too, but they are fixed and defined by the developer. Once your node-"
"type fields are created, you have to implement your feature in your "
"*Twig* templates, and translate it in your XLF files too."
msgstr ""

#: ../../src/developer/attributes/index.rst:20
msgid ""
"Attributes are meant to be created and added by editors so they can use "
"them in your website lifecycle without needing any further development."
msgstr ""

#: ../../src/developer/attributes/index.rst:23
msgid ""
"From the developer perspective, attributes are just a collection of "
"entities to be displayed in a loop. Then your editor can create new ones "
"and be sure they will be displayed without any additional development."
msgstr ""

#: ../../src/developer/attributes/index.rst:51
msgid ""
"If you grouped your attributes, you can use ``grouped_attributes`` filter"
" instead:"
msgstr ""

#: ../../src/developer/attributes/index.rst:88
msgid "Attributes types"
msgstr ""

#: ../../src/developer/attributes/index.rst:93
msgid "*String*"
msgstr ""

#: ../../src/developer/attributes/index.rst:94
msgid "*Date*"
msgstr ""

#: ../../src/developer/attributes/index.rst:95
msgid "*Date and time*"
msgstr ""

#: ../../src/developer/attributes/index.rst:96
msgid "*Single choice*: choice among defined options in your attribute"
msgstr ""

#: ../../src/developer/attributes/index.rst:97
msgid "*Boolean*"
msgstr ""

#: ../../src/developer/attributes/index.rst:98
msgid "*Integer*"
msgstr ""

#: ../../src/developer/attributes/index.rst:99
msgid "*Decimal*"
msgstr ""

#: ../../src/developer/attributes/index.rst:100
msgid "*Email*"
msgstr ""

#: ../../src/developer/attributes/index.rst:101
msgid "*Color*"
msgstr ""

#: ../../src/developer/attributes/index.rst:102
msgid "*Country*: ISO 2-letters country code"
msgstr ""

#: ../../src/developer/attributes/index.rst:105
msgid "Add attributes to nodes"
msgstr ""

#: ../../src/developer/attributes/index.rst:107
msgid "*Attribute* section is available for any node in any translations."
msgstr ""

#: ../../src/developer/attributes/index.rst:113
msgid "Twig extension"
msgstr ""

#: ../../src/developer/attributes/index.rst:115
msgid ""
"Several filters and tests are available to ease up templating with "
"*attributes*:"
msgstr ""

#: ../../src/developer/attributes/index.rst:118
msgid "Filters"
msgstr ""

#: ../../src/developer/attributes/index.rst:120
msgid ""
"``attributes``: same as ``node_source_attributes()`` method, get all "
"available attributes from a ``NodesSources``."
msgstr ""

#: ../../src/developer/attributes/index.rst:121
msgid ""
"``grouped_attributes``: same as ``node_source_grouped_attributes()`` "
"method, get all available attributes from a ``NodesSources`` and gather "
"them into their **group**."
msgstr ""

#: ../../src/developer/attributes/index.rst:122
msgid ""
"``attribute_label(translation)``: get attribute translated ``label`` or "
"``code`` if not translated."
msgstr ""

#: ../../src/developer/attributes/index.rst:123
msgid ""
"``attribute_group_label(translation)``: get attribute group translated "
"``name`` or ``canonicalName`` if not translated."
msgstr ""

#: ../../src/developer/attributes/index.rst:126
msgid "Tests"
msgstr ""

#: ../../src/developer/attributes/index.rst:128
msgid "``datetime``"
msgstr ""

#: ../../src/developer/attributes/index.rst:129
msgid "``date``"
msgstr ""

#: ../../src/developer/attributes/index.rst:130
msgid "``country``"
msgstr ""

#: ../../src/developer/attributes/index.rst:131
msgid "``boolean``"
msgstr ""

#: ../../src/developer/attributes/index.rst:132
msgid "``choice``"
msgstr ""

#: ../../src/developer/attributes/index.rst:133
msgid "``enum``"
msgstr ""

0 comments on commit 12201b3

Please sign in to comment.