Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Re2o
re2o
Commits
55c1da24
Commit
55c1da24
authored
Jun 22, 2018
by
moamoak
Browse files
Support translation on home page
parent
aa6fa036
Changes
3
Hide whitespace changes
Inline
Side-by-side
re2o/locale/fr/LC_MESSAGES/django.mo
View file @
55c1da24
No preview for this file type
re2o/locale/fr/LC_MESSAGES/django.po
View file @
55c1da24
...
...
@@ -38,6 +38,19 @@ msgstr "Anglais"
msgid "French"
msgstr "Français"
#: templates/re2o/index.html:30
msgid "Home"
msgstr "Accueil"
#: templates/re2o/index.html:33
#, python-format
msgid "Welcome to %(site_name)s !"
msgstr "Bienvenue sur %(site_name)s !"
#: templates/re2o/index.html:47
msgid "Go there"
msgstr "Accéder"
#: templates/re2o/about.html:29 templates/re2o/about.html:35
msgid "About Re2o"
msgstr "A propos de Re2o"
...
...
re2o/templates/re2o/index.html
View file @
55c1da24
...
...
@@ -25,11 +25,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load staticfiles %}
{% load i18n %}
{% block title %}
Accueil
{% endblock %}
{% block title %}
{% trans "Home" %}
{% endblock %}
{% block content %}
<h1>
Bienvenue sur {{ request.get_host }} !
</h1>
<h1>
{% blocktrans %}Welcome to {{ site_name }} !{% endblocktrans %}
</h1>
<div
class=
"row"
>
{% for service_list in services_urls %}
...
...
@@ -38,12 +39,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div
class=
"col-12"
>
<div
class=
"thumbnail"
>
{% if service.image %}
<a
href=
"{{ service.url }}"
><img
src=
"{{ service.image.url
}}"
alt=
"{{ service.name }}"
></a>
<a
href=
"{{ service.url }}"
><img
src=
"{{ service.image.url }}"
alt=
"{{ service.name }}"
></a>
{% endif %}
<div
class=
"caption"
>
<h3>
{{ service.name }}
</h3>
<p>
{{ service.description }}
</p>
<p><a
href=
"{{ service.url }}"
class=
"btn btn-primary"
role=
"button"
>
Accéder
</a></p>
<p><a
href=
"{{ service.url }}"
class=
"btn btn-primary"
role=
"button"
>
{% trans "Go there" %}
</a></p>
</div>
</div>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment