Changes

Jump to: navigation, search

Module:Convert/text

1,521 bytes added, 21:43, 1 February 2014
1 revision
The following lines were added (+) and removed (-):
--[[ Text used by Module:Convert, for en.wikipedia.org (English).-- Text used by Module:Convert, for en.wikipedia.org (English). -- This is a separate module to simplify translation for use on another wiki.This is a separate module to simplify translation for use on another wiki.Module:Convert responds to text parameters, and can display text.Nearly all that text is defined in:* Module:Convert/data (unit definitions)* Module:Convert/text (parameter and message definitions)]] cvt_format = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i>[[Help:Convert messages#%s|<span title="Convert: %s">Convert: %s</span>]]</i>]</sup>%s', cvt_format = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i>[[Help:Convert messages#%s|<span title="Convert: %s">convert: %s</span>]]</i>]</sup>%s', cvt_bad_num        = { 'Value "%s" must be a number'                , 'Invalid number'      , 'option',  'invalid_number'      }, cvt_bad_num        = { 'Value "%s" must be a number'                , 'invalid number'      , 'option',  'invalid_number'      }, cvt_big_prec      = { 'Precision "%s" is too large'                , 'Precision too large' , 'option',  'precision_too_large'  }, cvt_big_prec      = { 'Precision "%s" is too large'                , 'precision too large' , 'option',  'precision_too_large'  }, cvt_invalid_num    = { 'Number has overflowed'                      , 'Number overflow'    , 'option',  'number_overflow'      }, cvt_invalid_num    = { 'Number has overflowed'                      , 'number overflow'    , 'option',  'number_overflow'      }, cvt_no_num        = { 'Needs the number to be converted'          , 'Needs a number'      , 'option',  'needs_number'        }, cvt_no_num        = { 'Needs the number to be converted'          , 'needs a number'      , 'option',  'needs_number'        }, cvt_no_num2        = { 'Needs another number for a range'          , 'Needs another number', 'option',  'needs_another_number' }, cvt_no_num2        = { 'Needs another number for a range'          , 'needs another number', 'option',  'needs_another_number' }, cvt_bad_prec      = { 'Precision "%s" must be an integer'          , 'Invalid precision'  , 'option',  'invalid_precision'    }, cvt_bad_frac      = { 'frac "%s" must be an integer above 1'      , 'invalid fraction'    , 'option',  'invalid_fraction'    }, cvt_bad_sigfig    = { 'sigfig "%s" must be a positive integer'    , 'Invalid sigfig'      , 'option',  'invalid_sigfig'      }, cvt_bad_prec      = { 'Precision "%s" must be an integer'          , 'invalid precision'  , 'option',  'invalid_precision'    }, cvt_empty_option  = { 'Ignored empty option "%s"'                  , 'Empty option'        , 'option',  'empty_option'        }, cvt_bad_sigfig    = { 'sigfig "%s" must be a positive integer'    , 'invalid sigfig'      , 'option',  'invalid_sigfig'      }, cvt_no_spell      = { 'Spelling is not available'                  , 'Bug, ask for help'  , 'option',  'ask_for_help'        }, cvt_empty_option  = { 'Ignored empty option "%s"'                  , 'empty option'        , 'option',  'empty_option'        }, cvt_unknown_option = { 'Ignored invalid option "%s"'                , 'Invalid option'      , 'option',  'invalid_option'      }, cvt_no_spell      = { 'Spelling is not available'                  , 'bug, ask for help'  , 'option',  'ask_for_help'        }, cvt_bad_default    = { 'Unit "%s" has an invalid default'          , 'Bug, ask for help'  , 'unit'  ,  'ask_for_help'        }, cvt_unknown_option = { 'Ignored invalid option "%s"'                , 'invalid option'      , 'option',  'invalid_option'      }, cvt_bad_unit      = { 'Unit "%s" is invalid here'                  , 'Unit invalid here'  , 'unit'  ,  'unit_invalid_here'    }, cvt_bad_default    = { 'Unit "%s" has an invalid default'          , 'bug, ask for help'  , 'unit'  ,  'ask_for_help'        }, cvt_no_default    = { 'Unit "%s" has no default output unit'      , 'Bug, ask for help'  , 'unit'  ,  'ask_for_help'        }, cvt_bad_unit      = { 'Unit "%s" is invalid here'                  , 'unit invalid here'  , 'unit'  ,  'unit_invalid_here'    }, cvt_no_unit        = { 'Needs name of unit'                        , 'Needs unit name'    , 'unit'  ,  'needs_unit_name'      }, cvt_no_default    = { 'Unit "%s" has no default output unit'      , 'bug, ask for help'  , 'unit'  ,  'ask_for_help'        }, cvt_unknown        = { 'Unit name "%s" is not known'                , 'Unknown unit'        , 'unit'  ,  'unknown_unit'        }, cvt_no_unit        = { 'Needs name of unit'                        , 'needs unit name'    , 'unit'  ,  'needs_unit_name'      }, cvt_should_be      = { '%s'                                        , 'Ambiguous unit'      , 'unit'  ,  'ambiguous_unit', regex = unitcode_regex, replace = unitcode_replace }, cvt_unknown        = { 'Unit name "%s" is not known'                , 'unknown unit'        , 'unit'  ,  'unknown_unit'        }, cvt_mismatch      = { 'Cannot convert "%s" to "%s"'                , 'Unit mismatch'      , 'unit'  ,  'unit_mismatch'        }, cvt_should_be      = { '%s'                                        , 'ambiguous unit'      , 'unit'  ,  'ambiguous_unit', regex = unitcode_regex, replace = unitcode_replace }, cvt_bug_convert    = { 'Bug: Cannot convert between specified units', 'Bug, ask for help'  , 'unit'  ,  'ask_for_help'        }, cvt_mismatch      = { 'Cannot convert "%s" to "%s"'                , 'unit mismatch'      , 'unit'  ,  'unit_mismatch'        }, cvt_lookup        = { 'Unit "%s" is incorrectly defined'          , 'Bug, ask for help'  , 'unit'  ,  'ask_for_help'        }, cvt_bug_convert    = { 'Bug: Cannot convert between specified units', 'bug, ask for help'  , 'unit'  ,  'ask_for_help'        }, cvt_lookup        = { 'Unit "%s" is incorrectly defined'          , 'bug, ask for help'  , 'unit'  ,  'ask_for_help'        }, ["+/-"]    = { off = "&nbsp;±&nbsp;", on = "&nbsp;±&nbsp;", adj = "&nbsp;±&nbsp;" }, ["+/-"]    = { off = "&nbsp;±&nbsp;", on = "&nbsp;±&nbsp;", adj = "&nbsp;±&nbsp;", is_range_change = true }, ["and(-)"] = "and", ["and(-)"]   = "and", ["&"]       = "and", ["&"]       = "and", ["–"]       = "-", ["–"]       = "-", ["&ndash;"] = "-", ["&ndash;"] = "-", ["to-"]     = "to(-)", ["to-"]     = "to(-)", ["×"]       = "x", ["×"]       = "x", ["±"]       = "+/-", ["&times;"]  = "x", ["±"]       = "+/-", ["&plusmn;"] = "+/-",} -- The following "words" are accepted to make a simple range, for example, {{convert|1-2|ft}}.-- Words must be in correct order for searching, for example, '-' after '+/-' and 'x' after 'xx'.local range_words = { '+/-', 'to(-)', '-', 'xx', 'x', '*', 'by', 'to', 'or' } local ranges = { types = range_types, aliases = range_aliases, words = range_words, ["adj"] = "adj", ["adj"] = "adj", ["comma"] = "comma", ["comma"] = "comma", ["frac"] = "frac", ["lang"] = "lang", ["lang"] = "lang", ["lk"]   = "lk", ["lk"] = "lk", ["round"] = "round", ["h"] = "on",                  -- abbr=on + use "h" for hand unit (default) ["hh"] = "opt_hand_hh",        -- abbr=on + use "hh" for hand unit ["ri0"] = "ri0",                -- round input with precision = 0 }, ["comma"] = { ["5"] = "opt_comma5",          -- only use numsep grouping if 5 or more digits ["gaps"] = "opt_gaps",          -- use gaps, not numsep, to separate groups of digits ["gaps5"] = "opt_gaps, opt_comma5",  -- opt_gaps + opt_comma5 }, ["debug"] = { ["yes"] = "opt_sortable_debug", -- make the normally hidden sort key visible ["unit or text"] = "opt_input_unit_only, opt_ignore_error", -- display input symbol/name, or given unit code if not known ["near"] = { -- frac=x is handled as a special case: x must be an integer (possibly in local language) = 1 or more ["5"] = "opt_round5",          -- round output value to nearest 5 }, ["order"] = { ["flip"] = "opt_flip",          -- reverse order of input/output }, ["comma"] = { ["5"] = "opt_comma5",          -- only use numsep grouping if 5 or more digits ["gaps"] = "opt_gaps",          -- use gaps, not numsep, to separate groups of digits ["gaps5"] = "opt_gaps, opt_comma5",  -- opt_gaps + opt_comma5 }, ["debug"] = { ["yes"] = "opt_sortable_debug", -- make the normally hidden sort key visible }, ["off"] = "",                   -- ignored (off is the default) ["off"] = "off",               -- do not link: same as default except for hand unit }, ["near"] = { ["5"] = "opt_round5",          -- round output value to nearest 5 }, ["order"] = { ["flip"] = "opt_flip",          -- reverse order of input/output }, ["round"] = { ["5"] = "opt_round5",          -- round output value to nearest 5 ["25"] = "opt_round25",        -- round output value to nearest 25 ["each"] = "opt_round_each",    -- using default precision in a range, round each output separately (default uses highest precision of each item in range) ["on"] = "opt_sortable",       -- output numeric hidden sort field for use in a sortable table ["in"] = "opt_sortable_in",     -- output numeric hidden sort field for use in a sortable table, based on input ["on"] = "opt_sortable_in",    -- same ["out"] = "opt_sortable_out",  -- same, based on output ["spell"] = {                      -- only English spelling is supported; only for input; not scientific notation; only some fractions ["spell"] = {                      -- only English spelling is supported; not scientific notation; only some fractions ["In"] = "opt_spell_in, opt_spell_upper", -- spell input value in words with first letter uppercase ["In"] = "opt_spell_in, opt_spell_upper",               -- spell input value in words with first letter uppercase ["on"] = "opt_spell_in, opt_spell_out",                  -- spell input and output values in words ["On"] = "opt_spell_in, opt_spell_out, opt_spell_upper", -- same, with first letter of first word in result uppercase currency = { ['$'] = true, ['£'] = true }, range_aliases = range_aliases, ranges = ranges, range_types = range_types,