Skip to content
Snippets Groups Projects
Verified Commit f433f121 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: commit save point

parent 4ffe3d36
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,21 @@ include $(MAKEFILE_IMPORT_PATH)terminal-check.mk ...@@ -62,7 +62,21 @@ include $(MAKEFILE_IMPORT_PATH)terminal-check.mk
############################################################################################# #############################################################################################
############################################################################################# #############################################################################################
%.md5: %
@md5sum $< | cmp -s $@ -; if test $$? -ne 0; then md5sum $< > $@; fi
LOCALEFILES := $(shell find $(SOURCE_PATH)translations/locales/ -name '*.json')
CATALOGFILES := $(SOURCE_PATH)translations/locales/catalog.go
$(CATALOGFILES): $(LOCALEFILES)
echo $(LOCALEFILES)
$(QUITE) $(ECHO) "Generating catalog files..."
$(QUITE) $(GO) generate $(SOURCE_PATH)translations/translations.go
.PHONY: build-locales
# Generate the catalog files
build-locales: $(CATALOGFILES)
$(QUITE) $(ECHO) "Building locales..."
...@@ -39,40 +39,39 @@ func init() { ...@@ -39,40 +39,39 @@ func init() {
} }
var messageKeyToIndex = map[string]int{ var messageKeyToIndex = map[string]int{
"Error": 0, "Adds a new document": 24,
"Error": 0,
"Functions for creating and editing documents": 22,
"Info": 2, "Info": 2,
"No active command found": 19, "No active command found": 18,
"Not permitted": 3, "Not permitted": 3,
"This program can be used to create documentation for your project.": 20, "Prints the version and build information": 27,
"This program can be used to create documentation for your project. It can be used to create a new documentation project, add new documentation to an existing project, or to generate documentation from a source code project.": 21, "This program can be used to create documentation for your project.": 19,
"Unknown Error: %s": 18, "This program can be used to create documentation for your project.\nIt can be used to create a new documentation project,\nadd new documentation to an existing project, or to generate\ndocumentation from a source code project.": 20,
"Warn": 1, "Unknown Error: %s": 17,
"build: %s\n": 30, "Warn": 1,
"duplicated flag": 12, "base directory in which the documents are saved": 23,
"expected argument": 5, "build: %s\n": 29,
"duplicated flag": 11,
"expected argument": 5,
"file names of the new documents, separated by spaces": 25,
"flag error unknown": 4, "flag error unknown": 4,
"handler %s not found": 22, "handler %s not found": 21,
"invalid choice": 15, "invalid choice": 14,
"invalid tag": 16, "invalid tag": 15,
"long document": 24,
"long document add": 26,
"long version": 28,
"marshal": 8, "marshal": 8,
"no argument for bool": 9, "no argument for bool": 9,
"required": 10, "no document name given": 26,
"short document": 23, "short name too long": 10,
"short document add": 25, "tag %s": 12,
"short name too long": 11, "unknown command": 13,
"short version": 27,
"tag": 13,
"unknown command": 14,
"unknown flag": 6, "unknown flag": 6,
"unknown group": 7, "unknown group": 7,
"unrecognized error type": 17, "unrecognized error type": 16,
"version: %s\n": 29, "version: %s\n": 28,
} }
var deIndex = []uint32{ // 32 elements var deIndex = []uint32{ // 31 elements
0x00000000, 0x00000007, 0x0000000f, 0x00000014, 0x00000000, 0x00000007, 0x0000000f, 0x00000014,
0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014,
0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014,
...@@ -80,34 +79,37 @@ var deIndex = []uint32{ // 32 elements ...@@ -80,34 +79,37 @@ var deIndex = []uint32{ // 32 elements
0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014,
0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014,
0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014,
0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014, 0x00000014,
} // Size: 152 bytes } // Size: 148 bytes
const deData string = "\x02Fehler\x02Warnung\x02Info" const deData string = "\x02Fehler\x02Warnung\x02Info"
var enIndex = []uint32{ // 32 elements var enIndex = []uint32{ // 31 elements
0x00000000, 0x00000006, 0x0000000b, 0x00000010, 0x00000000, 0x00000006, 0x0000000b, 0x00000010,
0x0000001e, 0x00000031, 0x00000043, 0x00000050, 0x0000001e, 0x00000031, 0x00000043, 0x00000050,
0x0000005e, 0x00000066, 0x0000007b, 0x00000084, 0x0000005e, 0x00000066, 0x0000007b, 0x0000008f,
0x00000098, 0x000000a8, 0x000000ac, 0x000000bc, 0x0000009f, 0x000000a9, 0x000000b9, 0x000000c8,
0x000000cb, 0x000000d7, 0x000000ef, 0x00000104, 0x000000d4, 0x000000ec, 0x00000101, 0x00000119,
0x0000011c, 0x0000015f, 0x0000023f, 0x00000257, 0x0000015c, 0x0000023c, 0x00000254, 0x00000281,
0x00000266, 0x00000274, 0x00000287, 0x00000299, 0x000002b1, 0x000002de, 0x00000313, 0x0000032a,
0x000002a7, 0x000002b4, 0x000002c8, 0x000002da, 0x00000357, 0x0000036b, 0x0000037d,
} // Size: 152 bytes } // Size: 148 bytes
const enData string = "" + // Size: 730 bytes const enData string = "" + // Size: 893 bytes
"\x02Error\x02Warn\x02Info\x02Not permitted\x02flag error unknown\x02expe" + "\x02Error\x02Warn\x02Info\x02Not permitted\x02flag error unknown\x02expe" +
"cted argument\x02unknown flag\x02unknown group\x02marshal\x02no argument" + "cted argument\x02unknown flag\x02unknown group\x02marshal\x02no argument" +
" for bool\x02required\x02short name too long\x02duplicated flag\x02tag" + " for bool\x02short name too long\x02duplicated flag\x02tag %[1]s\x02unkn" +
"\x02unknown command\x02invalid choice\x02invalid tag\x02unrecognized err" + "own command\x02invalid choice\x02invalid tag\x02unrecognized error type" +
"or type\x02Unknown Error: %[1]s\x02No active command found\x02This progr" + "\x02Unknown Error: %[1]s\x02No active command found\x02This program can " +
"am can be used to create documentation for your project.\x02This program" + "be used to create documentation for your project.\x02This program can be" +
" can be used to create documentation for your project. It can be used to" + " used to create documentation for your project.\x0aIt can be used to cre" +
" create a new documentation project, add new documentation to an existin" + "ate a new documentation project,\x0aadd new documentation to an existing" +
"g project, or to generate documentation from a source code project.\x02h" + " project, or to generate\x0adocumentation from a source code project." +
"andler %[1]s not found\x02short document\x02long document\x02short docum" + "\x02handler %[1]s not found\x02Functions for creating and editing docume" +
"ent add\x02long document add\x02short version\x02long version\x04\x00" + "nts\x02base directory in which the documents are saved\x02Functions for " +
"\x01\x0a\x0f\x02version: %[1]s\x04\x00\x01\x0a\x0d\x02build: %[1]s" "creating and editing documents\x02file names of the new documents, separ" +
"ated by spaces\x02no document name given\x02Functions for creating and e" +
"diting documents\x04\x00\x01\x0a\x0f\x02version: %[1]s\x04\x00\x01\x0a" +
"\x0d\x02build: %[1]s"
// Total table size 1054 bytes (1KiB); checksum: 2EA20D06 // Total table size 1209 bytes (1KiB); checksum: DC32E83D
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
"message": "no argument for bool", "message": "no argument for bool",
"translation": "" "translation": ""
}, },
{
"id": "required",
"message": "required",
"translation": ""
},
{ {
"id": "short name too long", "id": "short name too long",
"message": "short name too long", "message": "short name too long",
...@@ -52,9 +47,19 @@ ...@@ -52,9 +47,19 @@
"translation": "" "translation": ""
}, },
{ {
"id": "tag", "id": "tag {Error}",
"message": "tag", "message": "tag {Error}",
"translation": "" "translation": "",
"placeholders": [
{
"id": "Error",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "err.Error()"
}
]
}, },
{ {
"id": "unknown command", "id": "unknown command",
...@@ -116,8 +121,8 @@ ...@@ -116,8 +121,8 @@
"translation": "" "translation": ""
}, },
{ {
"id": "This program can be used to create documentation for your project. It can be used to create a new documentation project, add new documentation to an existing project, or to generate documentation from a source code project.", "id": "This program can be used to create documentation for your project.\nIt can be used to create a new documentation project,\nadd new documentation to an existing project, or to generate\ndocumentation from a source code project.",
"message": "This program can be used to create documentation for your project. It can be used to create a new documentation project, add new documentation to an existing project, or to generate documentation from a source code project.", "message": "This program can be used to create documentation for your project.\nIt can be used to create a new documentation project,\nadd new documentation to an existing project, or to generate\ndocumentation from a source code project.",
"translation": "" "translation": ""
}, },
{ {
...@@ -135,33 +140,26 @@ ...@@ -135,33 +140,26 @@
] ]
}, },
{ {
"id": "short document", "id": [
"message": "short document", "text",
"translation": "" "Functions for creating and editing documents"
}, ],
{ "message": "Functions for creating and editing documents",
"id": "long document",
"message": "long document",
"translation": ""
},
{
"id": "short document add",
"message": "short document add",
"translation": "" "translation": ""
}, },
{ {
"id": "long document add", "id": "base directory in which the documents are saved",
"message": "long document add", "message": "base directory in which the documents are saved",
"translation": "" "translation": ""
}, },
{ {
"id": "short version", "id": "file names of the new documents, separated by spaces",
"message": "short version", "message": "file names of the new documents, separated by spaces",
"translation": "" "translation": ""
}, },
{ {
"id": "long version", "id": "no document name given",
"message": "long version", "message": "no document name given",
"translation": "" "translation": ""
}, },
{ {
......
...@@ -50,13 +50,6 @@ ...@@ -50,13 +50,6 @@
"translatorComment": "Copied from source.", "translatorComment": "Copied from source.",
"fuzzy": true "fuzzy": true
}, },
{
"id": "required",
"message": "required",
"translation": "required",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{ {
"id": "short name too long", "id": "short name too long",
"message": "short name too long", "message": "short name too long",
...@@ -72,10 +65,20 @@ ...@@ -72,10 +65,20 @@
"fuzzy": true "fuzzy": true
}, },
{ {
"id": "tag", "id": "tag {Error}",
"message": "tag", "message": "tag {Error}",
"translation": "tag", "translation": "tag {Error}",
"translatorComment": "Copied from source.", "translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Error",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "err.Error()"
}
],
"fuzzy": true "fuzzy": true
}, },
{ {
...@@ -158,9 +161,9 @@ ...@@ -158,9 +161,9 @@
"fuzzy": true "fuzzy": true
}, },
{ {
"id": "This program can be used to create documentation for your project. It can be used to create a new documentation project, add new documentation to an existing project, or to generate documentation from a source code project.", "id": "This program can be used to create documentation for your project.\nIt can be used to create a new documentation project,\nadd new documentation to an existing project, or to generate\ndocumentation from a source code project.",
"message": "This program can be used to create documentation for your project. It can be used to create a new documentation project, add new documentation to an existing project, or to generate documentation from a source code project.", "message": "This program can be used to create documentation for your project.\nIt can be used to create a new documentation project,\nadd new documentation to an existing project, or to generate\ndocumentation from a source code project.",
"translation": "This program can be used to create documentation for your project. It can be used to create a new documentation project, add new documentation to an existing project, or to generate documentation from a source code project.", "translation": "This program can be used to create documentation for your project.\nIt can be used to create a new documentation project,\nadd new documentation to an existing project, or to generate\ndocumentation from a source code project.",
"translatorComment": "Copied from source.", "translatorComment": "Copied from source.",
"fuzzy": true "fuzzy": true
}, },
...@@ -181,44 +184,33 @@ ...@@ -181,44 +184,33 @@
"fuzzy": true "fuzzy": true
}, },
{ {
"id": "short document", "id": [
"message": "short document", "text",
"translation": "short document", "Functions for creating and editing documents"
"translatorComment": "Copied from source.", ],
"fuzzy": true "message": "Functions for creating and editing documents",
}, "translation": "Functions for creating and editing documents",
{
"id": "long document",
"message": "long document",
"translation": "long document",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "short document add",
"message": "short document add",
"translation": "short document add",
"translatorComment": "Copied from source.", "translatorComment": "Copied from source.",
"fuzzy": true "fuzzy": true
}, },
{ {
"id": "long document add", "id": "base directory in which the documents are saved",
"message": "long document add", "message": "base directory in which the documents are saved",
"translation": "long document add", "translation": "base directory in which the documents are saved",
"translatorComment": "Copied from source.", "translatorComment": "Copied from source.",
"fuzzy": true "fuzzy": true
}, },
{ {
"id": "short version", "id": "file names of the new documents, separated by spaces",
"message": "short version", "message": "file names of the new documents, separated by spaces",
"translation": "short version", "translation": "file names of the new documents, separated by spaces",
"translatorComment": "Copied from source.", "translatorComment": "Copied from source.",
"fuzzy": true "fuzzy": true
}, },
{ {
"id": "long version", "id": "no document name given",
"message": "long version", "message": "no document name given",
"translation": "long version", "translation": "no document name given",
"translatorComment": "Copied from source.", "translatorComment": "Copied from source.",
"fuzzy": true "fuzzy": true
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment