Module: Enolib::Locales::En

Defined in:
lib/enolib/locales/en.rb

Constant Summary collapse

CONTENT_HEADER =
'Content'
EXPECTED_DOCUMENT =
'The document was expected.'
EXPECTED_EMPTY =
'An empty element was expected.'
EXPECTED_FIELD =
'A field was expected.'
EXPECTED_FIELDS =
'Only fields were expected.'
EXPECTED_FIELDSET =
'A fieldset was expected.'
EXPECTED_FIELDSET_ENTRY =
'A fieldset entry was expected.'
EXPECTED_FIELDSETS =
'Only fieldsets were expected.'
EXPECTED_LIST =
'A list was expected.'
EXPECTED_LIST_ITEM =
'A list item was expected.'
EXPECTED_LISTS =
'Only lists were expected.'
EXPECTED_SECTION =
'A section was expected.'
EXPECTED_SECTIONS =
'Only sections were expected.'
EXPECTED_SINGLE_ELEMENT =
'Only a single element was expected.'
EXPECTED_SINGLE_EMPTY =
'Only a single empty element was expected.'
EXPECTED_SINGLE_FIELD =
'Only a single field was expected.'
EXPECTED_SINGLE_FIELDSET =
'Only a single fieldset was expected.'
EXPECTED_SINGLE_FIELDSET_ENTRY =
'Only a single fieldset entry was expected.'
EXPECTED_SINGLE_LIST =
'Only a single list was expected.'
EXPECTED_SINGLE_SECTION =
'Only a single section was expected.'
GUTTER_HEADER =
'Line'
MISSING_COMMENT =
'A required comment for this element is missing.'
MISSING_ELEMENT =
'A single element is required - it can have any key.'
MISSING_EMPTY =
'A single empty element is required - it can have any key.'
MISSING_FIELD =
'A single field is required - it can have any key.'
MISSING_FIELDSET =
'A single fieldset is required - it can have any key.'
MISSING_FIELDSET_ENTRY =
'A single fieldset entry is required - it can have any key.'
MISSING_LIST =
'A single list is required - it can have any key.'
MISSING_SECTION =
'A single section is required - it can have any key.'
UNEXPECTED_ELEMENT =
'This element was not expected, make sure it is at the right place in the document and that its key is not mis-typed.'

Class Method Summary collapse

Class Method Details

.comment_error(message) ⇒ Object



38
# File 'lib/enolib/locales/en.rb', line 38

def self.comment_error(message) "There is a problem with the comment of this element: #{message}" end

.cyclic_dependency(line, key) ⇒ Object



39
# File 'lib/enolib/locales/en.rb', line 39

def self.cyclic_dependency(line, key) "In line #{line} '#{key}' is copied into itself." end

.expected_empty_with_key(key) ⇒ Object



40
# File 'lib/enolib/locales/en.rb', line 40

def self.expected_empty_with_key(key) "An empty element with the key '#{key}' was expected." end

.expected_field_with_key(key) ⇒ Object



41
# File 'lib/enolib/locales/en.rb', line 41

def self.expected_field_with_key(key) "A field with the key '#{key}' was expected." end

.expected_fields_with_key(key) ⇒ Object



42
# File 'lib/enolib/locales/en.rb', line 42

def self.expected_fields_with_key(key) "Only fields with the key '#{key}' were expected." end

.expected_fieldset_with_key(key) ⇒ Object



43
# File 'lib/enolib/locales/en.rb', line 43

def self.expected_fieldset_with_key(key) "A fieldset with the key '#{key}' was expected." end

.expected_fieldsets_with_key(key) ⇒ Object



44
# File 'lib/enolib/locales/en.rb', line 44

def self.expected_fieldsets_with_key(key) "Only fieldsets with the key '#{key}' were expected." end

.expected_list_with_key(key) ⇒ Object



45
# File 'lib/enolib/locales/en.rb', line 45

def self.expected_list_with_key(key) "A list with the key '#{key}' was expected." end

.expected_lists_with_key(key) ⇒ Object



46
# File 'lib/enolib/locales/en.rb', line 46

def self.expected_lists_with_key(key) "Only lists with the key '#{key}' were expected." end

.expected_section_with_key(key) ⇒ Object



47
# File 'lib/enolib/locales/en.rb', line 47

def self.expected_section_with_key(key) "A section with the key '#{key}' was expected." end

.expected_sections_with_key(key) ⇒ Object



48
# File 'lib/enolib/locales/en.rb', line 48

def self.expected_sections_with_key(key) "Only sections with the key '#{key}' were expected." end

.expected_single_element_with_key(key) ⇒ Object



49
# File 'lib/enolib/locales/en.rb', line 49

def self.expected_single_element_with_key(key) "Only a single element with the key '#{key}' was expected." end

.expected_single_empty_with_key(key) ⇒ Object



50
# File 'lib/enolib/locales/en.rb', line 50

def self.expected_single_empty_with_key(key) "Only a single empty element with the key '#{key}' was expected." end

.expected_single_field_with_key(key) ⇒ Object



51
# File 'lib/enolib/locales/en.rb', line 51

def self.expected_single_field_with_key(key) "Only a single field with the key '#{key}' was expected." end

.expected_single_fieldset_entry_with_key(key) ⇒ Object



52
# File 'lib/enolib/locales/en.rb', line 52

def self.expected_single_fieldset_entry_with_key(key) "Only a single fieldset entry with the key '#{key}' was expected." end

.expected_single_fieldset_with_key(key) ⇒ Object



53
# File 'lib/enolib/locales/en.rb', line 53

def self.expected_single_fieldset_with_key(key) "Only a single fieldset with the key '#{key}' was expected." end

.expected_single_list_with_key(key) ⇒ Object



54
# File 'lib/enolib/locales/en.rb', line 54

def self.expected_single_list_with_key(key) "Only a single list with the key '#{key}' was expected." end

.expected_single_section_with_key(key) ⇒ Object



55
# File 'lib/enolib/locales/en.rb', line 55

def self.expected_single_section_with_key(key) "Only a single section with the key '#{key}' was expected." end

.invalid_line(line) ⇒ Object



56
# File 'lib/enolib/locales/en.rb', line 56

def self.invalid_line(line) "Line #{line} does not follow any specified pattern." end

.key_error(message) ⇒ Object



57
# File 'lib/enolib/locales/en.rb', line 57

def self.key_error(message) "There is a problem with the key of this element: #{message}" end

.missing_element_for_continuation(line) ⇒ Object



58
# File 'lib/enolib/locales/en.rb', line 58

def self.missing_element_for_continuation(line) "Line #{line} contains a line continuation without a continuable element being specified before." end

.missing_element_with_key(key) ⇒ Object



59
# File 'lib/enolib/locales/en.rb', line 59

def self.missing_element_with_key(key) "The element '#{key}' is missing - in case it has been specified look for typos and also check for correct capitalization." end

.missing_empty_with_key(key) ⇒ Object



60
# File 'lib/enolib/locales/en.rb', line 60

def self.missing_empty_with_key(key) "The empty element '#{key}' is missing - in case it has been specified look for typos and also check for correct capitalization." end

.missing_field_value(key) ⇒ Object



61
# File 'lib/enolib/locales/en.rb', line 61

def self.missing_field_value(key) "The field '#{key}' must contain a value." end

.missing_field_with_key(key) ⇒ Object



62
# File 'lib/enolib/locales/en.rb', line 62

def self.missing_field_with_key(key) "The field '#{key}' is missing - in case it has been specified look for typos and also check for correct capitalization." end

.missing_fieldset_entry_value(key) ⇒ Object



63
# File 'lib/enolib/locales/en.rb', line 63

def self.missing_fieldset_entry_value(key) "The fieldset entry '#{key}' must contain a value." end

.missing_fieldset_entry_with_key(key) ⇒ Object



64
# File 'lib/enolib/locales/en.rb', line 64

def self.missing_fieldset_entry_with_key(key) "The fieldset entry '#{key}' is missing - in case it has been specified look for typos and also check for correct capitalization." end

.missing_fieldset_for_fieldset_entry(line) ⇒ Object



65
# File 'lib/enolib/locales/en.rb', line 65

def self.missing_fieldset_for_fieldset_entry(line) "Line #{line} contains a fieldset entry without a fieldset being specified before." end

.missing_fieldset_with_key(key) ⇒ Object



66
# File 'lib/enolib/locales/en.rb', line 66

def self.missing_fieldset_with_key(key) "The fieldset '#{key}' is missing - in case it has been specified look for typos and also check for correct capitalization." end

.missing_list_for_list_item(line) ⇒ Object



67
# File 'lib/enolib/locales/en.rb', line 67

def self.missing_list_for_list_item(line) "Line #{line} contains a list item without a list being specified before." end

.missing_list_item_value(key) ⇒ Object



68
# File 'lib/enolib/locales/en.rb', line 68

def self.missing_list_item_value(key) "The list '#{key}' may not contain empty items." end

.missing_list_with_key(key) ⇒ Object



69
# File 'lib/enolib/locales/en.rb', line 69

def self.missing_list_with_key(key) "The list '#{key}' is missing - in case it has been specified look for typos and also check for correct capitalization." end

.missing_section_with_key(key) ⇒ Object



70
# File 'lib/enolib/locales/en.rb', line 70

def self.missing_section_with_key(key) "The section '#{key}' is missing - in case it has been specified look for typos and also check for correct capitalization." end

.non_section_element_not_found(line, key) ⇒ Object



71
# File 'lib/enolib/locales/en.rb', line 71

def self.non_section_element_not_found(line, key) "In line #{line} the non-section element '#{key}' should be copied, but it was not found." end

.section_hierarchy_layer_skip(line) ⇒ Object



72
# File 'lib/enolib/locales/en.rb', line 72

def self.section_hierarchy_layer_skip(line) "Line #{line} starts a section that is more than one level deeper than the current one." end

.section_not_found(line, key) ⇒ Object



73
# File 'lib/enolib/locales/en.rb', line 73

def self.section_not_found(line, key) "In line #{line} the section '#{key}' should be copied, but it was not found." end

.two_or_more_templates_found(key) ⇒ Object



74
# File 'lib/enolib/locales/en.rb', line 74

def self.two_or_more_templates_found(key) "There are at least two elements with the key '#{key}' that qualify for being copied here, it is not clear which to copy." end

.unterminated_escaped_key(line) ⇒ Object



75
# File 'lib/enolib/locales/en.rb', line 75

def self.unterminated_escaped_key(line) "In line #{line} the key of an element is escaped, but the escape sequence is not terminated until the end of the line." end

.unterminated_multiline_field(key, line) ⇒ Object



76
# File 'lib/enolib/locales/en.rb', line 76

def self.unterminated_multiline_field(key, line) "The multiline field '#{key}' starting in line #{line} is not terminated until the end of the document." end

.value_error(message) ⇒ Object



77
# File 'lib/enolib/locales/en.rb', line 77

def self.value_error(message) "There is a problem with the value of this element: #{message}" end