[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

View File

@@ -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>
```

View File

@@ -4,6 +4,7 @@ host = https://www.transifex.com
[o:owncloud-org:p:owncloud:r:ocis-activitylog]
file_filter = locale/<lang>/LC_MESSAGES/activitylog.po
minimum_perc = 75
resource_name = ocis-activitylog
source_file = activitylog.pot
source_lang = en
type = PO

View File

@@ -4,6 +4,7 @@ host = https://www.transifex.com
[o:owncloud-org:p:owncloud:r:ocis-graph]
file_filter = locale/<lang>/LC_MESSAGES/graph.po
minimum_perc = 75
resource_name = ocis-graph
source_file = graph.pot
source_lang = en
type = PO

View File

@@ -4,6 +4,7 @@ host = https://www.transifex.com
[o:owncloud-org:p:owncloud:r:ocis-notifications]
file_filter = locale/<lang>/LC_MESSAGES/notifications.po
minimum_perc = 75
resource_name = ocis-notifications
source_file = notifications.pot
source_lang = en
type = PO

View File

@@ -4,6 +4,7 @@ host = https://www.transifex.com
[o:owncloud-org:p:owncloud:r:ocis-userlog]
file_filter = locale/<lang>/LC_MESSAGES/userlog.po
minimum_perc = 75
resource_name = ocis-userlog
source_file = userlog.pot
source_lang = en
type = PO