Localization fixes
This commit is contained in:
parent
f86834b02f
commit
d3e99988c4
|
@ -76,7 +76,7 @@ var locPlugin = ActiveBuild.UiPlugin.extend({
|
|||
};
|
||||
|
||||
for (var i in builds) {
|
||||
self.chartData.labels.push('Build ' + builds[i].build_id);
|
||||
self.chartData.labels.push(Lang.get('build') + ' ' + builds[i].build_id);
|
||||
self.chartData.datasets[0].data.push(builds[i].meta_value.LOC);
|
||||
self.chartData.datasets[1].data.push(builds[i].meta_value.LLOC);
|
||||
self.chartData.datasets[2].data.push(builds[i].meta_value.CLOC);
|
||||
|
|
|
@ -27,7 +27,7 @@ var SummaryPlugin = ActiveBuild.UiPlugin.extend({
|
|||
'<th>'+Lang.get('stage')+'</th>' +
|
||||
'<th>'+Lang.get('plugin')+'</th>' +
|
||||
'<th>'+Lang.get('status')+'</th>' +
|
||||
'<th class="text-right">'+Lang.get('duration')+' (s)</th>' +
|
||||
'<th class="text-right">' + Lang.get('duration') + ' (' + Lang.get('seconds') + ')</th>' +
|
||||
'</tr></thead><tbody></tbody></table></div>'
|
||||
);
|
||||
},
|
||||
|
@ -48,8 +48,8 @@ var SummaryPlugin = ActiveBuild.UiPlugin.extend({
|
|||
duration = data.started ? ((data.ended || Math.floor(Date.now()/1000)) - data.started) : '-';
|
||||
tbody.append(
|
||||
'<tr>' +
|
||||
'<td>' + Lang.get('stage_'+stage) + '</td>' +
|
||||
'<td>' + plugin + '</td>' +
|
||||
'<td>' + Lang.get('stage_' + stage) + '</td>' +
|
||||
'<td>' + Lang.get(plugin) + '</td>' +
|
||||
'<td><span class="' + this.statusClasses[data.status] + '">' +
|
||||
'<i class="fa ' + this.statusIcons[data.status] + '"></i> ' +
|
||||
this.statusLabels[data.status] +
|
||||
|
|
|
@ -102,7 +102,7 @@ var warningsPlugin = ActiveBuild.UiPlugin.extend({
|
|||
}
|
||||
|
||||
for (var build in self.data) {
|
||||
self.chartData.labels.push('Build ' + build);
|
||||
self.chartData.labels.push(Lang.get('build') + ' ' + build);
|
||||
|
||||
var i = 0;
|
||||
for (var key in self.keys) {
|
||||
|
|
|
@ -168,8 +168,8 @@ PHPCI',
|
|||
'information' => 'Information',
|
||||
|
||||
'build_x_not_found' => 'Build with ID %d does not exist.',
|
||||
'build_n' => 'Build %d',
|
||||
'rebuild_now' => 'Rebuild Now',
|
||||
'build_n' => 'Build %d',
|
||||
'rebuild_now' => 'Rebuild Now',
|
||||
|
||||
|
||||
'committed_by_x' => 'Committed by %s',
|
||||
|
@ -308,17 +308,18 @@ PHPCI',
|
|||
'search' => 'Search »',
|
||||
|
||||
// Summary plugin
|
||||
'build-summary' => 'Summary',
|
||||
'stage' => 'Stage',
|
||||
'duration' => 'Duration',
|
||||
'plugin' => 'Plugin',
|
||||
'stage_setup' => 'Setup',
|
||||
'stage_test' => 'Test',
|
||||
'build-summary' => 'Summary',
|
||||
'stage' => 'Stage',
|
||||
'duration' => 'Duration',
|
||||
'seconds' => 'sec.',
|
||||
'plugin' => 'Plugin',
|
||||
'stage_setup' => 'Setup',
|
||||
'stage_test' => 'Test',
|
||||
'stage_complete' => 'Complete',
|
||||
'stage_success' => 'Success',
|
||||
'stage_failure' => 'Failure',
|
||||
'stage_broken' => 'Broken',
|
||||
'stage_fixed' => 'Fixed',
|
||||
'stage_success' => 'Success',
|
||||
'stage_failure' => 'Failure',
|
||||
'stage_broken' => 'Broken',
|
||||
'stage_fixed' => 'Fixed',
|
||||
|
||||
'build_details' => 'Build Details',
|
||||
'commit_details' => 'Commit Details',
|
||||
|
|
|
@ -82,9 +82,9 @@ PHPCI',
|
|||
'latest_builds' => 'Последние сборки',
|
||||
'pending' => 'Ожидает',
|
||||
'running' => 'Запущена',
|
||||
'success' => 'Успешно',
|
||||
'successful' => 'Успешна',
|
||||
'failed' => 'Провалена',
|
||||
'success' => 'Успех',
|
||||
'successful' => 'Успешно',
|
||||
'failed' => 'Провал',
|
||||
'manual_build' => 'Запущена вручную',
|
||||
|
||||
// Add/Edit Project:
|
||||
|
@ -158,11 +158,11 @@ PHPCI',
|
|||
'group_save' => 'Сохранить группу',
|
||||
|
||||
// View Build
|
||||
'errors' => 'Ошибки',
|
||||
'information' => 'Информация',
|
||||
'errors' => 'Ошибки',
|
||||
'information' => 'Информация',
|
||||
'build_x_not_found' => 'Сборки с ID %d не существует.',
|
||||
'build_n' => 'Сборка %d',
|
||||
'rebuild_now' => 'Пересобрать сейчас',
|
||||
'build_n' => 'Сборка %d',
|
||||
'rebuild_now' => 'Пересобрать сейчас',
|
||||
|
||||
'committed_by_x' => 'Отправил %s',
|
||||
'commit_id_x' => 'Коммит: %s',
|
||||
|
@ -297,17 +297,18 @@ PHPCI',
|
|||
'search' => 'Искать »',
|
||||
|
||||
// Summary plugin
|
||||
'build-summary' => 'Сводка',
|
||||
'stage' => 'Этап',
|
||||
'duration' => 'Продолжительность',
|
||||
'plugin' => 'Плагин',
|
||||
'stage_setup' => 'Установка',
|
||||
'stage_test' => 'тестирование',
|
||||
'build-summary' => 'Сводка',
|
||||
'stage' => 'Этап',
|
||||
'duration' => 'Продолжительность',
|
||||
'seconds' => 'сек.',
|
||||
'plugin' => 'Плагин',
|
||||
'stage_setup' => 'Установка',
|
||||
'stage_test' => 'тестирование',
|
||||
'stage_complete' => 'Завершение',
|
||||
'stage_success' => 'Успешное завершение',
|
||||
'stage_failure' => 'Провал',
|
||||
'stage_broken' => 'Поломка',
|
||||
'stage_fixed' => 'Исправление',
|
||||
'stage_success' => 'Успешное завершение',
|
||||
'stage_failure' => 'Провал',
|
||||
'stage_broken' => 'Поломка',
|
||||
'stage_fixed' => 'Исправление',
|
||||
|
||||
'build_details' => 'Информация о сборке',
|
||||
'commit_details' => 'Информация о коммита',
|
||||
|
@ -431,9 +432,9 @@ PHPCI',
|
|||
|
||||
// Error Levels:
|
||||
'critical' => 'Критичный',
|
||||
'high' => 'Высокий',
|
||||
'normal' => 'Нормальный',
|
||||
'low' => 'Низкий',
|
||||
'high' => 'Высокий',
|
||||
'normal' => 'Нормальный',
|
||||
'low' => 'Низкий',
|
||||
|
||||
// Plugins that generate errors:
|
||||
'php_mess_detector' => 'PHP Mess Detector',
|
||||
|
|
Loading…
Reference in a new issue