Merge branch 'master' of https://github.com/NodeBB/NodeBB
commit
5e1c33bb3b
@ -1,16 +1,16 @@
|
||||
{
|
||||
"custom-css": "Custom CSS/LESS",
|
||||
"custom-css.description": "Enter your own CSS/LESS declarations here, which will be applied after all other styles.",
|
||||
"custom-css.enable": "Enable Custom CSS/LESS",
|
||||
"custom-css": "Codice CSS o LESS personalizzato",
|
||||
"custom-css.description": "Inserisci il tuo codice CSS o LESS di seguito, verrà applicato dopo tutti gli altri stili.",
|
||||
"custom-css.enable": "Abilita personalizzazione di CSS o LESS ",
|
||||
|
||||
"custom-js": "Custom Javascript",
|
||||
"custom-js.description": "Enter your own javascript here. It will be executed after the page is loaded completely.",
|
||||
"custom-js.enable": "Enable Custom Javascript",
|
||||
"custom-js": "Codice Javascript personalizzato",
|
||||
"custom-js.description": "Inserisci di seguito il tuo codice Javascript che verrà eseguito dopo l'intero caricamento della pagina.",
|
||||
"custom-js.enable": "Abilita personalizzazione codice Javascript ",
|
||||
|
||||
"custom-header": "Intestazione Personalizzata",
|
||||
"custom-header.description": "Enter custom HTML here (ex. Meta Tags, etc.), which will be appended to the <code><head></code> section of your forum's markup. Script tags are allowed, but are discouraged, as the <a href=\"#custom-header\" data-toggle=\"tab\">Custom Javascript</a> tab is available.",
|
||||
"custom-header.description": "Inserisci di seguito il tuo codice HTML (come Meta Tags, ecc), che verrà inserito in coda nella sezione <code><head></code>del markup del tuo forum. Sono permessi i tags Script, sebbene si preferisca l'utilizzo del codice Javascript personalizzato.",
|
||||
"custom-header.enable": "Abilita l'Intestazione Personalizzata",
|
||||
|
||||
"custom-css.livereload": "Enable Live Reload",
|
||||
"custom-css.livereload.description": "Enable this to force all sessions on every device under your account to refresh whenever you click save"
|
||||
"custom-css.livereload": "Abilita riavvio a caldo (Live Reolad)",
|
||||
"custom-css.livereload.description": "Abilita questa opzione per forzare il refresh di tutte le sessioni dei tuoi account una volta salvate le modifiche."
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"alert.confirm-rebuild-and-restart": "Vai Tu tiešām vēlies pārkompilēt un tad pārstartēt NodeBB?",
|
||||
"alert.confirm-restart": "Vai Tu tiešām vēlies pārstartēt NodeBB?",
|
||||
"alert.confirm-rebuild-and-restart": "Vai tiešām vēlies pārkompilēt un pārstartēt NodeBB?",
|
||||
"alert.confirm-restart": "Vai tiešām vēlies pārstartēt NodeBB?",
|
||||
|
||||
"acp-title": "%1 | NodeBB administrācijas vadības panelis",
|
||||
"settings-header-contents": "Saturs"
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"post-cache": "Post Cache",
|
||||
"posts-in-cache": "Posts in Cache",
|
||||
"post-cache": "Rakstu kešatmiņa",
|
||||
"posts-in-cache": "Rakstu skaits kešatmiņā",
|
||||
"average-post-size": "Vidējais rakstu garums",
|
||||
"length-to-max": "Length / Max",
|
||||
"percent-full": "%1% Full",
|
||||
"post-cache-size": "Post Cache Size",
|
||||
"items-in-cache": "Items in Cache",
|
||||
"length-to-max": "Aizņemts / Maksimums",
|
||||
"percent-full": "%1% Aizņemts",
|
||||
"post-cache-size": "Rakstu kešatmiņas lielums",
|
||||
"items-in-cache": "Rakstu skaits kešatmiņā",
|
||||
"control-panel": "Vadības panelis",
|
||||
"update-settings": "Update Cache Settings"
|
||||
"update-settings": "Atjaunināt kešatmiņas iestatījumus"
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"checking-for-installed": "Checking for installed themes...",
|
||||
"checking-for-installed": "Pārbauda instalētās tēmas...",
|
||||
"homepage": "Sākumlapa",
|
||||
"select-theme": "Atlasīt tēmu",
|
||||
"current-theme": "Pašreizējā tēma",
|
||||
"no-themes": "Nav instalēto tēmu",
|
||||
"revert-confirm": "Vai tiešām vēlies atjaunot noklusējamo NodeBB tēmu?",
|
||||
"theme-changed": "Tēma ir mainīta",
|
||||
"revert-success": "You have successfully reverted your NodeBB back to it's default theme.",
|
||||
"restart-to-activate": "Please rebuild and restart your NodeBB to fully activate this theme."
|
||||
"revert-success": "NodeBB veiksmīgi atgriezts atpakaļ uz tā noklusējuma tēmu.",
|
||||
"restart-to-activate": "Lūdzu, pārkompilēt un pārstartēt NodeBB, lai pilnībā aktivizētu tēmu."
|
||||
}
|
@ -1,18 +1,18 @@
|
||||
{
|
||||
"you-are-on": "Info - You are on <strong>%1:%2</strong>",
|
||||
"nodes-responded": "%1 nodes responded within %2ms!",
|
||||
"host": "host",
|
||||
"you-are-on": "Info - Tu lieto <strong>%1:%2</strong>",
|
||||
"nodes-responded": "%1 serveri atbildēja %2ms laikā!",
|
||||
"host": "serveris",
|
||||
"pid": "pid",
|
||||
"nodejs": "nodejs",
|
||||
"online": "tiešsaistē",
|
||||
"git": "git",
|
||||
"memory": "memory",
|
||||
"load": "load",
|
||||
"uptime": "uptime",
|
||||
"memory": "atmiņa",
|
||||
"load": "slodze",
|
||||
"uptime": "darbspējas laiks",
|
||||
|
||||
"registered": "Registered",
|
||||
"sockets": "Sockets",
|
||||
"guests": "Guests",
|
||||
"registered": "Reģistrētie",
|
||||
"sockets": "Tīkla savienojumi",
|
||||
"guests": "Viesi",
|
||||
|
||||
"info": "Info"
|
||||
}
|
@ -1,22 +1,22 @@
|
||||
{
|
||||
"available": "Pieejamie logrīki",
|
||||
"explanation": "Select a widget from the dropdown menu and then drag and drop it into a template's widget area on the left.",
|
||||
"none-installed": "No widgets found! Activate the essential widgets plugin in the <a href=\"%1\">plugins</a> control panel.",
|
||||
"explanation": "Atlasīt spraudni no nolaižamās izvēlnes, un to vilkt un nomest uz veidnes spraudņa lauku kreisajā pusē.",
|
||||
"none-installed": "Nav logrīku! Aktivizēt nepieciešamo logrīku spraudni <a href=\"%1\">spraudņu</a> vadības panelī.",
|
||||
"clone-from": "Klonēt logrīkus no",
|
||||
"containers.available": "Pieejamās tvertnes",
|
||||
"containers.explanation": "Drag and drop on top of any active widget",
|
||||
"containers.explanation": "Vilkt un nomest uz jebkura aktīvā logrīka",
|
||||
"containers.none": "Nav",
|
||||
"container.well": "Well",
|
||||
"container.well": "Labi",
|
||||
"container.jumbotron": "Jumbotron",
|
||||
"container.panel": "Panelis",
|
||||
"container.panel-header": "Paneļa galvene",
|
||||
"container.panel-body": "Paneļa korpuss",
|
||||
"container.alert": "Alert",
|
||||
"container.alert": "Brīdinājums",
|
||||
|
||||
"alert.confirm-delete": "Vai tiešām vēlies izdzēst šo logrīku?",
|
||||
"alert.updated": "Logrīki atjaunināti",
|
||||
"alert.update-success": "Veiksmīgi atjaunināti logrīki",
|
||||
"alert.clone-success": "Veiksmīgi klonēti logrīki",
|
||||
|
||||
"error.select-clone": "Please select a page to clone from"
|
||||
"error.select-clone": "Lūdzu, izvēlēties lapu klonēšanai"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"language-settings": "Valodas iestatījumi",
|
||||
"description": "The default language determines the language settings for all users who are visiting your forum. <br />Individual users can override the default language on their account settings page.",
|
||||
"description": "Noklusējuma valoda nosaka valodas iestatījumus visiem lietotājiem, kuri apmeklē forumu. <br />Atsevišķi lietotāji savā konta iestatījumu lapā var ignorēt noklusējuma valodu.",
|
||||
"default-language": "Noklusējama valoda",
|
||||
"auto-detect": "Auto Detect Language Setting for Guests"
|
||||
"auto-detect": "Viesiem automātiski izprast valodas iestatījumus"
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
{
|
||||
"administrators": "Administrators",
|
||||
"administrators": "Administratori",
|
||||
"global-moderators": "Globālie moderatori",
|
||||
"no-global-moderators": "Nav globālo moderatoru",
|
||||
"moderators-of-category": "\"%1\" moderatori",
|
||||
"no-moderators": "Nav moderatoru",
|
||||
"add-administrator": "Add Administrator",
|
||||
"add-administrator": "Pievienot administratoru",
|
||||
"add-global-moderator": "Pievienot globālo moderatoru",
|
||||
"add-moderator": "Pievienot moderatoru"
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"post-queue": "Rakstu apstiprināšanas rinda",
|
||||
"description": "There are no posts in the post queue. <br> To enable this feature, go to <a href=\"%1\">Settings → Post → Posting Restrictions</a> and enable <strong>Post Queue</strong>.",
|
||||
"user": "User",
|
||||
"user": "Lietotājs",
|
||||
"category": "Kategorija",
|
||||
"title": "Title",
|
||||
"content": "Content",
|
||||
"posted": "Posted",
|
||||
"title": "Virsraksts",
|
||||
"content": "Saturs",
|
||||
"posted": "Datums",
|
||||
"reply-to": "Atbildēt \"%1\"",
|
||||
"content-editable": "You can click on individual content to edit before posting."
|
||||
}
|
@ -1,81 +1,81 @@
|
||||
{
|
||||
"section-general": "General",
|
||||
"general/dashboard": "Dashboard",
|
||||
"section-general": "Vispārējie",
|
||||
"general/dashboard": "Informācijas panelis",
|
||||
"general/homepage": "Sākumlapa",
|
||||
"general/navigation": "Navigation",
|
||||
"general/navigation": "Navigācija",
|
||||
"general/languages": "Valodas",
|
||||
"general/sounds": "Sounds",
|
||||
"general/social": "Social",
|
||||
"general/sounds": "Skaņas",
|
||||
"general/social": "Sociālie tīkli",
|
||||
|
||||
"section-manage": "Pārvaldīt",
|
||||
"manage/categories": "Categories",
|
||||
"manage/privileges": "Privileges",
|
||||
"manage/categories": "Kategorijas",
|
||||
"manage/privileges": "Privilēģijas",
|
||||
"manage/tags": "Birkas",
|
||||
"manage/users": "Users",
|
||||
"manage/admins-mods": "Administratori & moderatori",
|
||||
"manage/registration": "Reģistrāciju rinda",
|
||||
"manage/post-queue": "Rakstu apstiprināšanas rinda",
|
||||
"manage/groups": "Groups",
|
||||
"manage/ip-blacklist": "IP adrešu melnais saraksts",
|
||||
"manage/users": "Lietotājus",
|
||||
"manage/admins-mods": "Administratorus & moderatorus",
|
||||
"manage/registration": "Reģistrēšanas rindu",
|
||||
"manage/post-queue": "Rakstu apstiprināšanas rindu",
|
||||
"manage/groups": "Grupas",
|
||||
"manage/ip-blacklist": "IP adrešu melnajo sarakstu",
|
||||
"manage/uploads": "Augšupielādes",
|
||||
|
||||
"section-settings": "Iestatījumi",
|
||||
"settings/general": "General",
|
||||
"settings/reputation": "Ranga punkti",
|
||||
"settings/email": "E-pasta adrese",
|
||||
"settings/user": "User",
|
||||
"settings/group": "Group",
|
||||
"settings/guest": "Guests",
|
||||
"settings/uploads": "Augšupielādes",
|
||||
"settings/post": "Post",
|
||||
"settings/chat": "Sarunāties",
|
||||
"settings/pagination": "Dalīšana pa lapām",
|
||||
"settings/tags": "Birkas",
|
||||
"settings/notifications": "Paziņojumi",
|
||||
"settings/cookies": "Sīkfaili",
|
||||
"settings/web-crawler": "Interneta rāpuļprogramma",
|
||||
"settings/sockets": "Sockets",
|
||||
"settings/advanced": "Advanced",
|
||||
"settings/general": "Vispārējie",
|
||||
"settings/reputation": "Ranga punktu",
|
||||
"settings/email": "E-pasta",
|
||||
"settings/user": "Lietotāju",
|
||||
"settings/group": "Grupu",
|
||||
"settings/guest": "Viesu",
|
||||
"settings/uploads": "Augšupielāžu",
|
||||
"settings/post": "Rakstu",
|
||||
"settings/chat": "Sarunāšanās",
|
||||
"settings/pagination": "Dalīšanai pa lapām",
|
||||
"settings/tags": "Birkām",
|
||||
"settings/notifications": "Paziņojumiem",
|
||||
"settings/cookies": "Sīkfailiem",
|
||||
"settings/web-crawler": "Interneta rāpuļprogrammām",
|
||||
"settings/sockets": "Tīklam",
|
||||
"settings/advanced": "Paplašīnātie",
|
||||
|
||||
"settings.page-title": "%1 iestatījumi",
|
||||
|
||||
"section-appearance": "Appearance",
|
||||
"appearance/themes": "Themes",
|
||||
"section-appearance": "Izskats",
|
||||
"appearance/themes": "Tēmas",
|
||||
"appearance/skins": "Ādiņas",
|
||||
"appearance/customise": "Pielāgotais saturs (HTML/JS/CSS)",
|
||||
|
||||
"section-extend": "Extend",
|
||||
"section-extend": "Paplašināt",
|
||||
"extend/plugins": "Spraudņi",
|
||||
"extend/widgets": "Logrīki",
|
||||
"extend/rewards": "Balvas",
|
||||
|
||||
"section-social-auth": "Social Authentication",
|
||||
"section-social-auth": "Sociālo tīklu autentifikācija",
|
||||
|
||||
"section-plugins": "Spraudņi",
|
||||
"extend/plugins.install": "Instalēt spraudņus",
|
||||
|
||||
"section-advanced": "Advanced",
|
||||
"section-advanced": "Paplašināti",
|
||||
"advanced/database": "Datu bāze",
|
||||
"advanced/events": "Notikumi",
|
||||
"advanced/events": "Notikumu reģistrs",
|
||||
"advanced/logs": "Žurnāls",
|
||||
"advanced/errors": "Errors",
|
||||
"advanced/cache": "Cache",
|
||||
"development/logger": "Logger",
|
||||
"advanced/errors": "Kļūdu žurnāls",
|
||||
"advanced/cache": "Kešatmiņa",
|
||||
"development/logger": "Atkļūdošanas žurnāls",
|
||||
"development/info": "Info",
|
||||
|
||||
"rebuild-and-restart-forum": "Pārkompilēt & pārstartēt forumu",
|
||||
"restart-forum": "Pārstartēt forumu",
|
||||
"logout": "Izlogoties",
|
||||
"view-forum": "View Forum",
|
||||
"view-forum": "Skatīt forumu",
|
||||
|
||||
"search.placeholder": "Meklēt iestatījumos",
|
||||
"search.no-results": "No results...",
|
||||
"search.search-forum": "Search the forum for <strong></strong>",
|
||||
"search.keep-typing": "Type more to see results...",
|
||||
"search.start-typing": "Start typing to see results...",
|
||||
"search.no-results": "Nav rezultātu...",
|
||||
"search.search-forum": "Forumā meklēt <strong></strong>",
|
||||
"search.keep-typing": "Rakstīt vairāk, lai redzētu rezultātus...",
|
||||
"search.start-typing": "Sākt rakstīt, lai redzētu rezultātus...",
|
||||
|
||||
"connection-lost": "Savienojums ar %1 ir pārtraukts, mēģina no jauna savienoties...",
|
||||
|
||||
"alerts.version": "Running <strong>NodeBB v%1</strong>",
|
||||
"alerts.upgrade": "Upgrade to v%1"
|
||||
"alerts.version": "Palaists <strong>NodeBB v%1</strong>",
|
||||
"alerts.upgrade": "Uzlabot uz v%1"
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
define('forum/account/categories', ['forum/account/header'], function (header) {
|
||||
var Categories = {};
|
||||
|
||||
Categories.init = function () {
|
||||
header.init();
|
||||
|
||||
ajaxify.data.categories.forEach(function (category) {
|
||||
handleIgnoreWatch(category.cid);
|
||||
});
|
||||
};
|
||||
|
||||
function handleIgnoreWatch(cid) {
|
||||
var category = $('[data-cid="' + cid + '"]');
|
||||
category.find('[component="category/watching"], [component="category/ignoring"]').on('click', function () {
|
||||
var $this = $(this);
|
||||
var command = $this.attr('component') === 'category/watching' ? 'watch' : 'ignore';
|
||||
|
||||
socket.emit('categories.' + command, { cid: cid, uid: ajaxify.data.uid }, function (err, modified_cids) {
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
|
||||
modified_cids.forEach(function (cid) {
|
||||
var category = $('[data-cid="' + cid + '"]');
|
||||
category.find('[component="category/watching/menu"]').toggleClass('hidden', command !== 'watch');
|
||||
category.find('[component="category/watching/check"]').toggleClass('fa-check', command === 'watch');
|
||||
|
||||
category.find('[component="category/ignoring/menu"]').toggleClass('hidden', command !== 'ignore');
|
||||
category.find('[component="category/ignoring/check"]').toggleClass('fa-check', command === 'ignore');
|
||||
});
|
||||
|
||||
app.alertSuccess('[[category:' + command + '.message]]');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
return Categories;
|
||||
});
|
@ -0,0 +1,43 @@
|
||||
'use strict';
|
||||
|
||||
var async = require('async');
|
||||
|
||||
var user = require('../../user');
|
||||
var categories = require('../../categories');
|
||||
var accountHelpers = require('./helpers');
|
||||
|
||||
var categoriesController = module.exports;
|
||||
|
||||
categoriesController.get = function (req, res, callback) {
|
||||
var userData;
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
accountHelpers.getUserDataByUserSlug(req.params.userslug, req.uid, next);
|
||||
},
|
||||
function (_userData, next) {
|
||||
userData = _userData;
|
||||
if (!userData) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
async.parallel({
|
||||
ignored: function (next) {
|
||||
user.getIgnoredCategories(userData.uid, next);
|
||||
},
|
||||
categories: function (next) {
|
||||
categories.buildForSelect(userData.uid, 'find', next);
|
||||
},
|
||||
}, next);
|
||||
},
|
||||
function (results) {
|
||||
results.categories.forEach(function (category) {
|
||||
if (category) {
|
||||
category.isIgnored = results.ignored.includes(String(category.cid));
|
||||
}
|
||||
});
|
||||
userData.categories = results.categories;
|
||||
userData.title = '[[pages:account/watched_categories, ' + userData.username + ']]';
|
||||
res.render('account/categories', userData);
|
||||
},
|
||||
], callback);
|
||||
};
|
Loading…
Reference in New Issue