Skip to content

Commit

Permalink
[FIX JENKINS-40131] Re-run button translation (#826)
Browse files Browse the repository at this point in the history
* Translate the re-run button

* core-js 0.0.69-tf-JENKINS-40131-1

* lint fix

* core-js 0.0.69-tf-JENKINS-40131-1 on dependants

* change re-run text key to keep thor happy

* Re-run translations

* core-js 0.0.69-tf-JENKINS-40131-2

* core-js 0.0.69-tf-JENKINS-40131-2 on dependants
  • Loading branch information
tfennelly authored Feb 15, 2017
1 parent 22ff43c commit 1f67c3f
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion blueocean-core-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jenkins-cd/blueocean-core-js",
"version": "0.0.68",
"version": "0.0.69-tf-JENKINS-40131-2",
"description": "Shared JavaScript libraries for use with Jenkins Blue Ocean",
"main": "dist/js/index.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions blueocean-core-js/src/js/components/ReplayButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import { Icon } from '@jenkins-cd/react-material-icons';

import { capable, RunApi as runApi, ToastUtils } from '../index';
import Security from '../security';
import i18nTranslator from '../i18n/i18n';

const { permit } = Security;
const translate = i18nTranslator('blueocean-web');

const stopProp = (event) => {
event.stopPropagation();
Expand Down Expand Up @@ -79,8 +81,7 @@ export class ReplayButton extends Component {
const isPipeline = capable(this.props.runnable, PIPELINE_CAPABILITIES);
const hasPermission = permit(this.props.runnable).start();

const replayLabel = 'Re-run';

const replayLabel = translate('toast.re-run', { defaultValue: 'Re-run' });

if (!isFinished || !isPipeline || !hasPermission) {
return null;
Expand Down
6 changes: 3 additions & 3 deletions blueocean-dashboard/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blueocean-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"skin-deep": "0.16.0"
},
"dependencies": {
"@jenkins-cd/blueocean-core-js": "0.0.68",
"@jenkins-cd/blueocean-core-js": "0.0.69-tf-JENKINS-40131-2",
"@jenkins-cd/design-language": "0.0.112",
"@jenkins-cd/js-extensions": "0.0.33",
"@jenkins-cd/js-modules": "0.0.8",
Expand Down
6 changes: 3 additions & 3 deletions blueocean-personalization/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blueocean-personalization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"react-addons-test-utils": "15.3.2"
},
"dependencies": {
"@jenkins-cd/blueocean-core-js": "0.0.68",
"@jenkins-cd/blueocean-core-js": "0.0.69-tf-JENKINS-40131-2",
"@jenkins-cd/design-language": "0.0.112",
"@jenkins-cd/js-extensions": "0.0.33",
"@jenkins-cd/js-modules": "0.0.8",
Expand Down
6 changes: 3 additions & 3 deletions blueocean-web/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blueocean-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"zombie": "4.2.1"
},
"dependencies": {
"@jenkins-cd/blueocean-core-js": "0.0.68",
"@jenkins-cd/blueocean-core-js": "0.0.69-tf-JENKINS-40131-2",
"@jenkins-cd/design-language": "0.0.112",
"@jenkins-cd/js-extensions": "0.0.33",
"@jenkins-cd/js-modules": "0.0.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pipelines=Pipelines
toast.abort=Abort
toast.run.open=Open
toast.run=Run
toast.re-run=Re-Run
toast.run.started=Started "{0}" #{1}
toast.run.stopping=Stopping "{0}" #{1}...
toast.stopping=Stopping...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pipelines=Pipelines
toast.abort=Abbrechen
toast.run.open=\u00D6ffnen
toast.run=Starte
toast.re-run=Wiederholen
toast.run.started=Gestartet "{0}" #{1}
toast.run.stopping=Wird gestoppt "{0}" #{1}...
toast.stopping=Wird gestoppt...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ parametrised.pipeline.submit=Iniciar
pipelines=Pipelines
toast.abort=Abortar
toast.run=Iniciar
toast.re-run=Repetir
toast.run.open=Abrir
toast.run.started=Iniciado "{0}" #{1}
toast.run.stopping=Parando "{0}" #{1}...
Expand Down

0 comments on commit 1f67c3f

Please sign in to comment.