converted translator.get to translator.translate

v1.18.x
barisusakli 11 years ago
parent fb43282a9c
commit 8aa4f053e8

@ -90,7 +90,7 @@ define(function() {
} }
function showNoPostsSelected() { function showNoPostsSelected() {
translator.get('topic:fork_no_pids', function(translated) { translator.translate('[[topic:fork_no_pids]]', function(translated) {
forkModal.find('#fork-pids').html(translated); forkModal.find('#fork-pids').html(translated);
}); });
} }

@ -25,7 +25,7 @@ define(['taskbar', 'string', 'sounds'], function(taskbar, S, sounds) {
chatsListEl.empty(); chatsListEl.empty();
if (!chats.length) { if (!chats.length) {
translator.get('modules:chat.no_active', function(str) { translator.translate('[[modules:chat.no_active]]', function(str) {
$('<li />') $('<li />')
.addClass('no_active') .addClass('no_active')
.html('<a href="#">' + str + '</a>') .html('<a href="#">' + str + '</a>')

@ -59,7 +59,7 @@
}); });
// Add directional code if necessary // Add directional code if necessary
translator.get('language:dir', function(value) { translator.translate('[[language:dir]]', function(value) {
if (value) { if (value) {
$('html').css('direction', value).attr('data-dir', value); $('html').css('direction', value).attr('data-dir', value);
} }

@ -253,7 +253,7 @@ middleware.renderHeader = function(req, res, callback) {
async.parallel([ async.parallel([
function(next) { function(next) {
translator.get('pages:' + path.basename(req.url), function(translated) { translator.translate('[[pages:' + path.basename(req.url) + ']]', function(translated) {
var metaTitle = templateValues.metaTags.filter(function(tag) { var metaTitle = templateValues.metaTags.filter(function(tag) {
return tag.name === 'title'; return tag.name === 'title';
}); });

Loading…
Cancel
Save