@coolon/i18n-resource-generator 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/build/main/lib/arguments.class.d.ts +6 -8
  3. package/build/main/lib/arguments.class.js +9 -2
  4. package/build/main/lib/ast/abstractContainerElement.d.ts +4 -4
  5. package/build/main/lib/ast/abstractContainerElement.js +3 -2
  6. package/build/main/lib/ast/abstractElement.d.ts +2 -2
  7. package/build/main/lib/ast/abstractElement.js +1 -1
  8. package/build/main/lib/ast/containerElement.class.d.ts +11 -10
  9. package/build/main/lib/ast/jsonModule.class.d.ts +8 -0
  10. package/build/main/lib/ast/jsonModule.class.js +21 -0
  11. package/build/main/lib/ast/namespaceDef.class.d.ts +1 -0
  12. package/build/main/lib/ast/namespaceDef.class.js +8 -1
  13. package/build/main/lib/ast/objectDef.class.d.ts +9 -8
  14. package/build/main/lib/ast/objectDef.class.js +11 -7
  15. package/build/main/lib/ast/statementDef.class.d.ts +7 -0
  16. package/build/main/lib/ast/statementDef.class.js +14 -0
  17. package/build/main/lib/bin/cli.js +21 -17
  18. package/build/main/lib/customTypeArrayNode.class.d.ts +6 -6
  19. package/build/main/lib/customTypeArrayNode.class.js +8 -11
  20. package/build/main/lib/customTypeNode.class.d.ts +6 -20
  21. package/build/main/lib/customTypeNode.class.js +18 -20
  22. package/build/main/lib/enumNode.class.d.ts +6 -6
  23. package/build/main/lib/enumNode.class.js +28 -45
  24. package/build/main/lib/i18nGenerator.d.ts +2 -10
  25. package/build/main/lib/i18nGenerator.js +39 -78
  26. package/build/main/lib/i18nNode.class.d.ts +10 -12
  27. package/build/main/lib/i18nNode.class.js +30 -44
  28. package/build/main/lib/namespaceNode.class.d.ts +5 -4
  29. package/build/main/lib/namespaceNode.class.js +4 -4
  30. package/build/main/lib/nodeName.d.ts +13 -0
  31. package/build/main/lib/nodeName.js +90 -0
  32. package/build/main/lib/rootNode.class.d.ts +10 -1
  33. package/build/main/lib/rootNode.class.js +42 -7
  34. package/build/main/lib/textArrayNode.class.d.ts +4 -3
  35. package/build/main/lib/textArrayNode.class.js +6 -5
  36. package/build/main/lib/textNode.class.d.ts +4 -2
  37. package/build/main/lib/textNode.class.js +9 -13
  38. package/build/main/lib/valueNode.class.d.ts +5 -4
  39. package/build/main/lib/valueNode.class.js +5 -5
  40. package/build/main/lib/writer.class.js +2 -2
  41. package/build/module/lib/arguments.class.d.ts +6 -8
  42. package/build/module/lib/arguments.class.js +10 -3
  43. package/build/module/lib/ast/abstractContainerElement.d.ts +4 -4
  44. package/build/module/lib/ast/abstractContainerElement.js +4 -3
  45. package/build/module/lib/ast/abstractElement.d.ts +2 -2
  46. package/build/module/lib/ast/abstractElement.js +1 -1
  47. package/build/module/lib/ast/containerElement.class.d.ts +11 -10
  48. package/build/module/lib/ast/jsonModule.class.d.ts +8 -0
  49. package/build/module/lib/ast/jsonModule.class.js +18 -0
  50. package/build/module/lib/ast/namespaceDef.class.d.ts +1 -0
  51. package/build/module/lib/ast/namespaceDef.class.js +8 -1
  52. package/build/module/lib/ast/objectDef.class.d.ts +9 -8
  53. package/build/module/lib/ast/objectDef.class.js +12 -8
  54. package/build/module/lib/ast/statementDef.class.d.ts +7 -0
  55. package/build/module/lib/ast/statementDef.class.js +11 -0
  56. package/build/module/lib/bin/cli.js +21 -17
  57. package/build/module/lib/customTypeArrayNode.class.d.ts +6 -6
  58. package/build/module/lib/customTypeArrayNode.class.js +9 -12
  59. package/build/module/lib/customTypeNode.class.d.ts +6 -20
  60. package/build/module/lib/customTypeNode.class.js +18 -20
  61. package/build/module/lib/enumNode.class.d.ts +6 -6
  62. package/build/module/lib/enumNode.class.js +30 -47
  63. package/build/module/lib/i18nGenerator.d.ts +2 -10
  64. package/build/module/lib/i18nGenerator.js +49 -87
  65. package/build/module/lib/i18nNode.class.d.ts +10 -12
  66. package/build/module/lib/i18nNode.class.js +30 -41
  67. package/build/module/lib/namespaceNode.class.d.ts +5 -4
  68. package/build/module/lib/namespaceNode.class.js +5 -5
  69. package/build/module/lib/nodeName.d.ts +13 -0
  70. package/build/module/lib/nodeName.js +77 -0
  71. package/build/module/lib/rootNode.class.d.ts +10 -1
  72. package/build/module/lib/rootNode.class.js +42 -7
  73. package/build/module/lib/textArrayNode.class.d.ts +4 -3
  74. package/build/module/lib/textArrayNode.class.js +7 -6
  75. package/build/module/lib/textNode.class.d.ts +4 -2
  76. package/build/module/lib/textNode.class.js +9 -13
  77. package/build/module/lib/valueNode.class.d.ts +5 -4
  78. package/build/module/lib/valueNode.class.js +5 -5
  79. package/build/module/lib/writer.class.js +2 -2
  80. package/fixtures/config.json +1 -0
  81. package/fixtures/ui.alarms.en.yml +108 -0
  82. package/fixtures/ui.common.en.yml +23 -0
  83. package/fixtures/ui.date_time.en.yml +94 -0
  84. package/fixtures/ui.devices.en.yml +288 -0
  85. package/fixtures/ui.lux.en.yml +44 -0
  86. package/fixtures/ui.notification.en.yml +238 -0
  87. package/fixtures/ui.places.en.yml +104 -0
  88. package/fixtures/ui.reports.en.yml +138 -0
  89. package/fixtures/ui.scene.en.yml +11 -0
  90. package/fixtures/ui.schedule.en.yml +7 -0
  91. package/fixtures/ui.search.en.yml +73 -0
  92. package/fixtures/ui.validation.en.yml +63 -0
  93. package/fixtures/ui.zones.en.yml +121 -0
  94. package/package.json +7 -4
  95. package/fixtures/test.yml +0 -20
@@ -0,0 +1,238 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+
23
+ # GRR: http://stackoverflow.com/questions/9642901/how-to-change-case-of-interpolated-variables-in-rails-locale-file
24
+
25
+
26
+ alerts(Alert[]):
27
+ unknown_error:
28
+ content:
29
+ - "Yikes, this is a bit embarrassing, we've had an error condition we weren't expecting."
30
+ - "It's with great shame an loathing that we can only suggest reloading the page to see if that helps..."
31
+ ok: "Ok, try reloading it..."
32
+ no_response:
33
+ content:
34
+ - "Couldn't connect to server"
35
+ ok: "Ok"
36
+ unexpected_validation_error:
37
+ content:
38
+ - "Doh, this is a bit embarrassing, we've had a validation error condition we weren't expecting."
39
+ ok: "Yeah, ok. Bugger."
40
+
41
+ not_authorized:
42
+ content:
43
+ - "It seems you're not authorized to perform this operation."
44
+ - "You need to get the administrator to update your account permissions."
45
+ ok: "Bugger"
46
+
47
+ authentication_failed_bug:
48
+ content:
49
+ - "Doh, you've come across an elusive bug we've been trying to track down."
50
+ - "Until we fix it permanently you should be able to reload."
51
+ - "If that doesn't fix it then you've found another bug... bugger."
52
+ ok: "Ok, Lets reload"
53
+
54
+ zone_missing_race_condition:
55
+ content:
56
+ - "Someone else has deleted this zone while you were doing your thing."
57
+ ok: "Ok, Got it"
58
+
59
+ area_missing_race_condition:
60
+ content:
61
+ - "Someone else has deleted this area while you were doing your thing."
62
+ ok: "Ok, Got it"
63
+
64
+ room_missing_race_condition:
65
+ content:
66
+ - "Someone else has deleted this room while you were doing your thing."
67
+ ok: "Ok, Got it"
68
+
69
+ no_suitable_areas:
70
+ content:
71
+ - "There no areas configured yet. You'll need to create at least one."
72
+ ok: "Ok, Got it"
73
+
74
+ area_already_has_devices:
75
+ content:
76
+ - "This area already has devices. Only areas without devices can have child areas."
77
+ ok: "Ok, Got it"
78
+
79
+ device_missing_race_condition:
80
+ content:
81
+ - "This device was deleted while you were doing your thing."
82
+ ok: "Ok, Got it"
83
+
84
+ device_already_assigned:
85
+ content:
86
+ - "This device has already been assigned to an area."
87
+ ok: "Ok, Got it"
88
+
89
+ last_zone_readonly:
90
+ content:
91
+ - "This is the last zone and can't be deleted"
92
+ ok: "Ok, Got it"
93
+
94
+ race_condition:
95
+ content:
96
+ - "Someone else has made some changes while you were doing your thing."
97
+ - "We've loaded the latest version of things but you'll need to make those changes again."
98
+ ok: "Got it"
99
+
100
+ resource_not_found:
101
+ content:
102
+ - "Someone else has deleted this while you were doing your thing."
103
+ ok: "Got it"
104
+
105
+ parent_resource_not_found:
106
+ content:
107
+ - "Someone else has deleted some settings while you were doing your thing."
108
+ ok: "Got it"
109
+
110
+ facility_controller_not_synchronized:
111
+ content:
112
+ - "It seems some of our hard working minions are still applying some recent changes to the network."
113
+ - "This might take a minute or two, so we need to wait a bit and then try again."
114
+ ok: "Ok, Got it"
115
+ area_calibration_session_exists:
116
+
117
+ content:
118
+ - "It seems someone else is already calibrating this area"
119
+ ok: "Got it"
120
+
121
+ scene_in_use_as_default:
122
+ content:
123
+ - "This scene is currently used as the default scene for this zone's schedule."
124
+ - "You'll need to change the default scene in the schedule before you can delete it."
125
+ ok: "Ok, got it"
126
+ scene_in_use:
127
+ content:
128
+ - "This scene is used in the schedule for this zone."
129
+ - "You'll need to remove it from the schedule before you can delete it."
130
+ ok: "Ok, got it"
131
+
132
+ users_cant_delete_themselves:
133
+ content:
134
+ - "Oops! It looks like you tried to delete yourself."
135
+ - "If you want to remove yourself from the system you'll need to get an administrator to do it for you."
136
+ ok: "Ok, got it"
137
+
138
+ gateway_error:
139
+ content:
140
+ - "We've had a communication problem with the gateway managing this device."
141
+ - "Check out the alarms for more information"
142
+ ok: "Ok, got it"
143
+
144
+ gateway_not_responding:
145
+ content:
146
+ - "Hmm, we knocked but no one answered. So it appears there's no gateway at this address"
147
+ ok: "Ok, got it"
148
+
149
+ gateway_response_invalid:
150
+ content:
151
+ - "The gateway has responded with some thing that makes no sense so it's likely that it's faulty or has become confused"
152
+ - "You could try rebooting it and see if that fixes it"
153
+ ok: "Ok, got it"
154
+ gateway_address_in_use:
155
+ content:
156
+ - "It looks a gateway with this address has already been added to the system"
157
+ ok: "Ok, got it"
158
+ gateway_already_commissioned:
159
+ content:
160
+ - "This gateway has already been commissioned by someone else"
161
+ ok: "Ok, got it"
162
+ gateway_discovery_session_already_exists:
163
+ content:
164
+ - "A gateway scan is already in progress"
165
+ - "You'll need to wait until it's finished and try again"
166
+ ok: "Ok, got it"
167
+
168
+ device_unreachable:
169
+ content:
170
+ - "We were unable to make contact with the device."
171
+ ok: "Ok, Got it"
172
+ identify_not_supported:
173
+ content:
174
+ - "This devices doesn't seem to support identification"
175
+ ok: "Ok, Got it"
176
+
177
+ identify_session_in_progress:
178
+ content:
179
+ - "Someone else is currently searching for devices."
180
+ - "You'll need to wait until they're finished before you can try again."
181
+ ok: "Ok, Got it"
182
+
183
+ not_implemented:
184
+ content:
185
+ - "Sorry, we haven't implemented this yet."
186
+ ok: "Ok, Bugger"
187
+
188
+ discovery_session_in_progress:
189
+ content:
190
+ - "There's already a session in progress"
191
+ ok: "Ok"
192
+
193
+
194
+ confirm(Confirm[]):
195
+ delete_day_type:
196
+ content:
197
+ - "{name} is still in use, would you still like to delete it?"
198
+ - "This will remove {name} from today onwards."
199
+ ok: "Yes, Delete {name}"
200
+ cancel: "Cancel"
201
+
202
+ invalidate_calibration:
203
+ title: "Confirm Calibration Changes"
204
+ content:
205
+ - "This change will result in incorrect light levels in {name} until you recalibrate."
206
+ - "Do you want to continue?"
207
+ ok: "Yes, Continue"
208
+ cancel: "Cancel"
209
+
210
+ remove_calibration:
211
+ title: "Confirm Calibration Changes"
212
+ content:
213
+ - "This change will remove the calibration from {name} and require all levels to be manually set using percentages rather than lux levels."
214
+ - "Do you want to continue?"
215
+ ok: "Yes, Continue"
216
+ cancel: "Cancel"
217
+
218
+ restart_calibration_session:
219
+ content:
220
+ - "We've released control of the area for now."
221
+ - "Click Resume to pick up where you left off."
222
+ ok: "Resume"
223
+ cancel: "Cancel"
224
+
225
+
226
+ toasts:
227
+ saved: "Saved"
228
+ added_named: "Added {name}"
229
+ saved_named: "Saved {name}"
230
+ deleted_named: "Deleted {name}"
231
+ added_area_to_parent: "Added {name} to {parent}"
232
+ added_device_to_area: "Added {physicalId} to {areaName}"
233
+ updated_device_in_area: "Updated settings for {physicalId} in {areaName}"
234
+ removed_device_from_area: "Removed {physicalId} from {areaName}"
235
+ gateway_added: "Gateway added"
236
+ gateway_commissioned: "Gateway {gatewayId} is now commissioned"
237
+ connection_restored: "Connection restored, you're good to go"
238
+
@@ -0,0 +1,104 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+
23
+ # GRR: http://stackoverflow.com/questions/9642901/how-to-change-case-of-interpolated-variables-in-rails-locale-file
24
+
25
+ ui:
26
+ places(Enum):
27
+ login:
28
+ title: 'Login'
29
+ nav_icon: ''
30
+ dashboard:
31
+ title: 'Dashboard'
32
+ nav_icon: 'fa-home'
33
+ live_view:
34
+ title: 'Zones & Rooms'
35
+ nav_icon: 'fa-sitemap'
36
+ alarms:
37
+ title: "Alarms"
38
+ nav_icon: 'fa-bell'
39
+ reports:
40
+ title: 'Reports'
41
+ nav_icon: 'fa-bar-chart'
42
+ reports_energy_usage:
43
+ title: "Energy Usage"
44
+ nav_icon: 'fa-bar-chart'
45
+ reports_energy_usage_charts:
46
+ title: 'Charts'
47
+ nav_icon: ''
48
+ reports_energy_usage_temporal:
49
+ title: 'Usage Patterns Over Time'
50
+ nav_icon: ''
51
+ reports_occupancy:
52
+ title: "Occupancy"
53
+ nav_icon: 'fa-male'
54
+ reports_devices:
55
+ title: "Devices"
56
+ nav_icon: 'fa-lightbulb-o'
57
+ schedule:
58
+ title: 'Schedule'
59
+ nav_icon: 'fa-calendar'
60
+ scenes:
61
+ title: 'Scenes'
62
+ nav_icon: 'fa-moon-o'
63
+ zones:
64
+ title: "Zones & Rooms"
65
+ nav_icon: 'fa-sitemap'
66
+ configuration:
67
+ title: 'Configure'
68
+ nav_icon: 'fa-wrench'
69
+ system:
70
+ title: 'System'
71
+ nav_icon: 'fa-cog'
72
+ system_devices:
73
+ title: "Devices"
74
+ nav_icon: 'fa-lightbulb-o'
75
+ system_lighting_networks:
76
+ title: 'Lighting Networks'
77
+ nav_icon: 'fa-rss'
78
+ system_lighting_networks_zigbee:
79
+ title: 'Zigbee'
80
+ nav_icon: ''
81
+ system_lighting_networks_dali:
82
+ title: 'Dali'
83
+ nav_icon: ''
84
+ system_software_updates:
85
+ title: 'Software Updates'
86
+ nav_icon: 'fa-upload'
87
+ system_floor_plans:
88
+ title: 'Floor Plans'
89
+ nav_icon: 'fa-map-marker'
90
+ system_software_updates_firmware:
91
+ title: 'Firmware Updates'
92
+ nav_icon: ''
93
+ system_software_updates_system:
94
+ title: 'System Updates'
95
+ nav_icon: ''
96
+ system_users:
97
+ title: 'Users'
98
+ nav_icon: 'fa-user'
99
+ system_control_panels:
100
+ title: 'Control Panels'
101
+ nav_icon: 'fa-tablet'
102
+ system_notifications:
103
+ title: 'Notifications'
104
+ nav_icon: 'fa-bell'
@@ -0,0 +1,138 @@
1
+ reports:
2
+
3
+ energy_usage:
4
+
5
+ chart_title:
6
+ name: '{reportType} for {areaName}'
7
+ all_zones: 'All Zones'
8
+ crumbs: 'In {crumbs}'
9
+ date_range: '{dayCount, plural, =1 {{start, date, full}} other {{start, date, full} – {end, date, full}}}'
10
+
11
+ report_type(Enum):
12
+ energy_usage:
13
+ value_prefix: ''
14
+ units: 'kWh'
15
+ title: 'Energy Usage'
16
+ energy_cost:
17
+ units: 'AUD'
18
+ value_prefix: '$'
19
+ title: 'Cost'
20
+ co2_emissions:
21
+ value_prefix: ''
22
+ units: 'kg'
23
+ title: 'CO2 Emissions'
24
+
25
+ chart:
26
+ resolution(Enum):
27
+ quarter_hour:
28
+ label: "15 Minutes"
29
+ date_range_label: For
30
+ hour:
31
+ label: "Hour"
32
+ date_range_label: For
33
+ day:
34
+ label: "Day"
35
+ date_range_label: For
36
+ week:
37
+ label: "Week"
38
+ date_range_label: For the weeks
39
+ month:
40
+ label: "Month"
41
+ date_range_label: For the months
42
+
43
+ compare_to(Enum):
44
+ daylight_harvesting_savings:
45
+ name: "Daylight Harvesting Savings"
46
+ occupancy_savings:
47
+ name: "Occupancy Savings"
48
+ previous_system_usage:
49
+ name: "Previous System Usage"
50
+
51
+ compare_to_custom:
52
+ same_period_last_year:
53
+ name: 'Same {period, select, week {Week} month {Month} other {Period}} Previous Year'
54
+ weekly_average:
55
+ name: '{period, select, over_twelve_weeks {Weekly Average (Over 12 Weeks)} other {Weekly Average} }'
56
+
57
+
58
+ series:
59
+ energy_usage:
60
+ name: "Energy Usage"
61
+ occupancy_savings:
62
+ name: "Occupancy Savings"
63
+ daylight_harvesting_savings:
64
+ name: "Daylight Harvesting Savings"
65
+ previous_system_usage:
66
+ name: "Previous System"
67
+ weekly_average:
68
+ name: '{period, select, over_twelve_weeks {Weekly Average (Over 12 Weeks)} other {Weekly Average} }'
69
+ same_period_last_year:
70
+ name: 'Same {period, select, week {Week} month {Month} other {Period}} Previous Year'
71
+
72
+ temporal:
73
+ resolution(Enum):
74
+ day:
75
+ label: "Day"
76
+ date_range_label: 'For'
77
+ y_axis_title: 'Hour of Day'
78
+ y_axis_label_format: "'{value}':00"
79
+ color_axis_format: "{valuePrefix}'{value}' {units}"
80
+
81
+ week:
82
+ label: "Week"
83
+ date_range_label: 'For'
84
+ y_axis_title: 'Day of Week'
85
+ y_axis_label_format: "'{value}'"
86
+ color_axis_format: "{valuePrefix}'{value}' {units}"
87
+
88
+ month:
89
+ label: "Month"
90
+ date_range_label: 'For'
91
+ y_axis_title: 'Day of Month'
92
+ y_axis_label_format: "'{value}'"
93
+ color_axis_format: "{valuePrefix}'{value}' {units}"
94
+
95
+ year:
96
+ label: "Year"
97
+ date_range_label: 'For'
98
+ y_axis_title: 'Month'
99
+ y_axis_label_format: "'{value}'"
100
+ color_axis_format: "{valuePrefix}'{value}' {units}"
101
+
102
+ series:
103
+ heat_map:
104
+ tooltip_header_format: "{report_title} '{point.key}'<br/>"
105
+ resolution(Enum):
106
+ day:
107
+ point_format: "'{point.category}' '{point.y:.0f}':00: <b>'{point.value}'</b>"
108
+ week:
109
+ point_format: "'{point.category}' '{point.key}' <b>'{point.value}'</b>"
110
+ month:
111
+ point_format: "'{point.category}' '{point.key}' <b>'{point.value}'</b>"
112
+ year:
113
+ point_format: "'{point.category}' '{point.key}' <b>'{point.value}'</b>"
114
+
115
+
116
+ metrics:
117
+ usage:
118
+ name: "Used"
119
+ total:
120
+ name: 'Total'
121
+ peak_fifteen_minutes:
122
+ name: 'Peak 15 Min'
123
+ attributes:
124
+ date_time:
125
+ name: 'Occurred On'
126
+ value_format: '%e %b %H:%M'
127
+ power:
128
+ name: 'Peak Power'
129
+ daily_average:
130
+ name: 'Daily Average'
131
+ savings:
132
+ name: "Saved"
133
+ daylight_harvesting:
134
+ name: 'Daylight Harvest'
135
+ occupancy:
136
+ name: 'Occupancy'
137
+ previous_system:
138
+ name: 'Previous System'
@@ -0,0 +1,11 @@
1
+ ui:
2
+ scene:
3
+ control_strategy:
4
+ control_mode: >
5
+ {mode, select,
6
+ always_on {Normally On}
7
+ always_off {Normally Off}
8
+ occupancy_detection { On when Occupied }
9
+ other {}
10
+ }
11
+
@@ -0,0 +1,7 @@
1
+ ui:
2
+ schedule:
3
+ default_scene_water_mark: "{name}"
4
+ time_slot_hint: "({name})"
5
+ time_slot_drag_over_ruler_hint: "(Drag over the ruler to snap)"
6
+ time_slot_temporary_override_hint: "Temporary Override"
7
+ active_scene_hint: "(Active Scene)"
@@ -0,0 +1,73 @@
1
+ search:
2
+
3
+ alerts(Alert[]):
4
+
5
+ session_timeout:
6
+ content:
7
+ - "Your session has timed out. Feel free to start another one."
8
+ ok: "Ok"
9
+
10
+ session_disappeared:
11
+ content:
12
+ - "Yikes, it seems our backend search monkeys have thrown in the towel and walked off the job."
13
+ - "We're as surprised about this as you and with great shame and loathing suggest reloading page."
14
+ ok: "Ok, got it"
15
+
16
+ session_already_exists:
17
+ content:
18
+ - "Bugger, it seems someone else is already performing a search and have used up all the searchy bits."
19
+ - "We'll need to wait until they're done before trying again."
20
+ ok: "Ok, got it"
21
+
22
+ devices_already_identifying:
23
+ content:
24
+ - "Bugger, it seems someone else has a device in an identifying state."
25
+ - "We'll need to wait until they're done before trying again."
26
+ ok: "Ok, got it"
27
+
28
+ unexpected_race_condition:
29
+ content:
30
+ - "Hmm, we've had an unexpected error occur. It's not you, it's us. You've found a bug."
31
+ ok: "Ok, sucks to be me"
32
+
33
+ unexpected_validation_error:
34
+ content:
35
+ - "Hmm, we've had an unexpected error occur. It's not you, it's us. You've found a bug."
36
+ ok: "Ok, sucks to be me"
37
+
38
+ device_in_use:
39
+ content:
40
+ - "Bugger, it seems someone else is already performing a with one of the devices so we can't use it."
41
+ - "We'll need to wait until they're done before trying again."
42
+ ok: "Ok, got it"
43
+
44
+ switch_search_in_progress:
45
+ content:
46
+ - "Bugger, it seems someone else is already searching for switches and have used up all the searchy bits."
47
+ - "We'll need to wait until they're done before trying again."
48
+ ok: "Ok, got it"
49
+
50
+ light_failed_to_identify_on_first_step:
51
+ content:
52
+ - "I appears the light your looking at was not included in the search."
53
+ ok: "Ok, got it"
54
+
55
+ light_not_in_search_scope:
56
+ content:
57
+ - "I appears the light your looking at was not included in the search."
58
+ ok: "Ok, got it"
59
+
60
+ light_not_in_search_scope_or_unreachable:
61
+ content:
62
+ - "I looks like the light is one of the unresponsive devices or was not included in the search."
63
+ - "You may want to check the the current alarms any information about the unresponsive devices."
64
+ ok: "Ok, got it"
65
+
66
+ lights_in_search_are_all_unreachable:
67
+ content:
68
+ - "None of the lights in the search are responding."
69
+ - "This is likely due to an issue with the gateways themselves or the network they're using."
70
+ - "You may want to check the the current alarms any information about the unresponsive devices."
71
+ ok: "Ok, got it"
72
+
73
+
@@ -0,0 +1,63 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+
23
+ # GRR: http://stackoverflow.com/questions/9642901/how-to-change-case-of-interpolated-variables-in-rails-locale-file
24
+
25
+
26
+ validation:
27
+ area_calibration_session:
28
+ light_sensor:
29
+ blank: "You need to select a light sensor to use"
30
+
31
+ add_gateways:
32
+ cidr_range:
33
+ blank: "You'll need give us CIDR address range or IP/netmask"
34
+ invalid: "Hmm, this doesn't appear to be a valid IP4 or IP6 address range or IP/netmask"
35
+ range_too_big: "This range contains more than 255 addresses. Please choose one that has 255 or less"
36
+ gateway_address:
37
+ blank: "You'll need give us an IP address (you can use IPv4 or IPv6)"
38
+ invalid: "Hmm, this doesn't appear to be a valid IP4 or IP6 address"
39
+ commission_zigbee_gatway:
40
+ networkChannel:
41
+ blank: "Please select a channel to use or select Auto if you're unsure"
42
+
43
+ control_panel_login:
44
+ areaId:
45
+ blank: "You'll need to select a zone for this device to control"
46
+ location:
47
+ blank: "You'll need to enter a location for this device. e.g. Back door"
48
+ authUsername:
49
+ blank: "You'll need to give us a username"
50
+ authPassword:
51
+ blank: "You'll need to give us a password"
52
+ invalidUsernameOrPassword: "Invalid username or password"
53
+
54
+
55
+ device:
56
+ nominal_power_rating:
57
+ negative: "The nominal power rating can't be a negative number"
58
+
59
+ device_configuration:
60
+ area:
61
+ missing: "Please specify a room"
62
+
63
+