Facelifted "direct message" to "private message"

Этот коммит содержится в:
nickago
2015-07-01 09:48:39 -07:00
родитель 5e204030ff
Коммит 27eeabafe0
6 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@@ -227,7 +227,7 @@ func fireAndForgetNotifications(post *model.Post, teamId, teamUrl string) {
channel = result.Data.(*model.Channel) channel = result.Data.(*model.Channel)
if channel.Type == model.CHANNEL_DIRECT { if channel.Type == model.CHANNEL_DIRECT {
bodyText = "You have one new message." bodyText = "You have one new message."
subjectText = "New Direct Message" subjectText = "New Private Message"
} else { } else {
bodyText = "You have one new mention." bodyText = "You have one new mention."
subjectText = "New Mention" subjectText = "New Mention"

Просмотреть файл

@@ -49,7 +49,7 @@ module.exports = React.createClass({
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
<span className="sr-only">Close</span> <span className="sr-only">Close</span>
</button> </button>
<h4 className="modal-title">More Direct Messages</h4> <h4 className="modal-title">More Private Messages</h4>
</div> </div>
<div className="modal-body"> <div className="modal-body">
<ul className="nav nav-pills nav-stacked"> <ul className="nav nav-pills nav-stacked">

Просмотреть файл

@@ -342,13 +342,13 @@ module.exports = React.createClass({
<div className="channel-intro-profile"> <div className="channel-intro-profile">
<strong><UserProfile userId={teammate.id} /></strong> <strong><UserProfile userId={teammate.id} /></strong>
</div> </div>
<p className="channel-intro-text">{"This is the start of your direct message history with " + teammate_name + "." }<br/>{"Direct messages and files shared here are not shown to people outside this area."}</p> <p className="channel-intro-text">{"This is the start of your private message history with " + teammate_name + "." }<br/>{"Private messages and files shared here are not shown to people outside this area."}</p>
</div> </div>
); );
} else { } else {
more_messages = ( more_messages = (
<div className="channel-intro"> <div className="channel-intro">
<p className="channel-intro-text">{"This is the start of your direct message history with this " + strings.Team + "mate. Direct messages and files shared here are not shown to people outside this area."}</p> <p className="channel-intro-text">{"This is the start of your private message history with this " + strings.Team + "mate. Private messages and files shared here are not shown to people outside this area."}</p>
</div> </div>
); );
} }

Просмотреть файл

@@ -73,7 +73,7 @@ SearchItem = React.createClass({
if (channel) { if (channel) {
if (channel.type === 'D') { if (channel.type === 'D') {
channelName = "Direct Message"; channelName = "Private Message";
} else { } else {
channelName = channel.display_name; channelName = channel.display_name;
} }

Просмотреть файл

@@ -414,7 +414,7 @@ var SidebarLoggedIn = React.createClass({
{privateChannelItems} {privateChannelItems}
</ul> </ul>
<ul className="nav nav-pills nav-stacked"> <ul className="nav nav-pills nav-stacked">
<li><h4>Direct Messages</h4></li> <li><h4>Private Messages</h4></li>
{directMessageItems} {directMessageItems}
{ this.state.hideDirectChannels.length > 0 ? { this.state.hideDirectChannels.length > 0 ?
<li><a href="#" data-toggle="modal" className="nav-more" data-target="#more_direct_channels" data-channels={JSON.stringify(this.state.hideDirectChannels)}>{"More ("+this.state.hideDirectChannels.length+")"}</a></li> <li><a href="#" data-toggle="modal" className="nav-more" data-target="#more_direct_channels" data-channels={JSON.stringify(this.state.hideDirectChannels)}>{"More ("+this.state.hideDirectChannels.length+")"}</a></li>

Просмотреть файл

@@ -179,7 +179,7 @@ var NotificationsTab = React.createClass({
</div> </div>
<div className="radio"> <div className="radio">
<label> <label>
<input type="radio" checked={notifyActive[1]} onClick={function(){self.handleNotifyRadio("mention")}}>Only for mentions and direct messages</input> <input type="radio" checked={notifyActive[1]} onClick={function(){self.handleNotifyRadio("mention")}}>Only for mentions and private messages</input>
</label> </label>
<br/> <br/>
</div> </div>
@@ -203,7 +203,7 @@ var NotificationsTab = React.createClass({
} else { } else {
var describe = ""; var describe = "";
if (this.state.notify_level === "mention") { if (this.state.notify_level === "mention") {
describe = "Only for mentions and direct messages"; describe = "Only for mentions and private messages";
} else if (this.state.notify_level === "none") { } else if (this.state.notify_level === "none") {
describe = "Never"; describe = "Never";
} else { } else {
@@ -282,7 +282,7 @@ var NotificationsTab = React.createClass({
<button className={"btn btn-default "+emailActive[0]} onClick={function(){self.handleEmailRadio("true")}}>On</button> <button className={"btn btn-default "+emailActive[0]} onClick={function(){self.handleEmailRadio("true")}}>On</button>
<button className={"btn btn-default "+emailActive[1]} onClick={function(){self.handleEmailRadio("false")}}>Off</button> <button className={"btn btn-default "+emailActive[1]} onClick={function(){self.handleEmailRadio("false")}}>Off</button>
</div> </div>
<div><br/>{"Email notifications are sent for mentions and direct messages after you have been away from " + config.SiteName + " for 5 minutes."}</div> <div><br/>{"Email notifications are sent for mentions and private messages after you have been away from " + config.SiteName + " for 5 minutes."}</div>
</div> </div>
); );