From 8801fe7e6cf0174b3ad28b5f04ec3096d15ba05f Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 15 Jan 2014 14:35:01 +0100 Subject: [PATCH] Replace all of the uses of translation helper with plain text We're removing translations from Travis, the substitution was done using this script: https://gist.github.com/drogus/8436273 --- assets/scripts/app/templates/builds/list.hbs | 14 ++++++------- assets/scripts/app/templates/builds/show.hbs | 20 +++++++++---------- assets/scripts/app/templates/jobs/list.hbs | 6 +++--- assets/scripts/app/templates/jobs/pre.hbs | 2 +- assets/scripts/app/templates/jobs/show.hbs | 18 ++++++++--------- assets/scripts/app/templates/layouts/top.hbs | 20 +++++++++---------- .../app/templates/profile/tabs/hooks.hbs | 3 ++- .../app/templates/profile/tabs/user.hbs | 6 +++--- assets/scripts/app/templates/queues/list.hbs | 4 ++-- assets/scripts/app/templates/repos/list.hbs | 4 ++-- .../scripts/app/templates/repos/list/tabs.hbs | 6 +++--- .../scripts/app/templates/repos/show/tabs.hbs | 12 +++++------ .../scripts/app/templates/status_images.hbs | 14 ++++++------- 13 files changed, 65 insertions(+), 64 deletions(-) diff --git a/assets/scripts/app/templates/builds/list.hbs b/assets/scripts/app/templates/builds/list.hbs index 5d73ca69..ea2a408a 100644 --- a/assets/scripts/app/templates/builds/list.hbs +++ b/assets/scripts/app/templates/builds/list.hbs @@ -2,21 +2,21 @@ - - + + {{#if view.isPullRequestsList}} {{/if}} - - + + diff --git a/assets/scripts/app/templates/builds/show.hbs b/assets/scripts/app/templates/builds/show.hbs index 7c3d8f81..d1634271 100644 --- a/assets/scripts/app/templates/builds/show.hbs +++ b/assets/scripts/app/templates/builds/show.hbs @@ -3,7 +3,7 @@ {{else}}
-
{{t builds.name}}
+
Build
{{#if build.id}} @@ -12,40 +12,40 @@ {{/if}} {{/if}}
-
{{t builds.state}}
+
state
{{capitalize build.state}}
-
{{t builds.finished_at}}
+
Finished
{{formatTime build.finishedAt}}
-
{{t builds.duration}}
+
Duration
{{formatDuration build.duration}}
{{#with build}}
-
{{t builds.commit}}
+
Commit
{{formatCommit commit}}
{{#if pullRequest}} -
{{t builds.pull_request}}
+
#{{pullRequestNumber}} {{pullRequestTitle}}
{{else}} {{#if commit.compareUrl}} -
{{t builds.compare}}
+
Compare
{{pathFrom commit.compareUrl}}
{{/if}} {{/if}} {{#if commit.authorName}} -
{{t builds.author}}
+
Author
{{commit.authorName}}
{{/if}} {{#if commit.committerName}} -
{{t builds.committer}}
+
Committer
{{commit.committerName}}
{{/if}}
{{/with}} -
{{t builds.message}}
+
Message
{{formatMessage build.commit.message repoBinding=build.repo}}
diff --git a/assets/scripts/app/templates/jobs/list.hbs b/assets/scripts/app/templates/jobs/list.hbs index 22314a35..046d2981 100644 --- a/assets/scripts/app/templates/jobs/list.hbs +++ b/assets/scripts/app/templates/jobs/list.hbs @@ -2,12 +2,12 @@ {{#if view.required}}
{{t builds.name}}{{t builds.message}}BuildMessage - {{t builds.commit}} + Commit - {{t builds.committer}} + Committer - {{t builds.pr}} + PR {{t builds.duration}}{{t builds.finished_at}}DurationFinished
{{else}}
- {{t jobs.build_matrix}} + Build Matrix
{{/if}} @@ -46,7 +46,7 @@ {{#unless view.required}} {{#with job}}
-
{{t jobs.commit}}
+
Commit
{{formatCommit commit}}
{{#if build.pullRequest}} -
{{t builds.pull_request}}
+
#{{build.pullRequestNumber}} {{build.pullRequestTitle}}
{{else}} {{#if commit.compareUrl}} -
{{t jobs.compare}}
+
Compare
{{pathFrom commit.compareUrl}}
{{/if}} {{/if}} {{#if commit.authorName}} -
{{t jobs.author}}
+
Author
{{commit.authorName}}
{{/if}} {{#if commit.committerName}} -
{{t jobs.committer}}
+
Committer
{{commit.committerName}}
{{/if}}
{{/with}} -
{{t jobs.message}}
+
Message
{{formatMessage job.commit.message repoBinding=job.repo}}
diff --git a/assets/scripts/app/templates/layouts/top.hbs b/assets/scripts/app/templates/layouts/top.hbs index 0f583cf6..57f7cb84 100644 --- a/assets/scripts/app/templates/layouts/top.hbs +++ b/assets/scripts/app/templates/layouts/top.hbs @@ -4,24 +4,24 @@
- {{t jobs.allowed_failures}} + Allowed Failures