From d18e483fb78aaa1375ae4321a234bc70d4e654d3 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 15 Feb 2014 10:44:00 +0000 Subject: [PATCH] pad.ma locale fixes --- static/js/infoView.padma.js | 12 ++++++++---- static/json/locale.pandora.hi.json | 1 - 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/static/js/infoView.padma.js b/static/js/infoView.padma.js index 33e95a771..2c6e1f1ed 100644 --- a/static/js/infoView.padma.js +++ b/static/js/infoView.padma.js @@ -601,7 +601,7 @@ pandora.ui.infoView = function(data) { }), [0, 240]); Ox.Label({ textAlign: 'center', - title: Ox.toTitleCase(userLevel), + title: Ox._(Ox.toTitleCase(userLevel)), width: 60 }) .addClass('OxColor OxColorGradient') @@ -620,11 +620,15 @@ pandora.ui.infoView = function(data) { var hasCapability = pandora.site.capabilities[capability.name][userLevel] >= rightsLevel, $element = Ox.Theme.formatColorLevel(hasCapability, ['', '']); Ox.Button({ - tooltip: (canEdit ? Ox.toTitleCase(userLevel) : 'You') + ' ' + tooltip: Ox._('{0} ' + (hasCapability ? 'can' : 'can\'t') + ' ' + Ox.toSlashes(capability.name) .split('/').slice(1).join(' ') - .toLowerCase(), + .toLowerCase() + .replace('see item', 'see the item') + .replace('play video', 'play the full video') + .replace('download video', 'download the video'), + [canEdit ? Ox.toTitleCase(userLevel) : Ox._('You')]), title: capability.symbol, type: 'image' }) @@ -670,7 +674,7 @@ pandora.ui.infoView = function(data) { format: function(value) { return formatValue(key, value); }, - placeholder: formatLight('unknown'), + placeholder: formatLight(Ox._('unknown')), tooltip: canEdit ? pandora.getEditTooltip() : '', value: getValue(key, data[key]) }) diff --git a/static/json/locale.pandora.hi.json b/static/json/locale.pandora.hi.json index 05cfaed2a..2f022c694 100644 --- a/static/json/locale.pandora.hi.json +++ b/static/json/locale.pandora.hi.json @@ -450,7 +450,6 @@ "Total: ": "संपूर्ण", "URL": "URL", "Undo": "अंडू", - "unknown ": "अज्ञात", "Unknown ": "अज्ञात", "Unmount Volume": "ड्राइव अनमाउंट करें", "Unsubscribed": "सदस्यता बंद करें",