Merge pull request #9975 from owncloud/translation_desc_update

[docs-only] Update translation docs + transifex configuration (add resource_name)
This commit is contained in:
Martin
2024-09-04 13:32:59 +02:00
committed by GitHub
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: organization, 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>
```
@@ -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
+1
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
@@ -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
@@ -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