From 5e2c1374cee7310016754eec5be7571d1636bc00 Mon Sep 17 00:00:00 2001 From: Martin Mattel Date: Tue, 3 Sep 2024 14:56:18 +0200 Subject: [PATCH] [docs-only] Update translation docs --- docs/services/general-info/add-translations.md | 3 +++ services/activitylog/pkg/service/l10n/.tx/config | 1 + services/graph/pkg/l10n/.tx/config | 1 + services/notifications/pkg/email/l10n/.tx/config | 1 + services/userlog/pkg/service/l10n/.tx/config | 1 + 5 files changed, 7 insertions(+) diff --git a/docs/services/general-info/add-translations.md b/docs/services/general-info/add-translations.md index f1367db202..8b96d8ca52 100644 --- a/docs/services/general-info/add-translations.md +++ b/docs/services/general-info/add-translations.md @@ -39,10 +39,12 @@ Translations have a `context` and a `translatable string`. The context is shown [o:owncloud-org:p:owncloud:r:ocis-] file_filter = locale//LC_MESSAGES/.po minimum_perc = 75 + resource_name = ocis- source_file = .pot source_lang = en type = PO ``` + Note: o: organsiation, p: project, r: resource * Create a go file like `templates.go` in `ocis/services//pkg/service` that will define your translation sources like the following: ``` @@ -57,6 +59,7 @@ Translations have a `context` and a `translatable string`. The context is shown services/notifications \ services/userlog \ services/graph \ + services/activitylog \ services/ ``` diff --git a/services/activitylog/pkg/service/l10n/.tx/config b/services/activitylog/pkg/service/l10n/.tx/config index 12cf80e752..2868c44426 100644 --- a/services/activitylog/pkg/service/l10n/.tx/config +++ b/services/activitylog/pkg/service/l10n/.tx/config @@ -4,6 +4,7 @@ host = https://www.transifex.com [o:owncloud-org:p:owncloud:r:ocis-activitylog] file_filter = locale//LC_MESSAGES/activitylog.po minimum_perc = 75 +resource_name = ocis-activitylog source_file = activitylog.pot source_lang = en type = PO diff --git a/services/graph/pkg/l10n/.tx/config b/services/graph/pkg/l10n/.tx/config index c25695aa8a..098f7bf9a8 100644 --- a/services/graph/pkg/l10n/.tx/config +++ b/services/graph/pkg/l10n/.tx/config @@ -4,6 +4,7 @@ host = https://www.transifex.com [o:owncloud-org:p:owncloud:r:ocis-graph] file_filter = locale//LC_MESSAGES/graph.po minimum_perc = 75 +resource_name = ocis-graph source_file = graph.pot source_lang = en type = PO diff --git a/services/notifications/pkg/email/l10n/.tx/config b/services/notifications/pkg/email/l10n/.tx/config index b56891b8bb..3587da0cf3 100755 --- a/services/notifications/pkg/email/l10n/.tx/config +++ b/services/notifications/pkg/email/l10n/.tx/config @@ -4,6 +4,7 @@ host = https://www.transifex.com [o:owncloud-org:p:owncloud:r:ocis-notifications] file_filter = locale//LC_MESSAGES/notifications.po minimum_perc = 75 +resource_name = ocis-notifications source_file = notifications.pot source_lang = en type = PO diff --git a/services/userlog/pkg/service/l10n/.tx/config b/services/userlog/pkg/service/l10n/.tx/config index f6b22d9107..4e71728507 100755 --- a/services/userlog/pkg/service/l10n/.tx/config +++ b/services/userlog/pkg/service/l10n/.tx/config @@ -4,6 +4,7 @@ host = https://www.transifex.com [o:owncloud-org:p:owncloud:r:ocis-userlog] file_filter = locale//LC_MESSAGES/userlog.po minimum_perc = 75 +resource_name = ocis-userlog source_file = userlog.pot source_lang = en type = PO