1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
cryptogopher 613c26728c Removed old (Ripper.lex based) formula validation code
Muted multiple 'disallowed' messages for keywords
Removed unnecessary .to_d call in formula computation
2019-11-11 00:01:31 +01:00

99 lines
3.4 KiB
YAML

# English strings go here for Rails i18n
en:
body_trackers_menu_caption: 'Body trackers'
field_order: 'Order'
field_action: 'Action'
field_reference: 'Reference'
field_group: 'Group'
field_source: 'Data source'
field_source_ident: 'Source identifier'
field_nutrients: 'Nutrients:'
field_domain: 'Domain'
field_parent_quantity: 'Parent'
field_formula: 'Formula'
field_primary: 'Primary'
field_shortname: 'Short name'
button_primary: 'Primary'
activerecord:
errors:
models:
ingredient:
attributes:
nutrients:
duplicated_quantity: 'you can define each quantity only once per ingredient'
quantity:
attributes:
parent:
parent_domain_mismatch: 'parent quantity has to be in the same domain'
formula:
invalid_formula: 'interpretation failed: %{msg}'
unparsable_formula: 'cannot be parsed'
disallowed_token: 'includes disallowed token "%{token}" (of type: %{ttype})'
disallowed_keyword: 'includes disallowed keyword: "%{keyword}"'
disallowed_function: 'includes disallowed function call: %{function}'
unknown_quantity: 'contains undefined quantity: %{quantity}'
body_trackers:
index:
heading: 'Summary'
sidebar:
heading_body_trackers: 'Body trackers'
heading_diet: 'Diet'
heading_common: 'Common'
link_summary: 'Summary'
link_ingredients: 'Ingredients'
link_nutrients: 'Nutrients'
link_sources: 'Data sources'
link_quantities: 'Quantities'
link_units: 'Units'
link_defaults: 'Load defaults'
confirm_defaults: 'This will load default quantities and units. Continue?'
ingredients:
contextual:
heading_import_ingredients: 'Import'
heading_new_ingredient: 'New ingredient'
import:
heading_import_ingredients: 'Import'
label_import_select_csv_file: 'Select CSV file'
import_hints: 'CSV file has to include header with column names. Recognized column
names are:
(1) ingredient attributes, case sensitive:
"Name" - required, "Reference" - defaults to 100[g], "Group" - defaults to "other",
"Source" - optional, "SourceIdent" - optional,
(2) quantities'' names with unit short name in square brackets.
Sample header: "Name,Reference,Group,Proteins[g],Fats[g],Carbohydrates[g]".
Sample data row: "Brussels,100[g],other,3.4,300[mg],9".
Unit given in data row has precedence over that specified in header.'
form:
heading_new_ingredient: 'New ingredient'
button_add_nutrient: 'Add nutrient'
button_delete_nutrient: 'Delete'
groups:
other: 'other'
meat: 'meat'
index:
heading: 'Ingredients'
heading_nutrient_view: 'Nutrient view'
nutrients:
heading: 'Nutrients'
heading_ingredient_list: 'Ingredient list'
sources:
index:
heading: 'Data sources'
heading_new_source: 'New source'
quantities:
index:
heading: 'Quantities'
heading_new_quantity: 'New quantity'
form:
domains:
diet: 'diet'
measurement: 'measurement'
exercise: 'exercise'
null_parent: '- none -'
formula_placeholder: 'provide if value of quantity has to be computed in terms of
other quantities'
units:
index:
heading: 'Units'
heading_new_unit: 'New unit'