Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
a2e88140
Commit
a2e88140
authored
10 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
docs: update site documentation for new i18n support
parent
2538b1b1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/user/getting_started.rst
+3
-5
3 additions, 5 deletions
docs/user/getting_started.rst
docs/user/site.rst
+36
-3
36 additions, 3 deletions
docs/user/site.rst
with
39 additions
and
8 deletions
docs/user/getting_started.rst
+
3
−
5
View file @
a2e88140
...
@@ -47,17 +47,15 @@ So let's create the directory *site/*:
...
@@ -47,17 +47,15 @@ So let's create the directory *site/*:
mkdir site
mkdir site
cd site
cd site
Copy *site.conf*
and
*site.mk* from *docs/site-example*:
Copy *site.conf*
,
*site.mk*
and *i18n*
from *docs/site-example*:
::
::
cp ../docs/site-example/site.conf .
cp ../docs/site-example/site.conf .
cp ../docs/site-example/site.mk .
cp ../docs/site-example/site.mk .
cp -r ../docs/site-example/i18n .
.. note:: On **v2014.3**, take both files from
Edit these files to match your community, then go back to the top-level Gluon
https://github.com/freifunk-gluon/gluon/tree/2014.3.x/docs/site-example
Edit both files to match your community, then go back to the top-level Gluon
directory and build Gluon:
directory and build Gluon:
::
::
...
...
This diff is collapsed.
Click to expand it.
docs/user/site.rst
+
36
−
3
View file @
a2e88140
...
@@ -180,9 +180,6 @@ setup_mode : package
...
@@ -180,9 +180,6 @@ setup_mode : package
skip = true,
skip = true,
},
},
config_mode : package
Configuration Mode text blocks
legacy : package
legacy : package
Configuration for the legacy upgrade path.
Configuration for the legacy upgrade path.
This is only required in communities upgrading from Lübeck's LFF-0.3.x.
This is only required in communities upgrading from Lübeck's LFF-0.3.x.
...
@@ -215,6 +212,30 @@ GLUON_PRIORITY
...
@@ -215,6 +212,30 @@ GLUON_PRIORITY
The default priority for the generated manifests (see the autoupdater documentation
The default priority for the generated manifests (see the autoupdater documentation
for more information).
for more information).
GLUON_LANGS
List of languages (as two-letter-codes) to include for the web interface. Should always contain
``en``.
Config mode texts
-----------------
The community-defined texts in the config mode are configured in PO files in the ``i18n`` subdirectory
of the site configuration. The message IDs currently defined are:
gluon-config-mode:welcome
Welcome text on the top of the config wizard page.
gluon-config-mode:pubkey
Information about the public VPN key on the reboot page.
gluon-config-mode:reboot
General information about the reboot page.
There is a POT file in the site example directory which can be used to create templates
for the language files. The command ``msginit -l en -i ../../docs/site-example/i18n/gluon-site.pot``
can be used from the ``i18n`` directory to create an initial PO file called ``en.po`` if the ``gettext``
utilities are installed.
Examples
Examples
--------
--------
...
@@ -230,6 +251,18 @@ site.conf
...
@@ -230,6 +251,18 @@ site.conf
.. literalinclude:: ../site-example/site.conf
.. literalinclude:: ../site-example/site.conf
:language: lua
:language: lua
i18n/en.po
^^^^^^^^^^
.. literalinclude:: ../site-example/i18n/en.po
:language: po
i18n/de.po
^^^^^^^^^^
.. literalinclude:: ../site-example/i18n/de.po
:language: po
modules
modules
^^^^^^^
^^^^^^^
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment