Skip to content

Commit 1636c49

Browse files
author
Suguru Hirahara
committed
Start adopting REUSE on files for a brand new subproject (translation)
REUSE is an initiative by FSFE, which intends to make licensing easier with best practices to display legal information through comment headers on source files that can be easily human and machine readable. Because these files are new and translation shall involve a lot of people as copyright holders, now is the best time to adopt REUSE. As a first implementation, this commit intentionally limits the scope to i18n directory. Cherry-picked from c737ed0 and a2445af Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 0afa372 commit 1636c49

File tree

8 files changed

+286
-0
lines changed

8 files changed

+286
-0
lines changed

LICENSES/AGPL-3.0-or-later.txt

Lines changed: 235 additions & 0 deletions
Large diffs are not rendered by default.

conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <[email protected]>
2+
# SPDX-FileCopyrightText: 2024 Suguru Hirahara <[email protected]>
3+
#
4+
# SPDX-License-Identifier: AGPL-3.0-or-later
5+
16
# Configuration file for the Sphinx documentation builder.
27
# Also see the `i18n/` directory.
38
#

i18n/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2024 Slavi Pantaleev <[email protected]>
3+
SPDX-FileCopyrightText: 2024 Suguru Hirahara <[email protected]>
4+
5+
SPDX-License-Identifier: AGPL-3.0-or-later
6+
-->
7+
18
# Internationalization
29

310
Translated documentation files are published and maintained in [`translated/`](translated/) directory.

i18n/bin/build-translated-result.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22

3+
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <[email protected]>
4+
#
5+
# SPDX-License-Identifier: AGPL-3.0-or-later
6+
37
# This script builds the translated result (translated project) for a given language in the `translated/<language>/` directory.
48

59
set -euxo pipefail

i18n/bin/extract-translation-templates.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <[email protected]>
4+
35
# This script extracts translation templates (original English strings) into the `translation-templates/` directory.
46
# These templates are later used to generate locale files for each language in the `locales/` directory.
57
#

i18n/bin/sync-translation-templates-to-locales.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22

3+
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <[email protected]>
4+
#
5+
# SPDX-License-Identifier: AGPL-3.0-or-later
6+
37
# This script updates the translation files (locales/<language>/**/*.po) for a given language.
48
# It uses the translation templates (translation-templates/**/*.pot) to generate the translation files.
59

i18n/justfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <[email protected]>
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
15
# Shows help
26
default:
37
@just --list --justfile {{ justfile() }}

reuse.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SPDX-FileCopyrightText: 2024 Suguru Hirahara
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
5+
version = 1
6+
7+
# Computer-generated files and other files which cannot be copyrighted
8+
[[annotations]]
9+
path = [
10+
"i18n/.gitignore",
11+
"i18n/requirements.txt",
12+
"i18n/PUBLISHED_LANGUAGES"
13+
]
14+
SPDX-FileCopyrightText = "NONE"
15+
SPDX-License-Identifier = "CC0-1.0"
16+
17+
# See https://reuse.software/faq/#aggregate-info
18+
[[annotations]]
19+
path = [
20+
"i18n/**/*.po",
21+
"i18n/**/*.pot"
22+
]
23+
precedence = "aggregate"
24+
SPDX-FileCopyrightText = "Slavi Pantaleev, MDAD community members"
25+
SPDX-License-Identifier = "AGPL-3.0-or-later"

0 commit comments

Comments
 (0)