Add french

pull/619/head
Chocobozzz 2018-06-04 18:12:48 +02:00
parent b1d40cff89
commit 510fefb194
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
6 changed files with 2273 additions and 44 deletions

View File

@ -168,7 +168,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
'Please type "I understand the {{ customizationsText }} I set" to confirm.',
{ customizationsText }
)
const expectedInputValue = this.i18n('I understand the {{ customizationsText }} I set', { customizationsText})
const expectedInputValue = this.i18n('I understand the {{ customizationsText }} I set', { customizationsText })
const confirmRes = await this.confirmService.confirmWithInput(message, label, expectedInputValue)
if (confirmRes === false) return

View File

@ -84,7 +84,7 @@ export class SignupComponent extends FormReactive implements OnInit {
() => {
this.notificationsService.success(
this.i18n('Success'),
this.i18n('Registration for {{ username }} complete.', { username: userCreate.username})
this.i18n('Registration for {{ username }} complete.', { username: userCreate.username })
)
this.redirectService.redirectToHomepage()
},

View File

@ -908,7 +908,7 @@ Check this checkbox, save the configuration and test with a video URL of your in
<context context-type="linenumber">20</context>
</context-group>
</trans-unit><trans-unit id="ff3173170e5b03536dd3b3e1afbae1f55356eb1b" datatype="html">
<source>Created &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;<x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/></source>
<source>Created &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;&lt;x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/&gt;</source>
<context-group purpose="location">
<context context-type="sourcefile">app/+admin/follows/followers-list/followers-list.component.ts</context>
<context context-type="linenumber">12</context>
@ -1031,7 +1031,7 @@ Check this checkbox, save the configuration and test with a video URL of your in
</context-group>
</trans-unit><trans-unit id="42e3c0e89177ca135974221eaf0e4e836c32e345" datatype="html">
<source>
Transcoding is enabled on server. The video quota only take in account &lt;x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/&gt;original<x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/strong&gt;"/> video. <x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br/&gt;"/>
Transcoding is enabled on server. The video quota only take in account &lt;x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/&gt;original&lt;x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/strong&gt;"/&gt; video. &lt;x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br/&gt;"/&gt;
At most, this user could use ~ &lt;x id="INTERPOLATION" equiv-text="{{ computeQuotaWithTranscoding() | bytes: 0 }}"/&gt;.
</source>
<context-group purpose="location">
@ -1049,7 +1049,7 @@ Check this checkbox, save the configuration and test with a video URL of your in
<context context-type="linenumber">2</context>
</context-group>
</trans-unit><trans-unit id="08ea8692dc2a7050026df26fc39b22960bde9de5" datatype="html">
<source>Username &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;<x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/></source>
<source>Username &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;&lt;x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/&gt;</source>
<context-group purpose="location">
<context context-type="sourcefile">app/+admin/users/user-list/user-list.component.ts</context>
<context context-type="linenumber">16</context>
@ -1097,13 +1097,13 @@ Check this checkbox, save the configuration and test with a video URL of your in
<context context-type="linenumber">2</context>
</context-group>
</trans-unit><trans-unit id="7c02d113e9b7884037834cddecf2a32a5538b35b" datatype="html">
<source>Name &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;<x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/></source>
<source>Name &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;&lt;x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/&gt;</source>
<context-group purpose="location">
<context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
<context context-type="linenumber">11</context>
</context-group>
</trans-unit><trans-unit id="cd5ca5da9e2fa21571e9f86a24a5c3b45a3ddc51" datatype="html">
<source>Views &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;<x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/></source>
<source>Views &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;&lt;x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/&gt;</source>
<context-group purpose="location">
<context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
<context context-type="linenumber">13</context>
@ -1188,7 +1188,7 @@ Check this checkbox, save the configuration and test with a video URL of your in
</context-group>
</trans-unit><trans-unit id="a475a4862efc4e473d6201f09b258e05d651c1df" datatype="html">
<source>
&lt;x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span&gt;"/&gt;<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>
&lt;x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span&gt;"/&gt;&lt;x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/&gt;
Delete
</source>
<context-group purpose="location">
@ -2168,7 +2168,7 @@ When you will upload a video in this channel, the video support field will be au
</context-group>
</trans-unit>
<trans-unit id="a6718d6aaf5bcd1692eed48daa61d2bed62c1f50" datatype="html">
<source>If you confirm, you will send a follow request to:<x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br/&gt;"/> - </source>
<source>If you confirm, you will send a follow request to:&lt;x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br/&gt;"/&gt; - </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/+admin/follows/following-add/following-add.component.ts</context>
<context context-type="linenumber">1</context>

File diff suppressed because it is too large Load Diff

View File

@ -8,4 +8,5 @@ npm run ngx-extractor -- --locale "en-US" -i 'src/**/*.ts' -f xlf -o src/locale/
# Zanata does not support inner elements in <source>, so we hack these special elements
# This regex translate the Angular elements to special entities (that we will reconvert on pull)
sed -i 's/<x id=\([^\/]\+\?\)\/>/\&lt;x id=\1\/\&gt;/g' src/locale/source/messages_en_US.xml
#sed -i 's/<x id=\(.\+\?\)\/>/\&lt;x id=\1\/\&gt;/g' src/locale/source/messages_en_US.xml
perl -pi -e 's|<x id=(.+?)/>|&lt;x id=\1/&gt;|g' src/locale/source/messages_en_US.xml

View File

@ -4,4 +4,8 @@ set -eu
# Zanata does not support inner elements in <source>, so we hack these special elements
# This regex translate the converted elements to initial Angular elements
sed -i 's/\&lt;x id=\([^\/]\+\?\)\/\&gt;/<x id=\1\/>/g' client/src/locale/target/*
#sed -i 's/\&lt;x id=\(.\+\?\)\/\&gt;/<x id=\1\/>/g' client/src/locale/target/*
for i in 1 2 3; do
perl -pi -e 's|&lt;x id=(.+?)/&gt;([^"])|<x id=\1/>\2|g' client/src/locale/target/*
done