en:
  errors:
    not_blank?: "can't be blank"
    filled?: "can't be blank"
    valid_method?: "is not a recognised HTTP method"
    valid_url?: "is not a valid URL eg. http://example.org"
    valid_version_number?: "Version number '%{value}' cannot be parsed to a version number. The expected format (unless this configuration has been overridden) is a semantic version. eg. 1.3.0 or 2.0.4.rc1"
    name_in_path_matches_name_in_pact?: "does not match %{left} name in path ('%{right}')."
    valid_consumer_version_number?: "Consumer version number '%{value}' cannot be parsed to a version number. The expected format (unless this configuration has been overridden) is a semantic version. eg. 1.3.0 or 2.0.4.rc1"

  pact_broker:
    errors:
      validation:
        blank: "cannot be blank."
        attribute_missing: "Missing required attribute '%{attribute}'"
        invalid_http_method: "Invalid HTTP method '%{method}'"
        invalid_url: "Invalid URL '%{url}'. Expected format: http://example.org"
        pact_missing_pacticipant_name: "was not found at expected path $.%{pacticipant}.name in the submitted pact file."
        consumer_version_number_missing: "Please specify the consumer version number by setting the X-Pact-Consumer-Version header."
        consumer_version_number_header_invalid: "X-Pact-Consumer-Version '%{consumer_version_number}' cannot be parsed to a version number. The expected format (unless this configuration has been overridden) is a semantic version. eg. 1.3.0 or 2.0.4.rc1"
        consumer_version_number_invalid: "Consumer version number '%{consumer_version_number}' cannot be parsed to a version number. The expected format (unless this configuration has been overridden) is a semantic version. eg. 1.3.0 or 2.0.4.rc1"
        pacticipant_name_mismatch: "in pact ('%{name_in_pact}') does not match %{pacticipant} name in path ('%{name}')."
        connection_encoding_not_utf8: "The Sequel connection encoding (%{encoding}) is strongly recommended to be \"utf8\". If you need to set it to %{encoding} for some particular reason, then disable this check by setting config.validate_database_connection_config = false"
      duplicate_pacticipant: |
        This is the first time a pact has been published for "%{new_name}".
        The name "%{new_name}" is very similar to the following existing consumers/providers:
        %{existing_names}
        If you meant to specify one of the above names, please correct the pact configuration, and re-publish the pact.
        If the pact is intended to be for a new consumer or provider, please manually create "%{new_name}" using the following command, and then re-publish the pact:
        $ curl -v -XPOST -H "Content-Type: application/json" -d "{\"name\": \"%{new_name}\"}" %{create_pacticipant_url}
        If the pact broker requires authentication, include the '-u' flag with the proper credentials:
        $ curl -v -XPOST -u <username>:<password> -H "Content-Type: application/json" -d "{\"name\": \"%{new_name}\"}" %{create_pacticipant_url}
      "400":
        title: 400 Malformed Request
        message: The request was malformed and could not be processed.
      "404":
        title: 404 Not Found
        message: The requested document was not found on this server.
      "500":
        title: 500 Internal Server Error
        message: "The server encountered an error while processing this request: <pre>%{error}</pre>"
      "501":
        title: 501 Not Implemented
        message: "The server does not support the %{method} method."
      "503":
        title: 503 Service Unavailable
        message: The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
  # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
  datetime:
    distance_in_words:
      half_a_minute: "half a minute"
      less_than_x_seconds:
        one:   "less than 1 second"
        other: "less than %{count} seconds"
      x_seconds:
        one:   "1 second"
        other: "%{count} seconds"
      less_than_x_minutes:
        one:   "less than a minute"
        other: "less than %{count} minutes"
      x_minutes:
        one:   "1 minute"
        other: "%{count} minutes"
      about_x_hours:
        one:   "about 1 hour"
        other: "about %{count} hours"
      x_days:
        one:   "1 day"
        other: "%{count} days"
      about_x_months:
        one:   "about 1 month"
        other: "about %{count} months"
      x_months:
        one:   "1 month"
        other: "%{count} months"
      about_x_years:
        one:   "about 1 year"
        other: "about %{count} years"
      over_x_years:
        one:   "over 1 year"
        other: "over %{count} years"
      almost_x_years:
        one:   "almost 1 year"
        other: "almost %{count} years"