Adopt common v0.8.0 and preserve canceled hardware settings

This commit is contained in:
Storm Dragon committed 2026-11-16 20:10:47 -05:00
1 parent b21fceb311
commit 5dfa038706
410 files changed
+5353 -4803

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
// Copyright (c) 2026 Storm Dragon
// Authors: Storm Dragon, Angus Kola
// SPDX-License-Identifier: GPL-3.0-or-later
// Run from the repository root: go run ./tools/translations [check|update].
// Extraction, merging and checks are shared with Fenrir through
// screenreader-common's catalogtool; this file holds Cthulhu's rules.
// See TRANSLATIONS.md in screenreader-common.
package main
import (
"fmt"
"os"
"git.stormux.org/storm/screenreader-common/i18n/catalogtool"
)
// Cthulhu wraps its messages explicitly with i18n.T and i18n.Format. Labels
// are not extracted by field name yet: many Cthulhu Label fields hold
// application or Tentacle text, which must not be translated.
var config = catalogtool.Config{
Domain: "cthulhu",
Project: "Cthulhu",
Command: "go run ./tools/translations",
CatalogDir: "internal/i18n/locale",
SourceRoot: "internal",
Rules: catalogtool.Rules{
Calls: []string{"i18n.T", "i18n.Format"},
Plural: []string{"i18n.N"},
},
// Cthulhu shows quick settings and core internal UI forms through the
// translator. Its emoji picker uses literal labels and its profile editor
// is rendered by GTK, so those IDs are not included.
Shared: catalogtool.Shared{QuickSettings: true, InternalUI: true},
}
func main() {
mode := ""
if len(os.Args) > 1 {
mode = os.Args[1]
}
if err := catalogtool.Run(config, mode, os.Stdout); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}