1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Changed i18n

- fixed double `starting` key
- changed asking question to more standard format (like common unix commandline tools)
- removing dirty double quotes
This commit is contained in:
Sergey Ponomarev 2014-04-16 02:11:10 +04:00
parent 0da722fead
commit 14d58021a7
5 changed files with 7 additions and 7 deletions

View file

@ -7,6 +7,7 @@ Reverse Chronological Order:
https://github.com/capistrano/capistrano/compare/v3.2.0...HEAD
* Minor changes:
* Changed asking question to more standard format (like common unix commandline tools) (@sponomarev)
* Fixed typos in the README. (@sponomarev)
* Added `keys` method to Configuration to allow introspection of configuration options. (@juanibiapina)

View file

@ -15,7 +15,7 @@ module Capistrano
attr_reader :env, :key, :default
def ask_question
$stdout.puts question
$stdout.print question
end
def save_response

View file

@ -3,7 +3,6 @@ require 'i18n'
en = {
starting: 'Starting',
capified: 'Capified',
starting: 'Starting',
start: 'Start',
update: 'Update',
finalize: 'Finalise',
@ -11,12 +10,12 @@ en = {
finished: 'Finished',
stage_not_set: 'Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.',
written_file: 'create %{file}',
question: 'Please enter %{key}: |%{default_value}|',
question: 'Please enter %{key} (%{default_value}): ',
keeping_releases: 'Keeping %{keep_releases} of %{releases} deployed releases on %{host}',
no_old_releases: 'No old releases (keeping newest %{keep_releases}) on %{host}',
linked_file_does_not_exist: 'linked file %{file} does not exist on %{host}',
cannot_rollback: 'There are no older releases to rollback to',
mirror_exists: "The repository mirror is at %{at}",
mirror_exists: 'The repository mirror is at %{at}',
revision_log_message: 'Branch %{branch} (at %{sha}) deployed as release %{release} by %{user}',
rollback_log_message: '%{user} rolled back to release %{release}',
deploy_failed: 'The deploy has failed with an error: %{ex}',

View file

@ -283,7 +283,7 @@ describe Capistrano::DSL do
describe 'asking for a variable' do
before do
dsl.ask(:scm, :svn)
$stdout.stubs(:puts)
$stdout.stubs(:print)
end
context 'variable is provided' do

View file

@ -23,7 +23,7 @@ module Capistrano
let(:branch) { 'branch' }
before do
$stdout.expects(:puts).with('Please enter branch: |default|')
$stdout.expects(:print).with('Please enter branch (default): ')
$stdin.expects(:gets).returns(branch)
end
@ -37,7 +37,7 @@ module Capistrano
let(:branch) { default }
before do
$stdout.expects(:puts).with('Please enter branch: |default|')
$stdout.expects(:print).with('Please enter branch (default): ')
$stdin.expects(:gets).returns('')
end