From 942abb044dff6be12e54f9af3bb993cf87019fe5 Mon Sep 17 00:00:00 2001 From: jkoberg Date: Thu, 9 Mar 2023 15:33:59 +0100 Subject: [PATCH] remove l10n from gitignore Signed-off-by: jkoberg --- .gitignore | 1 - services/userlog/Makefile | 8 +- .../pkg/service/l10n/locale/default.pot | 82 +++++++++++++++++++ 3 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 services/userlog/pkg/service/l10n/locale/default.pot diff --git a/.gitignore b/.gitignore index 68c73746e07..6a402cb68ff 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,6 @@ vendor-php # drone CI is in .drone.star, do not let someone accidentally commit a local .drone.yml .drone.yml -**/l10n/locale **/l10n/template.pot # protogen autogenerated diff --git a/services/userlog/Makefile b/services/userlog/Makefile index ee92367c812..ea50ca0ee5e 100644 --- a/services/userlog/Makefile +++ b/services/userlog/Makefile @@ -1,6 +1,9 @@ SHELL := bash NAME := userlog +# Where to write the files generated by this makefile. +OUTPUT_DIR = ./pkg/service/l10n + include ../../.make/recursion.mk ############ tooling ############ @@ -41,7 +44,10 @@ l10n-push: .PHONY: l10n-read l10n-read: - go-xgettext -o $(OUTPUT_DIR)/locale/en/LC_MESSAGES/default.pot --keyword=Template -s pkg/service/templates.go + go-xgettext -o $(OUTPUT_DIR)/locale/default.pot --keyword=Template -s pkg/service/templates.go + +.PHONY: l10n-write +l10n-write: ############ licenses ############ .PHONY: ci-node-check-licenses diff --git a/services/userlog/pkg/service/l10n/locale/default.pot b/services/userlog/pkg/service/l10n/locale/default.pot new file mode 100644 index 00000000000..196807f5afb --- /dev/null +++ b/services/userlog/pkg/service/l10n/locale/default.pot @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "Project-Id-Version: \n" + "Report-Msgid-Bugs-To: EMAIL\n" + "POT-Creation-Date: 2023-03-09 15:58+0100\n" + "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" + "Last-Translator: FULL NAME \n" + "Language-Team: LANGUAGE \n" + "Language: \n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=CHARSET\n" + "Content-Transfer-Encoding: 8bit\n" + +#: pkg/service/templates.go:30 +msgid "Access to Space {space} lost" +msgstr "" + +#: pkg/service/templates.go:45 +msgid "Access to {resource} expired" +msgstr "" + +#: pkg/service/templates.go:29 +msgid "Membership expired" +msgstr "" + +#: pkg/service/templates.go:14 +msgid "Removed from Space" +msgstr "" + +#: pkg/service/templates.go:34 +msgid "Resource shared" +msgstr "" + +#: pkg/service/templates.go:39 +msgid "Resource unshared" +msgstr "" + +#: pkg/service/templates.go:44 +msgid "Share expired" +msgstr "" + +#: pkg/service/templates.go:24 +msgid "Space deleted" +msgstr "" + +#: pkg/service/templates.go:19 +msgid "Space disabled" +msgstr "" + +#: pkg/service/templates.go:9 +msgid "Space shared" +msgstr "" + +#: pkg/service/templates.go:10 +msgid "{user} added you to Space {space}" +msgstr "" + +#: pkg/service/templates.go:25 +msgid "{user} deleted Space {space}" +msgstr "" + +#: pkg/service/templates.go:20 +msgid "{user} disabled Space {space}" +msgstr "" + +#: pkg/service/templates.go:15 +msgid "{user} removed you from Space {space}" +msgstr "" + +#: pkg/service/templates.go:35 +msgid "{user} shared {resource} with you" +msgstr "" + +#: pkg/service/templates.go:40 +msgid "{user} unshared {resource} with you" +msgstr "" +