[docs-only] Update translation docs

This commit is contained in:
Martin Mattel
2024-09-03 14:56:18 +02:00
parent ffa2b30cb7
commit 5e2c1374ce
5 changed files with 7 additions and 0 deletions
@@ -39,10 +39,12 @@ Translations have a `context` and a `translatable string`. The context is shown
[o:owncloud-org:p:owncloud:r:ocis-<service-name>]
file_filter = locale/<lang>/LC_MESSAGES/<service-name>.po
minimum_perc = 75
resource_name = ocis-<service-name>
source_file = <service-name>.pot
source_lang = en
type = PO
```
Note: o: organsiation, p: project, r: resource
* Create a go file like `templates.go` in `ocis/services/<service-name>/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/<service-name>
```