Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 09b91f4

Browse files
dtygeldbkr
authored andcommitted
add two strings to translation
1 parent 26cb140 commit 09b91f4

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

src/components/views/rooms/RoomList.js

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
'use strict';
1919
var React = require("react");
2020
var ReactDOM = require("react-dom");
21-
import { _t } from '../../../languageHandler';
21+
import { _t, _tJsx } from '../../../languageHandler';
2222
var GeminiScrollbar = require('react-gemini-scrollbar');
2323
var MatrixClientPeg = require("../../../MatrixClientPeg");
2424
var CallHandler = require('../../../CallHandler');
@@ -478,12 +478,28 @@ module.exports = React.createClass({
478478
switch (section) {
479479
case 'im.vector.fake.direct':
480480
return <div className="mx_RoomList_emptySubListTip">
481-
Press
482-
<StartChatButton size="16" callout={true}/>
483-
to start a chat with someone
481+
{_tJsx(
482+
"Press <StartChatButton> to start a chat with someone",
483+
[/<StartChatButton>/],
484+
[
485+
(sub) => <StartChatButton size="16" callout={true}/>
486+
]
487+
)}
484488
</div>;
485489
case 'im.vector.fake.recent':
486490
return <div className="mx_RoomList_emptySubListTip">
491+
{_tJsx(
492+
"You're not in any rooms yet! Press <CreateRoomButton> to make a room or"+
493+
"<RoomDirectoryButton> to browse the directory",
494+
[/<CreateRoomButton>/, /<RoomDirectoryButton>/],
495+
[
496+
(sub) => <CreateRoomButton size="16" callout={true}/>,
497+
(sub) => <RoomDirectoryButton size="16" callout={true}/>
498+
]
499+
)}
500+
501+
502+
487503
You're not in any rooms yet! Press
488504
<CreateRoomButton size="16" callout={true}/>
489505
to make a room or

src/i18n/strings/en_EN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@
440440
"Please Register": "Please Register",
441441
"Power level must be positive integer.": "Power level must be positive integer.",
442442
"Press": "Press",
443+
"Press <StartChatButton> to start a chat with someone": "Press <StartChatButton> to start a chat with someone",
443444
"Privacy warning": "Privacy warning",
444445
"Private Chat": "Private Chat",
445446
"Privileged Users": "Privileged Users",
@@ -648,7 +649,7 @@
648649
"Would you like to <acceptText>accept</acceptText> or <declineText>decline</declineText> this invitation?": "Would you like to <acceptText>accept</acceptText> or <declineText>decline</declineText> this invitation?",
649650
"You already have existing direct chats with this user:": "You already have existing direct chats with this user:",
650651
"You are already in a call.": "You are already in a call.",
651-
"You're not in any rooms yet! Press": "You're not in any rooms yet! Press",
652+
"You're not in any rooms yet! Press <CreateRoomButton> to make a room or <RoomDirectoryButton> to browse the directory": "You're not in any rooms yet! Press <CreateRoomButton> to make a room or <RoomDirectoryButton> to browse the directory",
652653
"You are trying to access %(roomName)s.": "You are trying to access %(roomName)s.",
653654
"You cannot place a call with yourself.": "You cannot place a call with yourself.",
654655
"You cannot place VoIP calls in this browser.": "You cannot place VoIP calls in this browser.",

src/i18n/strings/pt_BR.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@
356356
"%(senderName)s placed a %(callType)s call.": "%(senderName)s fez uma chamada de %(callType)s.",
357357
"Power level must be positive integer.": "O nível de permissões tem que ser um número inteiro e positivo.",
358358
"Press": "Aperte",
359+
"Press <StartChatButton> to start a chat with someone": "Clique em <StartChatButton> para iniciar a conversa com alguém",
359360
"Reason": "Razão",
360361
"%(targetName)s rejected the invitation.": "%(targetName)s recusou o convite.",
361362
"%(senderName)s removed their display name (%(oldDisplayName)s).": "%(senderName)s removeu o seu nome público (%(oldDisplayName)s).",
@@ -398,7 +399,7 @@
398399
"VoIP is unsupported": "Chamada de voz não permitida",
399400
"%(senderName)s withdrew %(targetName)s's invitation.": "%(senderName)s desfez o convite a %(targetName)s.",
400401
"You are already in a call.": "Você já está em uma chamada.",
401-
"You're not in any rooms yet! Press": "Você ainda não está em nenhuma sala! Pressione",
402+
"You're not in any rooms yet! Press <CreateRoomButton> to make a room or <RoomDirectoryButton> to browse the directory": "Você ainda não está em nenhuma sala! Clique em <CreateRoomButton> para criar uma sala ou em <RoomDirectoryButton> para navegar pela lista pública de salas",
402403
"You are trying to access %(roomName)s.": "Você está tentando acessar a sala %(roomName)s.",
403404
"You cannot place a call with yourself.": "Você não pode iniciar uma chamada.",
404405
"You cannot place VoIP calls in this browser.": "Você não pode fazer chamadas de voz neste navegador.",

0 commit comments

Comments
 (0)