Skip to content

Commit

Permalink
Merge pull request #3890 from luixxiul/fix
Browse files Browse the repository at this point in the history
Start adopting REUSE on files for a brand new subproject (translation)
  • Loading branch information
spantaleev authored Dec 20, 2024
2 parents 0afa372 + 1636c49 commit 36429d8
Show file tree
Hide file tree
Showing 8 changed files with 286 additions and 0 deletions.
235 changes: 235 additions & 0 deletions LICENSES/AGPL-3.0-or-later.txt

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <slavi@devture.com>
# SPDX-FileCopyrightText: 2024 Suguru Hirahara <acioustick@noreply.codeberg.org>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# Configuration file for the Sphinx documentation builder.
# Also see the `i18n/` directory.
#
Expand Down
7 changes: 7 additions & 0 deletions i18n/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<!--
SPDX-FileCopyrightText: 2024 Slavi Pantaleev <slavi@devture.com>
SPDX-FileCopyrightText: 2024 Suguru Hirahara <acioustick@noreply.codeberg.org>
SPDX-License-Identifier: AGPL-3.0-or-later
-->

# Internationalization

Translated documentation files are published and maintained in [`translated/`](translated/) directory.
Expand Down
4 changes: 4 additions & 0 deletions i18n/bin/build-translated-result.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <slavi@devture.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# This script builds the translated result (translated project) for a given language in the `translated/<language>/` directory.

set -euxo pipefail
Expand Down
2 changes: 2 additions & 0 deletions i18n/bin/extract-translation-templates.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <slavi@devture.com>

# This script extracts translation templates (original English strings) into the `translation-templates/` directory.
# These templates are later used to generate locale files for each language in the `locales/` directory.
#
Expand Down
4 changes: 4 additions & 0 deletions i18n/bin/sync-translation-templates-to-locales.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <slavi@devture.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# This script updates the translation files (locales/<language>/**/*.po) for a given language.
# It uses the translation templates (translation-templates/**/*.pot) to generate the translation files.

Expand Down
4 changes: 4 additions & 0 deletions i18n/justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev <slavi@devture.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# Shows help
default:
@just --list --justfile {{ justfile() }}
Expand Down
25 changes: 25 additions & 0 deletions reuse.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: 2024 Suguru Hirahara
#
# SPDX-License-Identifier: AGPL-3.0-or-later

version = 1

# Computer-generated files and other files which cannot be copyrighted
[[annotations]]
path = [
"i18n/.gitignore",
"i18n/requirements.txt",
"i18n/PUBLISHED_LANGUAGES"
]
SPDX-FileCopyrightText = "NONE"
SPDX-License-Identifier = "CC0-1.0"

# See https://reuse.software/faq/#aggregate-info
[[annotations]]
path = [
"i18n/**/*.po",
"i18n/**/*.pot"
]
precedence = "aggregate"
SPDX-FileCopyrightText = "Slavi Pantaleev, MDAD community members"
SPDX-License-Identifier = "AGPL-3.0-or-later"

0 comments on commit 36429d8

Please sign in to comment.