From a20c0d11417a7c9a9d20e5accc6ad8531c0b25ba Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Thu, 19 Apr 2012 15:28:39 +0200 Subject: [PATCH] jscript: Added Number.toFixed implementation. --- dlls/jscript/jscript.h | 1 + dlls/jscript/jscript.rc | 1 + dlls/jscript/number.c | 139 +++++++++++++++++++++++++++++++++++++- dlls/jscript/resource.h | 1 + dlls/jscript/tests/api.js | 38 +++++++++-- po/ar.po | 6 +- po/bg.po | 6 +- po/ca.po | 8 ++- po/cs.po | 6 +- po/da.po | 8 ++- po/de.po | 8 ++- po/el.po | 6 +- po/en.po | 6 +- po/en_US.po | 6 +- po/eo.po | 6 +- po/es.po | 8 ++- po/fa.po | 6 +- po/fi.po | 8 ++- po/fr.po | 8 ++- po/he.po | 6 +- po/hi.po | 6 +- po/hu.po | 8 ++- po/it.po | 8 ++- po/ja.po | 8 ++- po/ko.po | 8 ++- po/lt.po | 8 ++- po/ml.po | 6 +- po/nb_NO.po | 8 ++- po/nl.po | 8 ++- po/or.po | 6 +- po/pa.po | 6 +- po/pl.po | 8 ++- po/pt_BR.po | 8 ++- po/pt_PT.po | 8 ++- po/rm.po | 6 +- po/ro.po | 6 +- po/ru.po | 8 ++- po/sk.po | 6 +- po/sl.po | 8 ++- po/sr_RS@cyrillic.po | 7 +- po/sr_RS@latin.po | 7 +- po/sv.po | 8 ++- po/te.po | 6 +- po/th.po | 6 +- po/tr.po | 6 +- po/uk.po | 6 +- po/wa.po | 6 +- po/wine.pot | 6 +- po/zh_CN.po | 6 +- po/zh_TW.po | 6 +- 50 files changed, 437 insertions(+), 53 deletions(-) diff --git a/dlls/jscript/jscript.h b/dlls/jscript/jscript.h index 3948a9cda57..76180a85213 100644 --- a/dlls/jscript/jscript.h +++ b/dlls/jscript/jscript.h @@ -505,6 +505,7 @@ static inline DWORD make_grfdex(script_ctx_t *ctx, DWORD flags) #define JS_E_REGEXP_SYNTAX MAKE_JSERROR(IDS_REGEXP_SYNTAX_ERROR) #define JS_E_INVALID_URI_CODING MAKE_JSERROR(IDS_URI_INVALID_CODING) #define JS_E_INVALID_URI_CHAR MAKE_JSERROR(IDS_URI_INVALID_CHAR) +#define JS_E_FRACTION_DIGITS_OUT_OF_RANGE MAKE_JSERROR(IDS_FRACTION_DIGITS_OUT_OF_RANGE) #define JS_E_INVALID_LENGTH MAKE_JSERROR(IDS_INVALID_LENGTH) #define JS_E_ARRAY_EXPECTED MAKE_JSERROR(IDS_ARRAY_EXPECTED) diff --git a/dlls/jscript/jscript.rc b/dlls/jscript/jscript.rc index e44a79ce7c3..97867b5317b 100644 --- a/dlls/jscript/jscript.rc +++ b/dlls/jscript/jscript.rc @@ -54,6 +54,7 @@ STRINGTABLE IDS_REGEXP_SYNTAX_ERROR "Syntax error in regular expression" IDS_URI_INVALID_CODING "URI to be decoded is incorrect" IDS_URI_INVALID_CHAR "URI to be encoded contains invalid characters" + IDS_FRACTION_DIGITS_OUT_OF_RANGE "Number of fraction digits is out of range" IDS_INVALID_LENGTH "Array length must be a finite positive integer" IDS_ARRAY_EXPECTED "Array object expected" } diff --git a/dlls/jscript/number.c b/dlls/jscript/number.c index de0ff6307ff..417e9ceade3 100644 --- a/dlls/jscript/number.c +++ b/dlls/jscript/number.c @@ -20,6 +20,7 @@ #include "wine/port.h" #include +#include #include "jscript.h" @@ -41,6 +42,7 @@ static const WCHAR toPrecisionW[] = {'t','o','P','r','e','c','i','s','i','o','n' static const WCHAR valueOfW[] = {'v','a','l','u','e','O','f',0}; #define NUMBER_TOSTRING_BUF_SIZE 64 +#define NUMBER_DTOA_SIZE 18 static inline NumberInstance *number_from_vdisp(vdisp_t *vdisp) { @@ -52,6 +54,102 @@ static inline NumberInstance *number_this(vdisp_t *jsthis) return is_vclass(jsthis, JSCLASS_NUMBER) ? number_from_vdisp(jsthis) : NULL; } +static inline void dtoa(double d, WCHAR *buf, int size, int *dec_point) +{ + ULONGLONG l; + int i; + + /* TODO: this function should print doubles with bigger precision */ + assert(size>=2 && size<=NUMBER_DTOA_SIZE && d>=0); + + if(d == 0) + *dec_point = 0; + else + *dec_point = floor(log10(d)); + l = d*pow(10, size-*dec_point-1); + + if(l%10 >= 5) + l = l/10+1; + else + l /= 10; + + buf[size-1] = 0; + for(i=size-2; i>=0; i--) { + buf[i] = '0'+l%10; + l /= 10; + } + + /* log10 was wrong by 1 or rounding changed number of digits */ + if(l) { + (*dec_point)++; + memmove(buf+1, buf, size-2); + buf[0] = '0'+l; + }else if(buf[0]=='0' && buf[1]>='1' && buf[1]<='9') { + (*dec_point)--; + memmove(buf, buf+1, size-2); + buf[size-2] = '0'; + } +} + +static inline void number_to_fixed(double val, int prec, BSTR *out) +{ + WCHAR buf[NUMBER_DTOA_SIZE]; + int dec_point, size, buf_size, buf_pos; + BOOL neg = FALSE; + BSTR str; + + if(val < 0) { + neg = TRUE; + val = -val; + } + + if(val<=-1 || val>=1) + buf_size = log10(val)+prec+2; + else + buf_size = prec+1; + if(buf_size > NUMBER_DTOA_SIZE) + buf_size = NUMBER_DTOA_SIZE; + + dtoa(val, buf, buf_size, &dec_point); + dec_point++; + size = 0; + if(neg) + size++; + if(dec_point > 0) + size += dec_point; + else + size++; + if(prec) + size += prec+1; + + str = SysAllocStringLen(NULL, size); + size = buf_pos = 0; + if(neg) + str[size++] = '-'; + if(dec_point > 0) { + for(;buf_pos0; dec_point--) + str[size++] = '0'; + if(prec) { + str[size++] = '.'; + + for(; dec_point<0 && prec; dec_point++, prec--) + str[size++] = '0'; + for(; buf_pos20) + return throw_range_error(ctx, ei, JS_E_FRACTION_DIGITS_OUT_OF_RANGE, NULL); + } + + val = number->value; + if(isinf(val) || isnan(val)) { + VARIANT v; + + num_set_val(&v, val); + hres = to_string(ctx, &v, ei, &str); + if(FAILED(hres)) + return hres; + }else { + number_to_fixed(val, prec, &str); + } + + if(retv) { + V_VT(retv) = VT_BSTR; + V_BSTR(retv) = str; + }else { + SysFreeString(str); + } + return S_OK; } static HRESULT Number_toExponential(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp, diff --git a/dlls/jscript/resource.h b/dlls/jscript/resource.h index 1f71406739b..c4204d77638 100644 --- a/dlls/jscript/resource.h +++ b/dlls/jscript/resource.h @@ -54,5 +54,6 @@ #define IDS_REGEXP_SYNTAX_ERROR 0x1399 #define IDS_URI_INVALID_CHAR 0x13A0 #define IDS_URI_INVALID_CODING 0x13A1 +#define IDS_FRACTION_DIGITS_OUT_OF_RANGE 0x13A2 #define IDS_INVALID_LENGTH 0x13A5 #define IDS_ARRAY_EXPECTED 0x13A7 diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index ffc1c4837cb..70b28efb418 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -1018,10 +1018,33 @@ tmp = Array.prototype.slice.call(obj, 1, 2); ok(tmp.length === 1, "tmp.length = " + tmp.length); ok(tmp[0] === 2, "tmp[0] = " + tmp[0]); -var num = new Number(2); -ok(num.toString() === "2", "num(2).toString !== 2"); -var num = new Number(); -ok(num.toString() === "0", "num().toString !== 0"); +tmp = (new Number(2)).toString(); +ok(tmp === "2", "num(2).toString = " + tmp); +tmp = (new Number()).toString(); +ok(tmp === "0", "num().toString = " + tmp); +tmp = (new Number(5.5)).toString(2); +ok(tmp === "101.1", "num(5.5).toString(2) = " + tmp); + +tmp = (new Number(3)).toFixed(3); +ok(tmp === "3.000", "num(3).toFixed(3) = " + tmp); +tmp = (new Number(1.76)).toFixed(1); +ok(tmp === "1.8", "num(1.76).toFixed(1) = " + tmp); +tmp = (new Number(7.92)).toFixed(5); +ok(tmp === "7.92000", "num(7.92).toFixed(5) = " + tmp); +tmp = (new Number(2.88)).toFixed(); +ok(tmp === "3", "num(2.88).toFixed = " + tmp); +tmp = (new Number(-2.5)).toFixed(); +ok(tmp === "-3", "num(-2.5).toFixed = " + tmp); +tmp = (new Number(1000000000000000128)).toFixed(0); +//todo_wine ok(tmp === "1000000000000000100", "num(1000000000000000128) = " + tmp); +tmp = (new Number(3.14).toFixed(NaN)); +ok(tmp === "3", "num(3.14).toFixed = " + tmp); +tmp = (new Number(0.95).toFixed(1)); +ok(tmp === "1.0", "num(0.95).toFixed(1) = " + tmp); +tmp = (new Number(1e900)).toFixed(0); +ok(tmp === "Infinity", "num(1000000000000000128) = " + tmp); +tmp = (new Number(0.12345678901234567890123)).toFixed(20); +ok(tmp === "0.12345678901234568000", "num(0.12345678901234567890123) = " + tmp); ok(Number() === 0, "Number() = " + Number()); ok(Number(false) === 0, "Number(false) = " + Number(false)); @@ -1994,7 +2017,8 @@ var exception_array = { E_ILLEGAL_ASSIGN: { type: "ReferenceError", number: -2146823280 }, - E_SUBSCRIPT_OUT_OF_RANGE: {type: "RangeError", number: -2146828279 }, + E_FRACTION_DIGITS_OUT_OF_RANGE: {type: "RangeError", number: -2146823262 }, + E_SUBSCRIPT_OUT_OF_RANGE: {type: "RangeError", number: -2146828279 }, E_REGEXP_SYNTAX_ERROR: { type: "RegExpError", number: -2146823271 }, @@ -2027,8 +2051,10 @@ testException(function() {createArray().getItem(3);}, "E_SUBSCRIPT_OUT_OF_RANGE" testException(function() {date.setTime();}, "E_ARG_NOT_OPT"); testException(function() {date.setYear();}, "E_ARG_NOT_OPT"); testException(function() {arr.test();}, "E_NO_PROPERTY"); -testException(function() {arr.toString = Number.prototype.toString; arr.toString();}, "E_NOT_NUM"); +testException(function() {Number.prototype.toString.call(arr);}, "E_NOT_NUM"); +testException(function() {Number.prototype.toFixed.call(arr);}, "E_NOT_NUM"); testException(function() {(new Number(3)).toString(1);}, "E_INVALID_CALL_ARG"); +testException(function() {(new Number(3)).toFixed(21);}, "E_FRACTION_DIGITS_OUT_OF_RANGE"); testException(function() {not_existing_variable.something();}, "E_UNDEFINED"); testException(function() {date();}, "E_NOT_FUNC"); testException(function() {arr();}, "E_NOT_FUNC"); diff --git a/po/ar.po b/po/ar.po index e186a431e59..48af0bcbdf2 100644 --- a/po/ar.po +++ b/po/ar.po @@ -3513,10 +3513,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/bg.po b/po/bg.po index 3db87f4e92f..f6695e73a5f 100644 --- a/po/bg.po +++ b/po/bg.po @@ -3528,10 +3528,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/ca.po b/po/ca.po index 5df825ede2b..12a875c0fc1 100644 --- a/po/ca.po +++ b/po/ca.po @@ -3559,10 +3559,16 @@ msgid "URI to be decoded is incorrect" msgstr "URI per a descodificar és incorrecte" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Valor d'enumeració fora de rang.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Longitud del vector ha de ser un enter positiu finit" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "S'esperava un objecte Array" diff --git a/po/cs.po b/po/cs.po index 1229cd26ecd..252a5b3df59 100644 --- a/po/cs.po +++ b/po/cs.po @@ -3564,10 +3564,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/da.po b/po/da.po index eb286260516..204b2d5e3d8 100644 --- a/po/da.po +++ b/po/da.po @@ -3534,10 +3534,16 @@ msgid "URI to be decoded is incorrect" msgstr "URI der skal afkodes er forkert" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Opregnings værdi uden for intervallet.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Array længde skal være et endeligt positivt heltal" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Array objekt forventet" diff --git a/po/de.po b/po/de.po index f7bd35d3131..29d76ff60a4 100644 --- a/po/de.po +++ b/po/de.po @@ -3537,10 +3537,16 @@ msgid "URI to be decoded is incorrect" msgstr "Zu entschlüsselnde URI ist ungültig" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Aufzählungswert außerhalb des Bereichs.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Array-Größe muss eine natürliche Zahl sein" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Array Objekt erwartet" diff --git a/po/el.po b/po/el.po index 3ccf0c7498a..05165aed165 100644 --- a/po/el.po +++ b/po/el.po @@ -3472,10 +3472,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/en.po b/po/en.po index 84095cb7296..f773db473be 100644 --- a/po/en.po +++ b/po/en.po @@ -3418,10 +3418,14 @@ msgid "URI to be decoded is incorrect" msgstr "URI to be decoded is incorrect" #: jscript.rc:57 +msgid "Number of fraction digits is out of range" +msgstr "Number of fraction digits is out of range" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Array length must be a finite positive integer" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Array object expected" diff --git a/po/en_US.po b/po/en_US.po index a0efd69e8ec..51921333c8f 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -3531,10 +3531,14 @@ msgid "URI to be decoded is incorrect" msgstr "URI to be decoded is incorrect" #: jscript.rc:57 +msgid "Number of fraction digits is out of range" +msgstr "Number of fraction digits is out of range" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Array length must be a finite positive integer" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Array object expected" diff --git a/po/eo.po b/po/eo.po index 6ea87ed566b..c3586f0a23c 100644 --- a/po/eo.po +++ b/po/eo.po @@ -3443,10 +3443,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/es.po b/po/es.po index 157e963aa24..f8e6e8e21c5 100644 --- a/po/es.po +++ b/po/es.po @@ -3550,10 +3550,16 @@ msgid "URI to be decoded is incorrect" msgstr "URI a decodificar es incorrecta" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Valor de la enumeración fuera de rango.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "La longitud del array debe ser un entero positivo finito" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Objeto array esperado" diff --git a/po/fa.po b/po/fa.po index 64dc3a67522..ddbfad72bc9 100644 --- a/po/fa.po +++ b/po/fa.po @@ -3513,10 +3513,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/fi.po b/po/fi.po index 242b9e6d91f..cca42eb92d5 100644 --- a/po/fi.po +++ b/po/fi.po @@ -3526,10 +3526,16 @@ msgid "URI to be decoded is incorrect" msgstr "Dekoodattava URI on virheellinen" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Arvo on luettelon ulkopuolella.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Taulukon pituuden täytyy olla positiivinen kokonaisluku" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Odotettiin taulukkoa" diff --git a/po/fr.po b/po/fr.po index 8117a2b9550..535397eaa7d 100644 --- a/po/fr.po +++ b/po/fr.po @@ -3554,10 +3554,16 @@ msgid "URI to be decoded is incorrect" msgstr "L'URI à décoder est incorrecte" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Valeur d'énumération hors plage.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "La longueur d'un tableau doit être un entier positif" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Objet tableau attendu" diff --git a/po/he.po b/po/he.po index bec3a510b5f..3b60c3094a3 100644 --- a/po/he.po +++ b/po/he.po @@ -3523,10 +3523,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/hi.po b/po/hi.po index 8717247d325..e2e58a1e2e4 100644 --- a/po/hi.po +++ b/po/hi.po @@ -3449,10 +3449,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/hu.po b/po/hu.po index 4cf7728adc7..ca32064a477 100644 --- a/po/hu.po +++ b/po/hu.po @@ -3551,10 +3551,16 @@ msgid "URI to be decoded is incorrect" msgstr "A kódolandó URI érvénytelen karaktereket tartalmaz" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Felsorolási érték határon kívül esik.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "A tömb hosszának egy véges pozitív egész számnak kell lennie" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Tömb objektumot vártam" diff --git a/po/it.po b/po/it.po index b5fb2fa02ea..faab72a96b7 100644 --- a/po/it.po +++ b/po/it.po @@ -3559,10 +3559,16 @@ msgid "URI to be decoded is incorrect" msgstr "L'URI da decodificare non è corretto" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Valore dell'enumerazione fuori portata.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "La lunghezza dell'array deve essere un intero finito e positivo" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Previsto un oggetto array" diff --git a/po/ja.po b/po/ja.po index 0cff1ccd478..52731f28556 100644 --- a/po/ja.po +++ b/po/ja.po @@ -3531,10 +3531,16 @@ msgid "URI to be decoded is incorrect" msgstr "デコードされるURIが正しくありません" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "列挙値が範囲外です。\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "配列の長さは有限の正整数でなければなりません" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "配列オブジェクトを期待していました" diff --git a/po/ko.po b/po/ko.po index 15b63fd6799..69a57a4483d 100644 --- a/po/ko.po +++ b/po/ko.po @@ -3520,10 +3520,16 @@ msgid "URI to be decoded is incorrect" msgstr "해독하는 URI가 올바르지 않음" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "열거 값이 범위를 벗어남.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "배열 길이는 반드시 한정된 양의 정수이어야 함" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "배열 객체가 필요함" diff --git a/po/lt.po b/po/lt.po index 43e5cde380f..6e0f0b3b184 100644 --- a/po/lt.po +++ b/po/lt.po @@ -3540,10 +3540,16 @@ msgid "URI to be decoded is incorrect" msgstr "Dekoduojamas URI yra neteisingas" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Išvardijimo reikšmė ne tarp rėžių.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Masyvo dydis turi būti teigiamas sveikasis skaičius" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Tikėtasi masyvo objekto" diff --git a/po/ml.po b/po/ml.po index 0ac8cc56915..28e3a919521 100644 --- a/po/ml.po +++ b/po/ml.po @@ -3449,10 +3449,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/nb_NO.po b/po/nb_NO.po index dc8a67490a2..8e06b2ab3cc 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -3700,10 +3700,16 @@ msgid "URI to be decoded is incorrect" msgstr "URI'en som skulle kodes inneholder ugyldige tegn" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Enum-verdien er utenfor rekkevidde.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Rekkens lengde må være et endelig, positivt tall" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Forventet rekke-objekt" diff --git a/po/nl.po b/po/nl.po index 540e56b723b..a0d5adfeda7 100644 --- a/po/nl.po +++ b/po/nl.po @@ -3580,10 +3580,16 @@ msgid "URI to be decoded is incorrect" msgstr "De te decoderen URI is niet correct" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Opsommingsaantal buiten bereik.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Array lengte moet een eindig, positief geheel getal zijn" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Array object verwacht" diff --git a/po/or.po b/po/or.po index 0e2baf691ce..ee3d1632fc7 100644 --- a/po/or.po +++ b/po/or.po @@ -3449,10 +3449,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/pa.po b/po/pa.po index f6aaa6d64e0..1f6c3106ce0 100644 --- a/po/pa.po +++ b/po/pa.po @@ -3449,10 +3449,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/pl.po b/po/pl.po index 23186f2732a..5059e312948 100644 --- a/po/pl.po +++ b/po/pl.po @@ -3551,10 +3551,16 @@ msgid "URI to be decoded is incorrect" msgstr "URI do dekodowania jest niepoprawny" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Wartość typu wyliczeniowego poza zakresem.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Długość tablicy musi być skończoną dodatnią liczbą stałą" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Oczekiwany obiekt tablicowy" diff --git a/po/pt_BR.po b/po/pt_BR.po index b903389e8a9..ed9afd2ffb7 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -3557,10 +3557,16 @@ msgid "URI to be decoded is incorrect" msgstr "URI a ser codificado está incorreto" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Valor de enumeração fora dos limites.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Tamanho do vetor tem que ser um inteiro finito positivo" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Objeto Vetor esperado" diff --git a/po/pt_PT.po b/po/pt_PT.po index 6af40732218..809894a5c0d 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -3556,10 +3556,16 @@ msgid "URI to be decoded is incorrect" msgstr "URI a ser descodificado é incorreto" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Valor de enumeração fora dos limites.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Tamanho do vector tem de ser um inteiro finito positivo" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Objecto Array esperado" diff --git a/po/rm.po b/po/rm.po index d82595b70e4..381484e667f 100644 --- a/po/rm.po +++ b/po/rm.po @@ -3477,10 +3477,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/ro.po b/po/ro.po index f43fa5a3aae..3ff7d756c18 100644 --- a/po/ro.po +++ b/po/ro.po @@ -3533,10 +3533,14 @@ msgid "URI to be decoded is incorrect" msgstr "URI care trebuie codificat conține caractere nevalide" #: jscript.rc:57 +msgid "Number of fraction digits is out of range" +msgstr "" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Lungimea unei matrice trebuie să fie un număr întreg pozitiv" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Se așteaptă un obiect matrice" diff --git a/po/ru.po b/po/ru.po index 022b8ace086..43b6bd90898 100644 --- a/po/ru.po +++ b/po/ru.po @@ -3538,10 +3538,16 @@ msgid "URI to be decoded is incorrect" msgstr "Декодируемый URI неверен" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Значение перечисления вне диапазона.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Длиной массива должно быть конечное положительное число" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Ожидается объект типа 'Array'" diff --git a/po/sk.po b/po/sk.po index 36bbeaed510..694895a3048 100644 --- a/po/sk.po +++ b/po/sk.po @@ -3459,10 +3459,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/sl.po b/po/sl.po index 3301c2baf64..629d7b061bd 100644 --- a/po/sl.po +++ b/po/sl.po @@ -3548,10 +3548,16 @@ msgid "URI to be decoded is incorrect" msgstr "URI za odkodiranje je nepravilen" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Vrednost oštevilčenja je izven obsega.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Dolžina polja mora bit pozitivno celo število" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Pričakovan je bil predmet polja" diff --git a/po/sr_RS@cyrillic.po b/po/sr_RS@cyrillic.po index a2d001e3425..41d632fa2b6 100644 --- a/po/sr_RS@cyrillic.po +++ b/po/sr_RS@cyrillic.po @@ -3561,10 +3561,15 @@ msgid "URI to be decoded is incorrect" msgstr "URI садржи неисправне знакове" #: jscript.rc:57 +#, fuzzy +msgid "Number of fraction digits is out of range" +msgstr "Потпис је ван домета.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Низ дужине мора бити коначан позитиван цео број" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Очекивани низ објекта" diff --git a/po/sr_RS@latin.po b/po/sr_RS@latin.po index 4aea5e4e8a1..46516bbf63c 100644 --- a/po/sr_RS@latin.po +++ b/po/sr_RS@latin.po @@ -3639,10 +3639,15 @@ msgid "URI to be decoded is incorrect" msgstr "URI sadrži neispravne znakove" #: jscript.rc:57 +#, fuzzy +msgid "Number of fraction digits is out of range" +msgstr "Potpis je van dometa.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Niz dužine mora biti konačan pozitivan ceo broj" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Očekivani niz objekta" diff --git a/po/sv.po b/po/sv.po index 65fafe18229..86793785a9f 100644 --- a/po/sv.po +++ b/po/sv.po @@ -3521,10 +3521,16 @@ msgid "URI to be decoded is incorrect" msgstr "Den URI som ska avkodas är felaktig" #: jscript.rc:57 +#, fuzzy +#| msgid "Enumeration value out of range.\n" +msgid "Number of fraction digits is out of range" +msgstr "Uppräkningsvärde utanför giltigt intervall.\n" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Array-längd måste vara ett positivt ändligt heltal" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Array-objekt förväntades" diff --git a/po/te.po b/po/te.po index df1b8f33572..229df7cc7c8 100644 --- a/po/te.po +++ b/po/te.po @@ -3449,10 +3449,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/th.po b/po/th.po index bc20f2bd43b..a9cbd83ab81 100644 --- a/po/th.po +++ b/po/th.po @@ -3489,10 +3489,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/tr.po b/po/tr.po index 713126786d4..47aac28831e 100644 --- a/po/tr.po +++ b/po/tr.po @@ -3436,10 +3436,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/uk.po b/po/uk.po index 01e116b5581..47877fba867 100644 --- a/po/uk.po +++ b/po/uk.po @@ -3542,10 +3542,14 @@ msgid "URI to be decoded is incorrect" msgstr "URI, що буде закодований, некоректний" #: jscript.rc:57 +msgid "Number of fraction digits is out of range" +msgstr "" + +#: jscript.rc:58 msgid "Array length must be a finite positive integer" msgstr "Довжиною масиву повинне бути скінченне додатнє ціле число" -#: jscript.rc:58 +#: jscript.rc:59 msgid "Array object expected" msgstr "Очікується об'єкт Array" diff --git a/po/wa.po b/po/wa.po index 021e8e83f07..b64e5b2da83 100644 --- a/po/wa.po +++ b/po/wa.po @@ -3498,10 +3498,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/wine.pot b/po/wine.pot index ad8e66f3460..56e94e91371 100644 --- a/po/wine.pot +++ b/po/wine.pot @@ -3411,10 +3411,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po index 6f7c7d7141f..00f415801fa 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -3438,10 +3438,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr "" diff --git a/po/zh_TW.po b/po/zh_TW.po index 6b49519d51c..2dd6032999a 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -3441,10 +3441,14 @@ msgid "URI to be decoded is incorrect" msgstr "" #: jscript.rc:57 -msgid "Array length must be a finite positive integer" +msgid "Number of fraction digits is out of range" msgstr "" #: jscript.rc:58 +msgid "Array length must be a finite positive integer" +msgstr "" + +#: jscript.rc:59 msgid "Array object expected" msgstr ""