mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
first pass, #981
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"title": "Notifications",
|
"title": "Notifications",
|
||||||
|
"no_notifs": "You have no notifications",
|
||||||
|
"see_all": "See all Notifications",
|
||||||
|
|
||||||
"back_to_home": "Back to NodeBB",
|
"back_to_home": "Back to NodeBB",
|
||||||
"outgoing_link": "Outgoing Link",
|
"outgoing_link": "Outgoing Link",
|
||||||
"outgoing_link_message": "You are now leaving",
|
"outgoing_link_message": "You are now leaving",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
"topics": "Topics",
|
"topics": "Topics",
|
||||||
|
|
||||||
"no_topics_found": "No topics found!",
|
"no_topics_found": "No topics found!",
|
||||||
|
"no_posts_found": "No posts found!",
|
||||||
|
|
||||||
"profile": "Profile",
|
"profile": "Profile",
|
||||||
"posted_by": "Posted by",
|
"posted_by": "Posted by",
|
||||||
@@ -20,15 +21,19 @@
|
|||||||
"tools": "Tools",
|
"tools": "Tools",
|
||||||
"flag": "Flag",
|
"flag": "Flag",
|
||||||
|
|
||||||
"flag_title":"Flag this post for moderation",
|
"flag_title": "Flag this post for moderation",
|
||||||
|
"deleted_message": "This thread has been deleted. Only users with thread management privileges can see it.",
|
||||||
|
|
||||||
"thread_tools.title": "Thread Tools",
|
"thread_tools.title": "Thread Tools",
|
||||||
"thread_tools.markAsUnreadForAll": "Mark Unread",
|
"thread_tools.markAsUnreadForAll": "Mark Unread",
|
||||||
"thread_tools.pin": "Pin Thread",
|
"thread_tools.pin": "Pin",
|
||||||
"thread_tools.lock": "Lock Thread",
|
"thread_tools.unpin": "Unpin",
|
||||||
"thread_tools.move": "Move Thread",
|
"thread_tools.lock": "Lock",
|
||||||
"thread_tools.fork": "Fork Thread",
|
"thread_tools.unlock": "Unlock",
|
||||||
"thread_tools.delete": "Delete Thread",
|
"thread_tools.move": "Move",
|
||||||
|
"thread_tools.fork": "Fork",
|
||||||
|
"thread_tools.delete": "Delete",
|
||||||
|
"thread_tools.restore": "Restore",
|
||||||
|
|
||||||
"load_categories": "Loading Categories",
|
"load_categories": "Loading Categories",
|
||||||
"disabled_categories_note": "Disabled Categories are greyed out",
|
"disabled_categories_note": "Disabled Categories are greyed out",
|
||||||
|
|||||||
@@ -913,7 +913,9 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
x;
|
x;
|
||||||
|
|
||||||
if (locked === true) {
|
if (locked === true) {
|
||||||
lockThreadEl.html('<i class="fa fa-unlock"></i> Unlock Thread');
|
translator.translate('<i class="fa fa-unlock"></i> [[topic:thread_tools.unlock]] [[topic:topic]]', function(translated) {
|
||||||
|
lockThreadEl.html(translated);
|
||||||
|
});
|
||||||
threadReplyBtn.attr('disabled', true);
|
threadReplyBtn.attr('disabled', true);
|
||||||
threadReplyBtn.html('Locked <i class="fa fa-lock"></i>');
|
threadReplyBtn.html('Locked <i class="fa fa-lock"></i>');
|
||||||
for (x = 0; x < numPosts; x++) {
|
for (x = 0; x < numPosts; x++) {
|
||||||
@@ -935,7 +937,9 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
|
|
||||||
thread_state.locked = '1';
|
thread_state.locked = '1';
|
||||||
} else {
|
} else {
|
||||||
lockThreadEl.html('<i class="fa fa-lock"></i> Lock Thread');
|
translator.translate('<i class="fa fa-lock"></i> [[topic:thread_tools.lock]] [[topic:topic]]', function(translated) {
|
||||||
|
lockThreadEl.html(translated);
|
||||||
|
});
|
||||||
threadReplyBtn.attr('disabled', false);
|
threadReplyBtn.attr('disabled', false);
|
||||||
threadReplyBtn.html('Reply');
|
threadReplyBtn.html('Reply');
|
||||||
for (x = 0; x < numPosts; x++) {
|
for (x = 0; x < numPosts; x++) {
|
||||||
@@ -967,7 +971,9 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
deleteNotice = document.getElementById('thread-deleted') || document.createElement('div');
|
deleteNotice = document.getElementById('thread-deleted') || document.createElement('div');
|
||||||
|
|
||||||
if (deleted) {
|
if (deleted) {
|
||||||
deleteTextEl.html('<i class="fa fa-comment"></i> Restore Thread');
|
translator.translate('<i class="fa fa-comment"></i> [[topic:thread_tools.restore]] [[topic:topic]]', function(translated) {
|
||||||
|
deleteTextEl.html(translated);
|
||||||
|
});
|
||||||
threadEl.addClass('deleted');
|
threadEl.addClass('deleted');
|
||||||
|
|
||||||
// Spawn a 'deleted' notice at the top of the page
|
// Spawn a 'deleted' notice at the top of the page
|
||||||
@@ -978,7 +984,9 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
|
|
||||||
thread_state.deleted = '1';
|
thread_state.deleted = '1';
|
||||||
} else {
|
} else {
|
||||||
deleteTextEl.html('<i class="fa fa-trash-o"></i> Delete Thread');
|
translator.translate('<i class="fa fa-trash-o"></i> [[topic:thread_tools.delete]] [[topic:topic]]', function(translated) {
|
||||||
|
deleteTextEl.html(translated);
|
||||||
|
});
|
||||||
threadEl.removeClass('deleted');
|
threadEl.removeClass('deleted');
|
||||||
deleteNotice.parentNode.removeChild(deleteNotice);
|
deleteNotice.parentNode.removeChild(deleteNotice);
|
||||||
|
|
||||||
@@ -989,33 +997,35 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
function set_pinned_state(pinned, alert) {
|
function set_pinned_state(pinned, alert) {
|
||||||
var pinEl = $('.pin_thread');
|
var pinEl = $('.pin_thread');
|
||||||
|
|
||||||
if (pinned) {
|
translator.translate('<i class="fa fa-thumb-tack"></i> [[topic:thread_tools.' + (pinned ? 'unpin' : 'pin') + ']] [[topic:topic]]', function(translated) {
|
||||||
pinEl.html('<i class="fa fa-thumb-tack"></i> Unpin Thread');
|
if (pinned) {
|
||||||
if (alert) {
|
pinEl.html(translated);
|
||||||
app.alert({
|
if (alert) {
|
||||||
'alert_id': 'thread_pin',
|
app.alert({
|
||||||
type: 'success',
|
'alert_id': 'thread_pin',
|
||||||
title: 'Thread Pinned',
|
type: 'success',
|
||||||
message: 'Thread has been successfully pinned',
|
title: 'Thread Pinned',
|
||||||
timeout: 5000
|
message: 'Thread has been successfully pinned',
|
||||||
});
|
timeout: 5000
|
||||||
}
|
});
|
||||||
|
}
|
||||||
|
|
||||||
thread_state.pinned = '1';
|
thread_state.pinned = '1';
|
||||||
} else {
|
} else {
|
||||||
pinEl.html('<i class="fa fa-thumb-tack"></i> Pin Thread');
|
pinEl.html(translated);
|
||||||
if (alert) {
|
if (alert) {
|
||||||
app.alert({
|
app.alert({
|
||||||
'alert_id': 'thread_pin',
|
'alert_id': 'thread_pin',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
title: 'Thread Unpinned',
|
title: 'Thread Unpinned',
|
||||||
message: 'Thread has been successfully unpinned',
|
message: 'Thread has been successfully unpinned',
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
thread_state.pinned = '0';
|
thread_state.pinned = '0';
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle_post_delete_state(pid) {
|
function toggle_post_delete_state(pid) {
|
||||||
|
|||||||
@@ -29,10 +29,14 @@ define(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
notifList.append($('<li class="no-notifs"><a>You have no notifications</a></li>'));
|
translator.translate('<li class="no-notifs"><a>[[notifications:no_notifs]]</a></li>', function(translated) {
|
||||||
|
notifList.append($(translated));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
notifList.append($('<li class="pagelink"><a href="' + RELATIVE_PATH + '/notifications">See all Notifications</a></li>'));
|
translator.translate('<li class="pagelink"><a href="' + RELATIVE_PATH + '/notifications">[[notifications:see_all]]</a></li>', function(translated) {
|
||||||
|
notifList.append($(translated));
|
||||||
|
});
|
||||||
|
|
||||||
updateNotifCount(data.unread.length);
|
updateNotifCount(data.unread.length);
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,7 @@
|
|||||||
<form id="search-form" class="navbar-form navbar-right" role="search" method="GET" action="">
|
<form id="search-form" class="navbar-form navbar-right" role="search" method="GET" action="">
|
||||||
<div class="hide" id="search-fields">
|
<div class="hide" id="search-fields">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" class="form-control" placeholder="Search" name="query" value="">
|
<input type="text" class="form-control" placeholder="[[global:search]]" name="query" value="">
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-default hide">[[global:search]]</button>
|
<button type="submit" class="btn btn-default hide">[[global:search]]</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li><a href="{relative_path}/">[[global:home]]</a></li>
|
<li><a href="{relative_path}/">[[global:home]]</a></li>
|
||||||
<li class="active">[[global:header.search]]</li>
|
<li class="active">[[global:search]]</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
<form id="mobile-search-form" class="navbar-form navbar-right visible-xs" role="search" method="GET" action="">
|
<form id="mobile-search-form" class="navbar-form navbar-right visible-xs" role="search" method="GET" action="">
|
||||||
<div class="" id="search-fields">
|
<div class="" id="search-fields">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" class="form-control" placeholder="Search" name="query" value="">
|
<input type="text" class="form-control" placeholder="[[global:search]]" name="query" value="">
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-default hide">[[global:header.search]]</button>
|
<button type="submit" class="btn btn-default hide">[[global:search]]</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@@ -57,12 +57,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="post-results" class="col-md-12" data-search-query="{search_query}">
|
<div id="post-results" class="col-md-12" data-search-query="{search_query}">
|
||||||
<h3>Posts</h3>
|
<h3>[[topic:posts]]</h3>
|
||||||
|
|
||||||
<!-- IF post_matches -->
|
<!-- IF post_matches -->
|
||||||
<small>{post_matches} result(s) matching "{search_query}"</small>
|
<small>{post_matches} result(s) matching "{search_query}"</small>
|
||||||
<!-- ENDIF post_matches -->
|
<!-- ENDIF post_matches -->
|
||||||
<div class="alert alert-info {show_no_posts}">No posts found!</div>
|
<div class="alert alert-info {show_no_posts}">[[tropic:no_posts_found]]</div>
|
||||||
|
|
||||||
<!-- BEGIN posts -->
|
<!-- BEGIN posts -->
|
||||||
<div class="topic-row panel panel-default clearfix">
|
<div class="topic-row panel panel-default clearfix">
|
||||||
|
|||||||
@@ -178,13 +178,13 @@
|
|||||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button">[[topic:thread_tools.title]] <span class="caret"></span></button>
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button">[[topic:thread_tools.title]] <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu pull-right">
|
<ul class="dropdown-menu pull-right">
|
||||||
<li><a href="#" class="markAsUnreadForAll"><i class="fa fa-inbox"></i> [[topic:thread_tools.markAsUnreadForAll]]</a></li>
|
<li><a href="#" class="markAsUnreadForAll"><i class="fa fa-inbox"></i> [[topic:thread_tools.markAsUnreadForAll]]</a></li>
|
||||||
<li><a href="#" class="pin_thread"><i class="fa fa-thumb-tack"></i> [[topic:thread_tools.pin]]</a></li>
|
<li><a href="#" class="pin_thread"><i class="fa fa-thumb-tack"></i> [[topic:thread_tools.pin]] [[topic:topic]]</a></li>
|
||||||
<li><a href="#" class="lock_thread"><i class="fa fa-lock"></i> [[topic:thread_tools.lock]]</a></li>
|
<li><a href="#" class="lock_thread"><i class="fa fa-lock"></i> [[topic:thread_tools.lock]] [[topic:topic]]</a></li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="#" class="move_thread"><i class="fa fa-arrows"></i> [[topic:thread_tools.move]]</a></li>
|
<li><a href="#" class="move_thread"><i class="fa fa-arrows"></i> [[topic:thread_tools.move]]</a></li>
|
||||||
<li><a href="#" class="fork_thread"><i class="fa fa-code-fork"></i> [[topic:thread_tools.fork]]</a></li>
|
<li><a href="#" class="fork_thread"><i class="fa fa-code-fork"></i> [[topic:thread_tools.fork]]</a></li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="#" class="delete_thread"><span class="text-error"><i class="fa fa-trash-o"></i> [[topic:thread_tools.delete]]</span></a></li>
|
<li><a href="#" class="delete_thread"><span class="text-error"><i class="fa fa-trash-o"></i> [[topic:thread_tools.delete]] [[topic:topic]]</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user