Add 'uk' and 'ru_RU' translations of the level bar tabs

This commit is contained in:
Oleksandr Redko 2015-11-21 23:50:59 +02:00
parent a8649c4d36
commit 5fdaf2cc9f
2 changed files with 26 additions and 2 deletions

View file

@ -532,6 +532,20 @@ exports.strings = {
'uk': 'Обери рівень' 'uk': 'Обери рівень'
}, },
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
'main-levels-tab': {
'__desc__': 'The name of main levels tab on the drop down view',
'en_US': 'Main',
'ru_RU': 'Основы',
'uk' : 'Основи'
},
///////////////////////////////////////////////////////////////////////////
'remote-levels-tab': {
'__desc__': 'The name of remote levels tab on the drop down view',
'en_US': 'Remote',
'ru_RU': 'Удаленные репозитории',
'uk' : 'Віддалені репозиторії'
},
///////////////////////////////////////////////////////////////////////////
'branch-name-short': { 'branch-name-short': {
'__desc__': 'When branch names get too long, we need to truncate them. This is the warning for that', '__desc__': 'When branch names get too long, we need to truncate them. This is the warning for that',
'en_US': 'Sorry, we need to keep branch names short for the visuals. Your branch name was truncated to 9 characters, resulting in "{branch}"', 'en_US': 'Sorry, we need to keep branch names short for the visuals. Your branch name was truncated to 9 characters, resulting in "{branch}"',

View file

@ -33,10 +33,10 @@ var LevelDropdownView = ContainedBase.extend({
selectedTab: queryParams.defaultTab || 'main', selectedTab: queryParams.defaultTab || 'main',
tabs: [{ tabs: [{
id: 'main', id: 'main',
name: intl.todo('Main') name: intl.str('main-levels-tab')
}, { }, {
id: 'remote', id: 'remote',
name: intl.todo('Remote') name: intl.str('remote-levels-tab')
}] }]
}; };
@ -89,6 +89,10 @@ var LevelDropdownView = ContainedBase.extend({
this.container.updateTitle( this.container.updateTitle(
intl.str('select-a-level') intl.str('select-a-level')
); );
this.updateTabNames([
intl.str('main-levels-tab'),
intl.str('remote-levels-tab')
]);
LevelDropdownView.__super__.render.apply(this, arguments); LevelDropdownView.__super__.render.apply(this, arguments);
this.buildSequences(); this.buildSequences();
}, },
@ -113,6 +117,12 @@ var LevelDropdownView = ContainedBase.extend({
} }
}, },
updateTabNames: function(names) {
for(var index = 0; index < names.length; ++index) {
this.JSON.tabs[index].name = names[index];
}
},
positive: function() { positive: function() {
if (!this.selectedID) { if (!this.selectedID) {
return; return;