Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
2.4 KB
Raw Blame
---
en:
  activerecord:
    attributes:
      rule:
        new_rule_group_name: "New group"
        rule_group: "Group"
    errors:
      models:
        rule:
          min_actions: "must have at least one action"
          duplicate_actions: "Rule cannot have duplicate actions %{types}"
          nested_conditions: "Compound conditions cannot be nested"
          split_not_alone: "A split rule cannot have other actions"
        rule/action:
          attributes:
            value:
              invalid_config: "must be a valid split configuration"
              invalid_split_count: "must have between %{min} and %{max} splits"
              split_name_required: "split #%{index} is missing a name"
              split_name_too_long: "split #%{index} name is too long (max 255 characters)"
              split_name_invalid: "split #%{index} name contains invalid characters"
              split_type_invalid: "split #%{index} type must be fixed or percentage"
              split_share_invalid: "split #%{index} share must be a positive number"
              split_category_invalid: "split #%{index} category does not belong to this family"
              split_merchant_invalid: "split #%{index} merchant does not belong to this family"
              split_tags_invalid: "split #%{index} has a tag that does not belong to this family"
              percentages_must_total_100: "percentages must add up to 100 (got %{total})"
              fixed_requires_exact_amount_condition: "fixed-amount splits require a rule condition that matches an exact transaction amount (e.g. Amount = 42.00), otherwise the shares can't reliably sum to every matching transaction's total"
              fixed_shares_must_equal_condition_amount: "split shares must add up to %{amount}, the exact amount required by this rule's condition"

        rule/condition:
          attributes:
            value:
              regex_invalid: "is not a valid regular expression"
              regex_too_complex: "is too complex to run safely"
              regex_too_long: "is too long (maximum is %{count} characters)"
              regex_backreference: "cannot use back-references (\\1 to \\9)"
  rule:
    actions:
      set_transaction_merchant:
        not_accessible: "Merchant on an account you can't access"
        unassigned: "%{name} (no longer assigned)"
        unavailable: "Merchant no longer available"
    conditions:
      unsupported_label: "Unsupported (%{type})"