Fix translation doc
This commit is contained in:
parent
b849adf9d8
commit
954dcefab3
|
@ -14,13 +14,13 @@ Then, if you think there are enough translated strings, please [create an issue]
|
||||||
* Create your password (keep the `Current password` field empty) and setup your account
|
* Create your password (keep the `Current password` field empty) and setup your account
|
||||||
* Go to the PeerTube page https://weblate.framasoft.org/projects/peertube/
|
* Go to the PeerTube page https://weblate.framasoft.org/projects/peertube/
|
||||||
* Choose the file and the locale you want to translate
|
* Choose the file and the locale you want to translate
|
||||||
|
|
||||||
|
|
||||||
## Files
|
## Files
|
||||||
|
|
||||||
There are 4 files:
|
There are 4 files:
|
||||||
* **angular**: contains client strings
|
* **angular**: contains client strings
|
||||||
* **player**: contains player strings.
|
* **player**: contains player strings.
|
||||||
Most of the strings come from VideoJS, so you can help yourself by using [video.js JSON files](https://github.com/videojs/video.js/tree/master/lang)
|
Most of the strings come from VideoJS, so you can help yourself by using [video.js JSON files](https://github.com/videojs/video.js/tree/master/lang)
|
||||||
* **server**: contains server strings (privacies, licences...) and iso639 (languages) strings used by PeerTube to describe the audio language of a particular video.
|
* **server**: contains server strings (privacies, licences...) and iso639 (languages) strings used by PeerTube to describe the audio language of a particular video.
|
||||||
It's the reason why these strings should be translated too. There are many strings so do not hesitate to translate only main audio languages.
|
It's the reason why these strings should be translated too. There are many strings so do not hesitate to translate only main audio languages.
|
||||||
|
@ -32,11 +32,15 @@ There are 4 files:
|
||||||
|
|
||||||
You must not translate special tags like `<x id="INTERPOLATION" ... />`.
|
You must not translate special tags like `<x id="INTERPOLATION" ... />`.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> views```
|
```
|
||||||
|
<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> views
|
||||||
|
```
|
||||||
|
|
||||||
should be in french
|
should be in french
|
||||||
```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> vues```
|
```
|
||||||
|
<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> vues
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Singular/plural
|
### Singular/plural
|
||||||
|
@ -45,8 +49,12 @@ For singular/plural translations, you must translate values inside `{` and `}`.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```{VAR_PLURAL, plural, =0 {No videos} =1 {1 video} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> videos} }```
|
```
|
||||||
|
{VAR_PLURAL, plural, =0 {No videos} =1 {1 video} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> videos} }
|
||||||
|
```
|
||||||
|
|
||||||
should be in french
|
should be in french
|
||||||
|
|
||||||
```{VAR_PLURAL, plural, =0 {Aucune vidéo} =1 {1 vidéo} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> vidéos} }```
|
```
|
||||||
|
{VAR_PLURAL, plural, =0 {Aucune vidéo} =1 {1 vidéo} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> vidéos} }
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue