mirror of https://github.com/Chocobozzz/PeerTube
Fix translation doc
parent
b849adf9d8
commit
954dcefab3
|
@ -33,10 +33,14 @@ There are 4 files:
|
|||
You must not translate special tags like `<x id="INTERPOLATION" ... />`.
|
||||
|
||||
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
|
||||
```<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
|
||||
|
@ -45,8 +49,12 @@ For singular/plural translations, you must translate values inside `{` and `}`.
|
|||
|
||||
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
|
||||
|
||||
```{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