Sha256: 90db03717a00cd3c17751ae83ac02be2118bb8243d2c0a81883035b17452730d

Contents?: true

Size: 1.85 KB

Versions: 1

Compression:

Stored size: 1.85 KB

Contents

require 'i18n'

en = {
  error: {
    prerequisites: {
      nil:                      '`:%{variable}` variable is `nil`, it needs to contain the %{name} name.',
      empty:                    '`:%{variable}` variable is empty, it needs to contain the %{name} name.',
      string:                   '`:%{variable}` variable is not a string.',
      hash:                     '`:%{variable}` variable is not a hash.',
      integer:                  '`:%{variable}` variable is not a integer.',
      string_or_nil:            '`:%{variable}` variable is not a string or `nil`.',
      string_or_regexp_or_nil:  '`:%{variable}` variable is not a string or `Regexp` object or `nil`.'
    },
    runtime: {
      revisions_empty:          'The %{branch} branch has never been deployed to the %{stage} stage. No log has been generated.',
      revision_commit_missing:  'No commit data has been found for the %{branch} branch on the %{stage} stage. No log has been generated.',
      commits_empty:            'No commit data has been found for the %{branch} branch on the %{stage} stage since %{time}. No log has been generated.'
    }
  },
  output: {
    next_release:         'Next release',
    previous_release:     'Commits before %{time} are omitted from the report   ¯\_(ツ)_/¯',
    current_release:      'Release on %{release_time} from commit %{sha} at %{commit_time}',
    pull_request_number:  'Pull Request #%{number}',
    issue_links:          'Issue links:',
    merged_on:            'Merged on: %{time}',
    merged_by:            'Merged by: %{login}',
    commit_sha:           'Commit %{sha}',
    committed_on:         'Committed on: %{time}',
    committed_by:         'Committed by: %{login}'
  }
}

I18n.backend.store_translations(:en, { capistrano: { committed: en } })

if I18n.respond_to?(:enforce_available_locales=)
  I18n.enforce_available_locales = true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-committed-0.0.3 lib/capistrano/committed/i18n.rb