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() {
translator.get('topic:fork_no_pids', function(translated) {
translator.translate('[[topic:fork_no_pids]]', function(translated) {
forkModal.find('#fork-pids').html(translated);
});
}

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

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

@ -253,7 +253,7 @@ middleware.renderHeader = function(req, res, callback) {
async.parallel([
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) {
return tag.name === 'title';
});

Loading…
Cancel
Save