Skip to content

Commit 21b88ec

Browse files
committed
Merge branch 'develop' of github.com:vector-im/riot-web into t3chguy/piwik
2 parents 195fcba + 4a3480b commit 21b88ec

File tree

17 files changed

+158
-59
lines changed

17 files changed

+158
-59
lines changed

docs/translating.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,37 @@
66
- Be able to understand English
77
- Be able to understand the language you want to translate riot-web into
88

9+
## Step 0: Join #riotweb-translations:matrix.org
10+
11+
1. Come and join https://riot.im/develop/#/room/#riotweb-translations:matrix.org
12+
2. Read scrollback and/or ask if anyone else is working on your language, and co-ordinate if needed. In general little-or-no coordination is needed though :)
13+
914
## Step 1: Preparing your Weblate Profile
1015

1116
1. Head to https://translate.nordgedanken.de and register either via Github or email
12-
2. After register check if you got a email to verify your account and click the link (if there is none head to step 1.4)
17+
2. After registering check if you got an email to verify your account and click the link (if there is none head to step 1.4)
1318
3. Log into weblate
1419
4. Head to https://translate.nordgedanken.de/accounts/profile/ and select the languages you know and maybe another language you know too.
1520
6. Head to https://translate.nordgedanken.de/accounts/profile/#subscriptions and select Riot Web as Project
1621

1722
## How to check if your language already is being translated
1823

19-
Go to https://translate.nordgedanken.de/projects/riot-web/ and in all 3 sub projects if your language is listed.
20-
If it is listed go to Step 2a if not go to Step 2b
24+
Go to https://translate.nordgedanken.de/projects/riot-web/ and visit the 2 sub-projects.
25+
If your language is listed go to Step 2a and if not go to Step 2b
2126

2227
## Step 2a: Helping on existing languages.
2328

2429
1. Head to one of the projects listed https://translate.nordgedanken.de/projects/riot-web/
2530
2. Click on the ``translate`` button on the right side of your language
26-
3. Fill in the translations in the writeable field. You will see the original English string and the String of your second language above.
31+
3. Fill in the translations in the writeable field. You will see the original English string and the string of your second language above.
2732

2833
Head to the explanations under Steb 2b
2934

3035
## Step 2b: Adding a new language
3136

3237
1. Go to one of the projects listed https://translate.nordgedanken.de/projects/riot-web/
3338
2. Click the ``Start new language`` button at the bottom
34-
3. Select our language
39+
3. Select a language
3540
4. Start translating like in 2a.3
3641
5. Repeat these steps for the other projects which are listed at the link of step 2b.1
3742

@@ -41,16 +46,19 @@ The green button let you save our translations directly. Please only use it if y
4146

4247
### What means the yellow button under the text field?
4348

44-
The yellow button has to be used if you are unsure about the translation but you have a rough idea. It ads a new suggestion to the string which can than be reviewed by others.
49+
The yellow button has to be used if you are unsure about the translation but you have a rough idea. It adds a new suggestion to the string which can than be reviewed by others.
4550

4651
### What are "%(something)s"?
4752

48-
These things are variables that are filled inside the code. They can be room names, usernames or similiar. If you find one use it for changing the word order but do not delete it as thing are missing if you do so.
53+
These things are variables that are expanded when displayed by Riot. They can be room names, usernames or similar. If you find one, you can move to the right place for your language, but not delete it as the variable will be missing if you do.
54+
55+
A special case is `%(urlStart)s` and `%(urlEnd)s` which are used to mark the beginning of a hyperlink (i.e. `<a href="/somewhere">` and `</a>`. You must keep these markers surrounding the equivalent string in your language that needs to be hyperlinked.
4956

5057
### "I want to come back to this string. How?"
5158

5259
You can use inside the translation field "Review needed" checkbox. It will be shown as Strings that need to be reviewed.
5360

61+
5462
### Further reading
5563

56-
The official Doc provides some more in-deepth explanation on how to do translations and talks about do and don't's. You can find it at: https://docs.weblate.org/en/latest/user/translating.html
64+
The official Weblate doc provides some more in-deepth explanation on how to do translations and talks about do and don'ts. You can find it at: https://docs.weblate.org/en/latest/user/translating.html

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
"gfm.css": "^1.1.1",
6666
"highlight.js": "^9.0.0",
6767
"linkifyjs": "^2.1.3",
68-
"matrix-js-sdk": "0.7.8",
69-
"matrix-react-sdk": "0.8.9",
68+
"matrix-js-sdk": "matrix-org/matrix-js-sdk#develop",
69+
"matrix-react-sdk": "matrix-org/matrix-react-sdk#develop",
7070
"modernizr": "^3.1.0",
7171
"pako": "^1.0.5",
7272
"q": "^1.4.1",
@@ -104,6 +104,7 @@
104104
"emojione": "^2.2.7",
105105
"eslint": "^3.14.0",
106106
"eslint-config-google": "^0.7.1",
107+
"eslint-plugin-babel": "^4.1.1",
107108
"eslint-plugin-flowtype": "^2.30.0",
108109
"eslint-plugin-react": "^6.9.0",
109110
"expect": "^1.16.0",

scripts/fetch-develop.deps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ dodep matrix-org matrix-react-sdk
4040
mkdir -p node_modules
4141
cd node_modules
4242

43+
rm -r matrix-js-sdk 2> /dev/null
4344
ln -s ../matrix-js-sdk ./
4445
pushd matrix-js-sdk
4546
npm install
4647
popd
4748

49+
rm -r matrix-react-sdk 2> /dev/null
4850
ln -s ../matrix-react-sdk ./
4951
pushd matrix-react-sdk
5052
mkdir -p node_modules

scripts/jenkins.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ npm run lintall -- -f checkstyle -o eslint.xml || true
3434

3535
rm dist/riot-*.tar.gz || true # rm previous artifacts without failing if it doesn't exist
3636

37-
# node_modules deps from 'npm install' don't have a .git dir so can't
38-
# rev-parse; but they do set the commit in package.json under 'gitHead' which
39-
# we're grabbing here.
40-
REACT_SHA=$(grep 'gitHead' node_modules/matrix-react-sdk/package.json | cut -d \" -f 4 | head -c 12)
41-
JSSDK_SHA=$(grep 'gitHead' node_modules/matrix-js-sdk/package.json | cut -d \" -f 4 | head -c 12)
37+
# Since the deps are fetched from git, we can rev-parse
38+
REACT_SHA=$(cd node_modules/matrix-react-sdk; git rev-parse --short=12 HEAD)
39+
JSSDK_SHA=$(cd node_modules/matrix-js-sdk; git rev-parse --short=12 HEAD)
4240

4341
VECTOR_SHA=$(git rev-parse --short=12 HEAD) # use the ACTUAL SHA rather than assume develop
4442

src/components/views/settings/Notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ module.exports = React.createClass({
714714
{masterPushRuleDiv}
715715

716716
<div className="mx_UserSettings_notifTable">
717-
{ _t('All notifications are currently disabled for all targets') }.
717+
{ _t('All notifications are currently disabled for all targets.') }.
718718
</div>
719719
</div>
720720
);

src/i18n/strings/be.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"Directory": "Каталог",
1717
"Dismiss": "Aдхіліць",
1818
"Download this file": "Спампаваць гэты файл",
19-
"Drop here to %(verb)s": "Перацягнуць сюды %(verb)s",
19+
"Drop here %(toAction)s": "Перацягнуць сюды %(toAction)s",
2020
"Enable audible notifications in web client": "Ўключыць гукавыя апавяшчэнні ў вэб-кліенце",
2121
"Enable desktop notifications": "Ўключыць апавяшчэнні на працоўным стале",
2222
"Enable email notifications": "Ўключыць паведамлення па электроннай пошце",
@@ -34,7 +34,7 @@
3434
"Failed to get protocol list from Home Server": "Не ўдалося атрымаць спіс пратаколаў ад хатняга сервера",
3535
"Failed to get public room list": "Не ўдалося атрымаць спіс агульных пакояў",
3636
"Failed to join the room": "Не ўдалося далучыцца да пакоя",
37-
"Failed to remove tag %(prevTag)s from room": "Не ўдалося выдаліць %(prevTag)s з пакоя",
37+
"Failed to remove tag %(tagName)s from room": "Не ўдалося выдаліць %(tagName)s з пакоя",
3838
"Failed to set direct chat tag": "Не ўдалося ўсталяваць тэг прамога чата",
3939
"Failed to set Direct Message status of room": "Не ўдалося ўсталяваць статут прамога паведамлення пакою",
4040
"Favourite": "Улюбёнае",

src/i18n/strings/de_DE.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"On": "An",
8282
"You might have configured them in a client other than Riot. You cannot tune them in Riot but they still apply": "Du hast sie eventuell auf einem anderen Client als Riot konfiguriert. Sie sind in Riot nicht anpassbar gelten aber trotzdem",
8383
" to room": " an Raum",
84-
"Drop here to %(verb)s": "%(verb)s hierher ziehen",
84+
"Drop here %(toAction)s": "%(toAction)s hierher ziehen",
8585
"All messages": "Alle Nachrichten",
8686
"All messages (loud)": "Alle Nachrichten (laut)",
8787
"Cancel Sending": "Senden abbrechen",
@@ -90,7 +90,7 @@
9090
"Download this file": "Datei Herunterladen",
9191
"Failed to add tag %(tagName)s to room": "Das Hinzufügen des Tags %(tagName)s für den Raum ist fehlgeschlagen",
9292
"Failed to forget room %(errCode)s": "Das Entfernen des Raums %(errCode)s aus deiner Liste ist fehlgeschlagen",
93-
"Failed to remove tag %(prevTag)s from room": "Das Entfernen des Tags %(prevTag)s für den Raum ist fehlgeschlagen",
93+
"Failed to remove tag %(tagName)s from room": "Das Entfernen des Tags %(tagName)s für den Raum ist fehlgeschlagen",
9494
"Failed to set direct chat tag": "Fehler beim setzen der Direct Chat Kennzeichnung",
9595
"Mentions only": "Nur, wenn du erwähnt wirst",
9696
"Mute": "Lautlos",
@@ -117,5 +117,16 @@
117117
"Sunday": "Sonntag",
118118
"Monday": "Montag",
119119
"Yesterday": "Gestern",
120-
"Welcome page": "Willkommensseite"
120+
"Welcome page": "Willkommensseite",
121+
"Advanced notification settings": "Erweiterte Benachrichtigungs-Einstellungen",
122+
"Call invitation": "Anruf-Einladung",
123+
"Enter keywords separated by a comma:": "Trage Schlagworte, mit Komma getrennt, ein",
124+
"Messages containing my display name": "Nachrichten, die meinen Anzeigenamen enthalten",
125+
"Messages containing my user name": "Nachrichten, die meinen Nutzernamen enthalten",
126+
"Messages in group chats": "Nachrichten in Chat-Gruppen",
127+
"Messages in one-to-one chats": "Nachrichten in Eins-zu-Eins-Chats",
128+
"Messages sent by bot": "Nachrichten von Bots",
129+
"more": "mehr",
130+
"When I'm invited to a room": "Wenn ich in einen Raum eingeladen werde",
131+
"customServer_text": "Du kannst die erweiterten Server-Optioen nutzen um dich an anderen Matrix-Servern mittels anderer Heimserver-URL anzumelden. <br/>Dies erlaubt dir Riot mit einem existierendem Konto auf einem anderen Heimserver zu nutzen.<br/><br/>Du kannst auch einen benutzerdefinierten Identitäts-Server setzen, aber du wirst dann nicht in der Lage sein, Nutzer per E-Mail-Adresse einzuladen oder selbst mit E-Mail-Adresse eingeladen zu werden."
121132
}

src/i18n/strings/en_EN.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"Directory": "Directory",
2020
"Dismiss": "Dismiss",
2121
"Download this file": "Download this file",
22-
"Drop here to %(verb)s": "Drop here to %(verb)s",
22+
"Drop here %(toAction)s": "Drop here %(toAction)s",
2323
"Enable audible notifications in web client": "Enable audible notifications in web client",
2424
"Enable desktop notifications": "Enable desktop notifications",
2525
"Enable email notifications": "Enable email notifications",
2626
"Enable notifications for this account": "Enable notifications for this account",
2727
"Enable them now": "Enable them now",
28-
"Enter keywords separated by a comma": "Enter keywords separated by a comma",
28+
"Enter keywords separated by a comma:": "Enter keywords separated by a comma:",
2929
"Error": "Error",
3030
"Error saving email notification preferences": "Error saving email notification preferences",
3131
"#example": "#example",
@@ -37,7 +37,7 @@
3737
"Failed to get protocol list from Home Server": "Failed to get protocol list from Home Server",
3838
"Failed to get public room list": "Failed to get public room list",
3939
"Failed to join the room": "Failed to join the room",
40-
"Failed to remove tag %(prevTag)s from room": "Failed to remove tag %(prevTag)s from room",
40+
"Failed to remove tag %(tagName)s from room": "Failed to remove tag %(tagName)s from room",
4141
"Failed to set direct chat tag": "Failed to set direct chat tag",
4242
"Failed to set Direct Message status of room": "Failed to set Direct Message status of room",
4343
"Favourite": "Favourite",

src/i18n/strings/fi.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"Sunday": "Sunnuntai"
3+
}

src/i18n/strings/fr.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"All messages": "Tous les messages",
44
"All messages (loud)": "Tous les messages (fort)",
55
"All notifications are currently disabled for all targets.": "Toutes les notifications sont désactivées pour tous les appareils.",
6-
"An error occurred whilst saving your email notification preferences": "Une erreur est survenue lors de la sauvegarde de vos préférences de notifications par e-mail",
6+
"An error occurred whilst saving your email notification preferences.": "Une erreur est survenue lors de la sauvegarde de vos préférences de notifications par e-mail",
77
"Cancel Sending": "Annuler l'envoi",
88
"Can't update user notification settings": "Impossible de mettre à jour les notifications utilisateur",
99
"Close": "Fermer",
@@ -16,13 +16,13 @@
1616
"Directory": "Répertoire",
1717
"Dismiss": "Rejeter",
1818
"Download this file": "Télécharger ce fichier",
19-
"Drop here to %(verb)s": "Déposer ici pour %(verb)s",
19+
"Drop here %(toAction)s": "Déposer ici pour %(toAction)s",
2020
"Enable audible notifications in web client": "Activer les notifications sonores pour le client web",
2121
"Enable desktop notifications": "Activer les notifications de bureau",
2222
"Enable email notifications": "Activer les notifications par e-mail",
2323
"Enable notifications for this account": "Activer les notifications pour ce compte",
2424
"Enable them now": "Les activer maintenant",
25-
"Enter keywords separated by a comma": "Entrez les mots clés séparés par une virgule",
25+
"Enter keywords separated by a comma:": "Entrez les mots clés séparés par une virgule",
2626
"Error": "Erreur",
2727
"Error saving email notification preferences": "Erreur lors de la sauvegarde des notifications par email",
2828
"#example": "#exemple",
@@ -34,7 +34,7 @@
3434
"Failed to get protocol list from Home Server": "Echec lors de la récupération depuis le serveur maison",
3535
"Failed to get public room list": "Echec lors de la récupération de la liste des salons publics",
3636
"Failed to join the room": "Échec de l'adhésion au salon",
37-
"Failed to remove tag %(prevTag)s from room": "Échec dans la suppression de l’étiquette %(prevTag)s du salon",
37+
"Failed to remove tag %(tagName)s from room": "Échec dans la suppression de l’étiquette %(tagName)s du salon",
3838
"Failed to set direct chat tag": "Échec dans l'attribution d'une étiquette dans le chat direct",
3939
"Favourite": "Favoris",
4040
"Operation failed": "L'opération a échoué",
@@ -116,5 +116,9 @@
116116
"World readable": "Visible par tout le monde",
117117
"You might have configured them in a client other than Riot. You cannot tune them in Riot but they still apply": "Vous les avez probablement configurées dans un autre client que Riot. Vous ne pouvez pas les configurer dans Riot mais elles s'appliquent quand même",
118118
"Guests can join": "Ouvert aux invités",
119-
" to room": " au salon"
119+
" to room": " au salon",
120+
"Advanced notification settings": "Paramètres de notifications avancés",
121+
"An error occurred whilst saving your email notification preferences.": "Une erreur est survenue lors de la sauvegarde de vos préférences de notifications mail.",
122+
"customServer_text": "Vous pouvez utiliser l'option de serveur personnalisé pour vous connectez à d'autres serveurs Matrix, en spécifiant une adresse différente pour Home serveur.<br/>Cela permet d'utiliser Riot avec un compte existant sur un Home serveur différent.<br/><br/>Vous pouvez aussi indiquer un serveur d'identité personnel mais vous ne pourrez plus inviter des utilisateurs par email, ou être invité par email.",
123+
"Notifications on the following keywords follow rules which can’t be displayed here:": "Les notifications pour les mots clés suivant répondent à des critères qui ne peuvent pas être affichés ici :"
120124
}

0 commit comments

Comments
 (0)