Skip to content

Commit 03f2691

Browse files
committed
Add translated version of pages
1 parent 6e282dd commit 03f2691

File tree

14 files changed

+1583
-17
lines changed

14 files changed

+1583
-17
lines changed

.github/workflows/sphinx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Build pages
2929
run: |
30-
sphinx-build pages _build
30+
make gettext html
3131
3232
- name: Create nojekyll file
3333
run: |
@@ -37,5 +37,5 @@ jobs:
3737
if: ${{ github.event_name == 'push' && steps.deploy-on-push.outputs.result != 0 }}
3838
with:
3939
branch: gh-pages
40-
folder: _build
40+
folder: _build/html
4141
single-commit: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/_*
2+
*.mo

Makefile

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
# Minimal makefile for Sphinx documentation
22

33
# You can set these variables from the command line.
4-
LANGUAGE ?= en
4+
LANGUAGES ?= en de
55
SPHINXOPTS ?=
66
SPHINXBUILD ?= sphinx-build
7+
SPHINXINTL ?= sphinx-intl
78
SOURCEDIR ?= pages
89
BUILDDIR ?= _build
9-
10-
SPHINXOPTS += -Dlanguage='$(LANGUAGE)'
10+
LOCALEDIR ?= locale
1111

1212
# Put it first so that "make" without argument is like "make help".
1313
help:
1414
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1515

16-
.PHONY: help Makefile
16+
.PHONY: help $(MAKEFILES)
17+
18+
html: $(addprefix html/,$(LANGUAGES)) $(BUILDDIR)/html/index.html
19+
20+
$(addprefix html/,$(LANGUAGES)): $(MAKEFILES)
21+
@$(SPHINXBUILD) "$(SOURCEDIR)" "$(BUILDDIR)/$@" $(SPHINXOPTS) -Dlanguage=$(word 2,$(subst /, ,$@))
22+
23+
$(BUILDDIR)/html/index.html: html/index.html
24+
@cp $< $@
1725

18-
# Catch-all target: route all unknown targets to Sphinx using the new
19-
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
20-
%: Makefile
21-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
26+
gettext: $(MAKEFILES)
27+
@$(SPHINXBUILD) -b $@ "$(SOURCEDIR)" "$(BUILDDIR)/$@" $(SPHINXOPTS)
28+
@$(SPHINXINTL) update -p "$(BUILDDIR)/$@" -d locale $(addprefix -l,$(filter-out en,$(LANGUAGES)))

html/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE HTML>
2+
3+
<meta charset="UTF-8">
4+
<meta http-equiv="refresh" content="1; url=en/index.html">
5+
6+
<script>
7+
window.location.href = "en/index.html"
8+
</script>
9+
10+
<title>Page Redirection</title>
11+
12+
If you are not redirected automatically, follow the <a href='en/index.html'>link</a>.

locale/de/LC_MESSAGES/design.po

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright (C) 2021 Fortran programming language community
2+
# This file is distributed under the same license as the fpm package.
3+
# Sebastian Ehlert <[email protected]>, 2021.
4+
#
5+
#, fuzzy
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: fpm \n"
9+
"Report-Msgid-Bugs-To: \n"
10+
"POT-Creation-Date: 2021-11-26 13:25+0100\n"
11+
"PO-Revision-Date: 2021-11-26 12:38+0100\n"
12+
"Last-Translator: Sebastian Ehlert <[email protected]>\n"
13+
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=utf-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Generated-By: Babel 2.9.1\n"
18+
19+
#: ../../pages/design/index.md:3
20+
msgid "Design documents"
21+
msgstr ""
22+
"Design Dokumente"
23+
24+
#: ../../pages/design/index.md:1
25+
msgid ""
26+
"This section contains the resources around the design of the Fortran "
27+
"package manager (fpm)."
28+
msgstr ""
29+
"Dieser Abschnitt enthält die Ressourcen rund um den Aufbau des "
30+
"Fortran-Paketmanagers (fpm)."
31+
32+
#: ../../pages/design/index.md:9
33+
msgid ""
34+
"Fortran Package Manager (fpm) is a package manager and build system for "
35+
"Fortran. Its key goal is to improve the user experience of Fortran "
36+
"programmers. It does so by making it easier to build your Fortran program"
37+
" or library, run the executables, tests, and examples, and distribute it "
38+
"as a dependency to other Fortran projects. Fpm's user interface is "
39+
"modeled after [Rust's Cargo](https://doc.rust-lang.org/cargo/). Its long "
40+
"term vision is to nurture and grow the ecosystem of modern Fortran "
41+
"applications and libraries."
42+
msgstr ""
43+
"Fortran Package Manager (fpm) ist ein Paketmanager und Buildsystem für "
44+
"Fortran, mit dem Hauptziel die Benutzererfahrung von "
45+
"Fortran-Programmier*innen zu verbessern. "
46+
"Dies wird durch das einfachere Erstellung von Fortran-Programmen oder "
47+
"Fortran-Bibliotheken, Ausführung von Anwendungen und Beispielen und "
48+
"die Verbreitung von Abhängigkeiten zu anderen Fortran-Projekten ermöglicht. "
49+
"Fpm's Benutzeroberfläche ist modelliert nach [Rust's Cargo]"
50+
"(https://doc.rust-lang.org/cargo/). "
51+
"Die langfristige Vision ist es, die ein Ökosystem von modernen Fortran-Anwendungen "
52+
"und Bibliotheken zu entwickeln."

0 commit comments

Comments
 (0)