ماڊيول:Convert/text
ڏيک
This page defines text used by Module:Convert. All documentation (from Module:Convert/doc) is at that module. The text includes messages and categories output by the module, and parameters used as input.
This is a separate module to simplify translation for use on another wiki. For example, see translation_table and the other tables in bn:Module:Convert/text.
Any changes should first be tested at Module:Convert/text/sandbox—see Module:Convert/sandbox/testcases.
ٽريڪنگ / سار سنڀال وارا زمرا
-- هي متن سنڌي وڪيپيڊيا لاءِ Module:Convert ۾ استعمال ٿيندو آهي.
-- هن کي الڳ ماڊيول ۾ رکڻ جو مقصد ٻين وڪين لاءِ ترجمو ۽ لوڪلائيزيشن آسان ڪرڻ آهي.
-- ٻي وڪي تي نقل ڪرڻ بابت هدايتن لاءِ ڏسو:
-- [[:en:Template:Convert/Transwiki guide]]
-- ڪجهه يونٽن جي ڪوڊ کان اڳ SI اڳياڙيون (prefixes) لڳائي سگهجن ٿيون،
-- مثال طور kilogram لاءِ "kg".
local SIprefixes = {
-- prefix فيلڊ تڏهن استعمال ٿيندو آهي جڏهن اصل استعمال ٿيندڙ prefix
-- هيٺ ڏنل key کان مختلف هجي.
['Q'] = { exponent = 30, name = 'ڪوئٽا', },
['R'] = { exponent = 27, name = 'رونا', },
['Y'] = { exponent = 24, name = 'يوٽا', },
['Z'] = { exponent = 21, name = 'زيٽا', },
['E'] = { exponent = 18, name = 'ايگزا', },
['P'] = { exponent = 15, name = 'پيٽا', },
['T'] = { exponent = 12, name = 'ٽيرا', },
['G'] = { exponent = 9, name = 'گيگا', },
['M'] = { exponent = 6, name = 'ميگا', },
['k'] = { exponent = 3, name = 'ڪلو', },
['h'] = { exponent = 2, name = 'هيڪٽو', },
['da']= { exponent = 1, name = 'ڊيڪا', name_us = 'ڊيڪا' },
['d'] = { exponent = -1, name = 'ڊيسي', },
['c'] = { exponent = -2, name = 'سينٽي', },
['m'] = { exponent = -3, name = 'ملي', },
['μ'] = { exponent = -6, name = 'مائڪرو', }, -- key = GREEK SMALL LETTER MU (U+03BC)
['µ'] = { exponent = -6, name = 'مائڪرو', prefix = 'μ' }, -- key = MICRO SIGN (U+00B5)
['u'] = { exponent = -6, name = 'مائڪرو', prefix = 'μ' }, -- SI prefix نه آهي، پر عام ٽائپنگ لاءِ قبول ڪيو وڃي ٿو
['n'] = { exponent = -9, name = 'نانو', },
['p'] = { exponent =-12, name = 'پيڪو', },
['f'] = { exponent =-15, name = 'فيمٽو', },
['a'] = { exponent =-18, name = 'ايٽو', },
['z'] = { exponent =-21, name = 'زيپٽو', },
['y'] = { exponent =-24, name = 'يوڪٽو', },
['r'] = { exponent =-27, name = 'رونٽو', },
['q'] = { exponent =-30, name = 'ڪوئڪٽو', },
}
-- ڪجهه روايتي يونٽن کي لنڪ ڪرڻ وقت هي qualifier اڳياڙيون استعمال ٿي سگهن ٿيون.
-- پهريون قدر parser ۾ استعمال ٿيندڙ اصل qualifier آهي؛
-- link سنڌي مضمون ڏانهن لوڪلائيز ڪيو ويو آهي.
local customary_units = {
{ "US", link = "آمريڪي روايتي يونٽ" },
{ "U.S.", link = "آمريڪي روايتي يونٽ" },
{ "imperial", link = "امپيريل يونٽ" },
{ "imp", link = "امپيريل يونٽ" },
}
-- Engineering notation استعمال ڪرڻ وقت انگن جا نالا.
-- مثال: "e6km".
-- key = { "نالو", link = "مضمون جو عنوان", exponent = عددي قدر }
-- جيڪڏهن lk=on هجي ۽ link ڏنل هجي ته انگ جو نالو لنڪ طور ڏيکاريو ويندو.
local eng_scales = {
["3"] = { "هزار", exponent = 3 },
["6"] = { "ملين", exponent = 6 },
["9"] = { "بلين", link = "1000000000 (انگ)", exponent = 9 },
["12"] = { "ٽريلين", link = "1000000000000 (انگ)", exponent = 12 },
["15"] = { "ڪواڊريلين", link = "1000000000000000 (انگ)", exponent = 15 },
}
local all_categories = {
unit = "[[زمرو:Convert جون غلطيون]]",
option = "[[زمرو:Convert جون غلطيون]]",
warning = '[[زمرو:Convert جا غلط اختيار]]',
tracking = '[[زمرو:Convert ٽريڪنگ]]',
}
-- ڪجهه غلطي پيغامن ۾ هيءَ ترتيب اهڙن يونٽ ڪوڊن کي
-- مناسب انداز ۾ ڏيکاري ٿي جيڪي '...%{ft%}...' وانگر لکيل هجن.
local unitcode_regex = '%%([{}])'
local unitcode_replace = { ['{'] = '"', ['}'] = '"' }
-- اهي سڀ پيغام جيڪي ڪنهن مسئلي جي صورت ۾ ڏيکاري سگهجن ٿا.
local all_messages = {
-- پيغام جي format string:
-- $1 = عنوان، $2 = متن، $3 = زمرو، $4 = anchor.
-- هر ڏيکاريل پيغام "Convert:" سان شروع ٿئي ٿو،
-- جيئن مضمون ۾ ڳولڻ آسان رهي.
cvt_format =
'<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i>[[مدد:Convert پيغام#$4|<span title="Convert: $1">convert: $2</span>]]</i>]</sup>$3<span class="error"></span>',
cvt_format2 =
'<sup class="noprint Inline-Template" style="white-space:nowrap;">[[مدد:Convert پيغام#$4|<span title="Convert: $1">$2</span>]]</sup>$3<span class="error"></span>',
cvt_format_preview =
'<strong class="error">Convert ۾ غلطي: $1 [[مدد:Convert پيغام#$4|(مدد)]]</strong>$3',
-- هيٺيان هر پيغام هڪ table آهي:
-- {
-- [1] = عنوان، -- mouseover عنوان
-- [2] = متن، -- مضمون ۾ ڏيکاريل لنڪ متن
-- [3] = زمري جي key، -- all_categories ۾ lookup لاءِ
-- [4] = anchor، -- مدد واري صفحي جي لاڳاپيل حصي لاءِ
-- regex = gsub_regex,
-- replace = gsub_table,
-- }
cvt_bad_input = {
'ان پٽ "$1" لازمي طور انگ ۽ يونٽ هئڻ گهرجي',
'غلط ان پٽ',
'option',
'invalid_input'
},
cvt_bad_num = {
'قدر "$1" لازمي طور انگ هئڻ گهرجي',
'غلط انگ',
'option',
'invalid_number'
},
cvt_big_prec = {
'درستي "$1" تمام وڏي آهي',
'درستي تمام وڏي آهي',
'option',
'precision_too_large'
},
cvt_invalid_num = {
'انگ حد کان وڌي ويو آهي',
'انگ حد کان وڌي ويو',
'option',
'number_overflow'
},
cvt_no_num = {
'تبديل ڪرڻ لاءِ انگ گهربل آهي',
'انگ گهربل آهي',
'option',
'needs_number'
},
cvt_no_num2 = {
'حد لاءِ ٻيو انگ گهربل آهي',
'ٻيو انگ گهربل آهي',
'option',
'needs_another_number'
},
cvt_bad_altitude = {
'"$1" لاءِ صحيح عدد (integer) گهربل آهي',
'غلط اوچائي',
'option',
'invalid_altitude'
},
cvt_bad_frac = {
'"$1" لاءِ 1 کان وڏو صحيح عدد گهربل آهي',
'غلط ڀاڱو',
'option',
'invalid_fraction'
},
cvt_bad_prec = {
'درستي "$1" صحيح عدد (integer) هئڻ گهرجي',
'غلط درستي',
'option',
'invalid_precision'
},
cvt_bad_sigfig = {
'"$1" لاءِ مثبت صحيح عدد گهربل آهي',
'غلط اهم انگ',
'option',
'invalid_sigfig'
},
cvt_empty_option = {
'خالي اختيار "$1" کي نظرانداز ڪيو ويو',
'خالي اختيار',
'option',
'empty_option'
},
cvt_deprecated = {
'اختيار "$1" هاڻي فرسوده آهي',
'*',
'option',
'deprecated_option',
format = 'cvt_format2',
nowarn = true
},
cvt_no_spell = {
'انگن کي لفظن ۾ لکڻ جي سهولت موجود ناهي',
'ماڊيول جي غلطي، مدد گهرو',
'option',
'ask_for_help'
},
cvt_unknown_option = {
'غلط اختيار "$1" کي نظرانداز ڪيو ويو',
'غلط اختيار',
'option',
'invalid_option'
},
cvt_wd_fail = {
'وڪي ڊيٽا تائين رسائي حاصل نه ٿي سگهي',
'وڪي ڊيٽا جو مسئلو',
'option',
'wikidata_problem'
},
cvt_bad_default = {
'يونٽ "$1" جو default غلط آهي',
'ماڊيول جي غلطي، مدد گهرو',
'unit',
'ask_for_help'
},
cvt_bad_unit = {
'يونٽ "$1" هتي صحيح ناهي',
'هتي يونٽ غلط آهي',
'unit',
'unit_invalid_here'
},
cvt_no_default = {
'يونٽ "$1" لاءِ default output يونٽ مقرر ناهي',
'ماڊيول جي غلطي، مدد گهرو',
'unit',
'ask_for_help'
},
cvt_no_unit = {
'يونٽ جو نالو گهربل آهي',
'يونٽ جو نالو گهربل آهي',
'unit',
'needs_unit_name'
},
cvt_unknown = {
'يونٽ جو نالو "$1" سڃاتل ناهي',
'اڻڄاتل يونٽ',
'unit',
'unknown_unit'
},
cvt_should_be = {
'$1',
'مبهم يونٽ',
'unit',
'ambiguous_unit',
regex = unitcode_regex,
replace = unitcode_replace
},
cvt_mismatch = {
'"$1" کي "$2" ۾ تبديل نٿو ڪري سگهجي',
'يونٽن ۾ مطابقت ناهي',
'unit',
'unit_mismatch'
},
cvt_bug_convert = {
'ماڊيول جي غلطي: ڏنل يونٽن جي وچ ۾ تبديلي نٿي ڪري سگهجي',
'ماڊيول جي غلطي، مدد گهرو',
'unit',
'ask_for_help'
},
cvt_lookup = {
'يونٽ "$1" غلط نموني بيان ٿيل آهي',
'ماڊيول جي غلطي، مدد گهرو',
'unit',
'ask_for_help'
},
}
-- input قدر/يونٽ ۽ output قدر/يونٽ کي پاڻ ۾ ملائڻ لاءِ متن.
local disp_joins = {
-- [1] = output کان اڳ
-- [2] = output کان پوءِ
-- [3] = combination ۾ outputs جي وچ ۾؛ default "; "
-- wantname = true سان default abbr=off ٿيندو
["or"] = { " يا " , "" , " يا ", wantname = true },
["sqbr-sp"] = { " [" , "]" },
["sqbr-nbsp"] = { " [" , "]" },
["comma"] = { "، " , "" , "، " },
["semicolon"] = { "؛ " , "" },
["slash-sp"] = { " / " , "" , wantname = true },
["slash-nbsp"] = { " / " , "" , wantname = true },
["slash-nosp"] = { "/" , "" , wantname = true },
["b"] = { " (" , ")" },
["(or)"] = { " (" , ")", " يا " },
["br"] = { "<br />" , "" , wantname = true },
["br()"] = { "<br />(" , ")", wantname = true },
}
-- range ۾ قدرن کي جدا ڪرڻ لاءِ متن.
local range_types = {
-- table ڏيڻ جي صورت ۾ هيٺين مان هڪ جوڙو لازمي آهي:
-- * "off" ۽ "on" (abbr=off ۽ abbr=on لاءِ)، يا
-- * "input" ۽ "output" (LHS ۽ RHS لاءِ).
--
-- ٻيا fields اختياري آهن.
-- adj=on|abbr=off هئڻ وقت range متن ۾ spaces کي hyphen سان بدلائي سگهجي ٿو.
-- exception=true هئڻ سان اهو adj=on|abbr=on سان به ٿيندو.
-- جيڪڏهن adj هتي مقرر هجي ته adj=on سان اهو ئي متن استعمال ٿيندو.
["+"] = " + ",
[","] = "، ",
[", and"] = "، ۽ ",
[", or"] = "، يا ",
["by"] = " ضرب ",
["-"] = "–",
["to about"] = " کان لڳ ڀڳ ",
["and"] = { off = " ۽ ", on = " ۽ ", exception = true },
["and(-)"] = { input = " ۽ ", output = "–" },
["or"] = { off = " يا ", on = " يا ", exception = true },
["to"] = { off = " کان ", on = " کان ", exception = true },
["to(-)"] = { input = " کان ", output = "–" },
["+/-"] = {
off = " ± ",
on = " ± ",
adj = " ± ",
is_range_change = true
},
["by(x)"] = {
input = " ضرب ",
output = " × ",
out_range_x = true
},
["x"] = {
off = " ضرب ",
on = " × ",
abbr_range_x = true
},
["xx"] = " × ",
["*"] = "×",
["/"] = " / ",
}
local range_aliases = {
-- ["range جو متبادل نالو"] = "معياري range نالو"
["–"] = "-",
["–"] = "-",
["×"] = "x",
["×"] = "x",
["±"] = "+/-",
["±"] = "+/-",
-- سنڌي aliases
["کان"] = "to",
["۽"] = "and",
["يا"] = "or",
["ضرب"] = "x",
}
-- Convert whitespace سان جدا ڪيل range متن قبول ڪري ٿو،
-- مثال:
-- {{convert|1 to 2|ft}}
--
-- هيٺيان "لفظ" spaces کان سواءِ به قبول ٿين ٿا،
-- مثال:
-- {{convert|1-2|ft}}
--
-- ڳولا لاءِ ترتيب اهم آهي، مثال طور 'x' کان اڳ 'xx'.
local range_words = {
'-',
'–',
'xx',
'x',
'*',
}
local ranges = {
types = range_types,
aliases = range_aliases,
words = range_words,
}
-- صحيح option نالا.
--
-- کاٻي پاسي:
-- template ۾ استعمال ٿيندڙ مقامي/قبوليل نالو
--
-- ساڄي پاسي:
-- هن ماڊيول اندر استعمال ٿيندڙ canonical نالو
--
-- انگريزي نالا backward compatibility لاءِ برقرار رکيا ويا آهن.
-- سنڌي aliases پڻ شامل ڪيا ويا آهن.
local en_option_name = {
["$"] = "$",
["abbr"] = "abbr",
["مخفف"] = "abbr",
["adj"] = "adj",
["صفت"] = "adj",
["altitude_ft"] = "altitude_ft",
["اوچائي_فوٽ"] = "altitude_ft",
["altitude_m"] = "altitude_m",
["اوچائي_ميٽر"] = "altitude_m",
["comma"] = "comma",
["ڪاما"] = "comma",
["debug"] = "debug",
["disp"] = "disp",
["ڏيک"] = "disp",
["error"] = "error",
["غلطي"] = "error",
["frac"] = "frac",
["ڀاڱو"] = "frac",
["input"] = "input",
["انپٽ"] = "input",
["lang"] = "lang",
["ٻولي"] = "lang",
["link"] = "lk",
["lk"] = "lk",
["لنڪ"] = "lk",
["order"] = "order",
["ترتيب"] = "order",
["qid"] = "qid",
["qual"] = "qual",
["qualifier"] = "qual",
["round"] = "round",
["گول"] = "round",
["sigfig"] = "sigfig",
["sing"] = "adj", -- پراڻو alias
["واحد"] = "adj",
["sortable"] = "sortable",
["ترتيب_لائق"] = "sortable",
["sp"] = "sp",
["spell"] = "spell",
["stylein"] = "stylein",
["styleout"] = "styleout",
["tracking"] = "tracking",
["ٽريڪنگ"] = "tracking",
}
-- صحيح option values.
--
-- Convention:
-- parms.opt_xxx اهڙي option ڏانهن اشارو ڪري ٿو جيڪا هتان مقرر ٿئي ٿي،
-- template طرفان سڌيءَ طرح parms field طور مقرر ڪرڻ لاءِ ناهي.
--
-- مثال:
-- enwiki تي abbr=values سان:
-- parms["opt_values"] = true
-- parms["abbr"] = nil
--
-- تنهنڪري ساڄي پاسي جا canonical/internal قدر نه ترجما ڪيا ويا آهن.
local en_option_value = {
["$"] = 'TEXT',
["abbr"] = {
["def"] = "",
["default"] = "",
["h"] = "on",
["hh"] = "opt_hand_hh",
["in"] = "in",
["ان"] = "in",
["none"] = "off",
["off"] = "off",
["بند"] = "off",
["on"] = "on",
["چالو"] = "on",
["out"] = "out",
["آئوٽ"] = "out",
["unit"] = "unit",
["يونٽ"] = "unit",
["values"] = "opt_values",
["قدر"] = "opt_values",
["~"] = "opt_also_symbol",
},
["adj"] = {
["mid"] = "opt_adjectival, opt_adj_mid",
["وچ"] = "opt_adjectival, opt_adj_mid",
["off"] = "",
["بند"] = "",
["on"] = "opt_adjectival",
["چالو"] = "opt_adjectival",
["pre"] = "opt_one_preunit",
["اڳ"] = "opt_one_preunit",
["ri0"] = "opt_ri=0",
["ri1"] = "opt_ri=1",
["ri2"] = "opt_ri=2",
["ri3"] = "opt_ri=3",
["~"] = "opt_also_symbol",
},
["altitude_ft"] = 'INTEGER',
["altitude_m"] = 'INTEGER',
["comma"] = {
["5"] = "opt_comma5",
["gaps"] = "opt_gaps",
["وقفا"] = "opt_gaps",
["gaps3"] = "opt_gaps, opt_gaps3",
["off"] = "opt_nocomma",
["بند"] = "opt_nocomma",
},
["debug"] = {
["yes"] = "opt_sortable_debug",
["ها"] = "opt_sortable_debug",
},
["disp"] = {
["5"] = "opt_round=5?",
["b"] = "b",
["(or)"] = "(or)",
["br"] = "br",
["br()"] = "br()",
["comma"] = "comma",
["ڪاما"] = "comma",
["flip"] = "opt_flip",
["ابتو"] = "opt_flip",
["number"] = "opt_output_number_only",
["انگ"] = "opt_output_number_only",
["or"] = "or",
["يا"] = "or",
["out"] = "opt_output_only",
["آئوٽ"] = "opt_output_only",
["output number only"] = "opt_output_number_only",
["صرف آئوٽ پٽ انگ"] = "opt_output_number_only",
["output only"] = "opt_output_only",
["صرف آئوٽ پٽ"] = "opt_output_only",
["preunit"] = "opt_two_preunits",
["semicolon"] = "semicolon",
["سيمي ڪولن"] = "semicolon",
["sqbr"] = "sqbr",
["table"] = "opt_table",
["جدول"] = "opt_table",
["tablecen"] = "opt_tablecen",
["unit"] = "opt_input_unit_only",
["يونٽ"] = "opt_input_unit_only",
["unit or text"] =
"opt_input_unit_only, opt_ignore_error",
["يونٽ يا متن"] =
"opt_input_unit_only, opt_ignore_error",
["unit2"] = "opt_output_unit_only",
["يونٽ2"] = "opt_output_unit_only",
["x"] = "x",
},
["error"] = 'TEXT',
["frac"] = 'INTEGER',
["input"] = 'TEXT',
["lang"] = {
-- output انگن جي ٻولي.
-- input ۾ انگريزي ۽ مقامي انگ ٻئي قبول ٿي سگهن ٿا.
["en"] = "opt_lang_en",
["انگريزي"] = "opt_lang_en",
["local"] = "opt_lang_local",
["مقامي"] = "opt_lang_local",
-- سنڌي لاءِ آسان alias.
["sd"] = "opt_lang_local",
["سنڌي"] = "opt_lang_local",
},
["lk"] = {
["in"] = "in",
["ان"] = "in",
["off"] = "off",
["بند"] = "off",
["on"] = "on",
["چالو"] = "on",
["out"] = "out",
["آئوٽ"] = "out",
},
["order"] = {
["flip"] = "opt_flip",
["ابتو"] = "opt_flip",
["out"] = "opt_order_out",
["آئوٽ"] = "opt_order_out",
},
["qid"] = 'TEXT',
["qual"] = 'TEXT',
["round"] = {
["0.5"] = "opt_round=0.5",
["5"] = "opt_round=5",
["10"] = "opt_round=10",
["25"] = "opt_round=25",
["50"] = "opt_round=50",
["each"] = "opt_round_each",
["هرهڪ"] = "opt_round_each",
},
["sigfig"] = 'INTEGER',
["sortable"] = {
["off"] = "",
["بند"] = "",
["on"] = "opt_sortable_on",
["چالو"] = "opt_sortable_on",
["debug"] =
"opt_sortable_on, opt_sortable_debug",
},
["sp"] = {
["us"] = "opt_sp_us",
},
["spell"] = {
-- اصل Module:Convert ۾ انگن کي لفظن ۾ لکڻ جي مڪمل سهولت
-- انگريزيءَ لاءِ ٺهيل آهي. canonical values نه بدلايا ويا آهن.
["in"] = "opt_spell_in",
["In"] =
"opt_spell_in, opt_spell_upper",
["on"] =
"opt_spell_in, opt_spell_out",
["On"] =
"opt_spell_in, opt_spell_out, opt_spell_upper",
["us"] = "opt_sp_us",
},
["stylein"] = 'TEXT',
["styleout"] = 'TEXT',
["tracking"] = 'TEXT',
}
-- TemplateStyles جا عنوان.
-- انهن کي صرف تڏهن تبديل ڪجي جڏهن سنڌي وڪي تي لاڳاپيل CSS صفحن
-- جا نالا پڻ تبديل ڪيا ويا هجن.
local titles = {
["frac"] = "Fraction/styles.css",
["sfrac"] = "Sfrac/styles.css",
}
return {
SIprefixes = SIprefixes,
all_categories = all_categories,
all_messages = all_messages,
currency = {
['$'] = true,
['£'] = true,
['€'] = true,
['₱'] = true,
['₽'] = true,
['¥'] = true
},
customary_units = customary_units,
disp_joins = disp_joins,
en_option_name = en_option_name,
en_option_value = en_option_value,
eng_scales = eng_scales,
ranges = ranges,
titles = titles,
}