"Module:Convert/text": अवतरणों में अंतर

Content deleted Content added
insert a blank line so the next edit shows a clean diff
translations from User:Johnuniq/translate
पंक्ति 5:
local translation_table = {
group = 2, -- group numbers 3 digits, then 2 digits
per_word = 'perप्रति', -- for units like "liters per kilometer"
plural_suffix = '', -- disable plural unit names
from_en = {
पंक्ति 95:
local SIprefixes = {
-- The prefix field is what the prefix should be, if different from the prefix used.
2, -- SIprefixes[1] = maximum number of characters (as seen by mw.ustring.sub) in a prefix
 
['Y'] = { exponent = 24, name = 'yottaयोट्टा' , },
['Z'] = { exponent = 21, name = 'zettaज़ीट्टा' , },
['E'] = { exponent = 18, name = 'exaएक्जा' , },
['P'] = { exponent = 15, name = 'petaपेटा' , },
['T'] = { exponent = 12, name = 'teraटेरा' , },
['G'] = { exponent = 9, name = 'gigaगीगा' , },
['M'] = { exponent = 6, name = 'megaमेगा' , },
['k'] = { exponent = 3, name = 'kiloकिलो' , },
['h'] = { exponent = 2, name = 'hectoहेक्टो' , },
['da']= { exponent = 1, name = 'decaडेका' , name_us = 'deka' },
['d'] = { exponent = -1, name = 'deciडेसि' , },
['c'] = { exponent = -2, name = 'centiसेंटी' , },
['m'] = { exponent = -3, name = 'milliमिली' , },
['μ'] = { exponent = -6, name = 'microमाइक्रो', prefix = 'µ' }, -- key = 'GREEK SMALL LETTER MU' (U+03BC) utf-8 CE BC
['µ'] = { exponent = -6, name = 'microमाइक्रो', }, -- key = 'MICRO SIGN' (U+00B5) utf-8 C2 B5
['u'] = { exponent = -6, name = 'microमाइक्रो', prefix = 'µ' }, -- not an SI prefix, but allow for people typing this
['n'] = { exponent = -9, name = 'nanoनैनो' , },
['p'] = { exponent =-12, name = 'picoपीको' , },
['f'] = { exponent =-15, name = 'femtoफ़ैम्टो' , },
['a'] = { exponent =-18, name = 'attoएटो' , },
['z'] = { exponent =-21, name = 'zeptoज़ैप्टो' , },
['y'] = { exponent =-24, name = 'yoctoयोक्टो' , },
}
 
पंक्ति 141:
-- One of the following categories is included in the text of each message.
local all_categories = {
unit = "[[श्रेणी:कनवर्ट साँचे में त्रुटि]]",
unit = "[[Category:Convert invalid units]]",
option = "[[Categoryश्रेणी:Convertकनवर्ट invalidसाँचे optionsमें त्रुटि]]",
}
 
पंक्ति 162:
-- regex = gsub_regex,
-- replace = gsub_table,
-- } Mouseover title text Link text CatKey Anchor
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_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_num2 = { 'Needsपरिसर another(रेंज) number for a range'के लिये एक अन्य संख्या आवश्यक है' , 'needsअन्य संख्या anotherआवश्यक numberहै', 'option', 'needs_another_number' },
cvt_bad_frac = { 'frac "%s" must be an integer above 1' , 'अमान्य भिन्न' , 'invalid fraction' , 'option', 'invalid_fraction' },
cvt_bad_prec = { 'Precisionपरिशुद्धता "%s" mustपूर्णांक beहोना an integerचाहिये' , 'invalidअमान्य precisionपरिशुद्धता' , 'option', 'invalid_precision' },
cvt_bad_sigfig = { 'sigfig "%s" must be a positive integer' , 'invalid sigfig' , 'option', 'invalid_sigfig' },
cvt_empty_option = { 'Ignoredरिक्त empty optionप्राचल "%s" छोड़ा गया' , 'emptyरिक्त optionप्राचल' , 'option', 'empty_option' },
cvt_no_spell = { 'Spellingवर्तनी isउपलब्ध notनहीं availableहै' , 'bugत्रुटि, ask forसहायता helpमाँगें' , 'option', 'ask_for_help' },
cvt_unknown_option = { 'Ignoredअमान्य invalid optionप्राचल "%s" छोड़ा गया' , 'invalidअमान्य optionप्राचल' , 'option', 'invalid_option' },
cvt_bad_default = { 'Unitइकाई "%s" hasका anडिफ़ॉल्ट invalidअमान्य defaultहै' , '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_default = { 'Unit "%s" hasइकाई noकी defaultकोई outputडिफ़ॉल्ट unit'आउटपुट इकाई नहीं है' , 'bugत्रुटि, ask forसहायता helpमाँगें' , 'unit' , 'ask_for_help' },
cvt_no_unit = { 'Needsइकाई nameनाम ofकी unitआवश्यकता है' , 'needsइकाई unitनाम nameआवश्यक' , 'unit' , 'needs_unit_name' },
cvt_unknown = { 'Unit name "%s" isइकाई notनाम knownज्ञात नहीं है' , 'unknownअज्ञात unitइकाई' , 'unit' , 'unknown_unit' },
cvt_should_be = { '%s' , 'ambiguousसंदिग्धार्थ unitइकाई' , 'unit' , 'ambiguous_unit', regex = unitcode_regex, replace = unitcode_replace },
cvt_mismatch = { 'Cannot convert "%s" toको "%s"' में नहीं परिवर्तित किया जा सकता' , 'unitइकाई mismatchकुमेलन' , 'unit' , 'unit_mismatch' },
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' },
}
 
-- Text to join input value/unit with output value/unit.
local disp_joins = {
["or"] = { " orया " , "" },
["sqbr-sp"] = { " [" , "]" },
["sqbr-nbsp"] = { " [" , "]" },
पंक्ति 207:
["+"] = " + ",
[","] = ", ",
[", and"] = ", andऔर ",
[", or"] = ", orया ",
["by"] = " by × ",
["-"] = "–",
["to about"] = " toसे aboutलगभग ",
["and"] = { off = " andऔर ", on = " andऔर ", exception = true },
["and(-)"] = { off = " andऔर ", on = "–" },
["or"] = { off = " orया " , on = " orया " , exception = true },
["to"] = { off = " toसे " , on = " toसे " , exception = true },
["to(-)"] = { off = " toसे ", on = "–" },
["+/-"] = { off = " ± ", on = " ± ", adj = " ± ", is_range_change = true },
["x"] = { off = " by × ", on = " × ", is_range_x = true },
["xx"] = " × ",
["*"] = "×", -- use "*" to replace "x" in {{convert/2}} which is different from "x" in old {{convert}}
पंक्ति 233:
["±"] = "+/-",
["±"] = "+/-",
["और"] = "and",
["या"] = "or",
["से"] = "to",
}
 
Line 297 ⟶ 300:
["flip"] = "opt_flip", -- reverse order of input/output
["j"] = "opt_use_nbsp", -- "join": use " " instead of " " between value and unit name
["mid"] = "opt_adjectival, opt_adj_mid", -- adj=on with -- user-specified text after input unit (between input and output)
["nocomma"] = "opt_nocomma", -- no numsep in input or output numbers
["off"] = "", -- ignored (off is the default)
["on"] = "opt_adjectival", -- unit name is singular and hyphenated -- disable hyphenation
["pre"] = "opt_one_preunit", -- user-specified text before input unit
["ri0"] = "ri0", -- round input with precision = 0