i18n: script identifiers in error messages stay as written

The not-defined and function-declaration errors name the identifier
with an {ident} placeholder, whose value is never translated, so a
script name that matches another message (such as damaged) is shown
unchanged.
This commit is contained in:
dotCooCoo
2026-11-14 07:51:01 -08:00
parent 38e9ef203b
commit e4a7d419cc
26 changed files with 58 additions and 55 deletions
+4 -4
View File
@@ -1081,8 +1081,8 @@ impl Interp {
}
fn not_defined(&mut self, name: &[u16]) -> Abrupt {
let name = String::from_utf16_lossy(name);
self.throw(ErrorType::Reference, &format!("{name} is not defined"))
let ident = String::from_utf16_lossy(name);
self.throw(ErrorType::Reference, &format!("{ident} is not defined"))
}
fn get_var(&mut self, name: &Key) -> JsResult<(Value, Value)> {
@@ -2587,8 +2587,8 @@ impl Interp {
self.put(object, name.clone(), v, true)
}
Some(_) => {
let name = String::from_utf16_lossy(name);
Err(self.type_error(&format!("cannot declare function {name}")))
let ident = String::from_utf16_lossy(name);
Err(self.type_error(&format!("cannot declare function {ident}")))
}
}
}
+4 -3
View File
@@ -682,8 +682,9 @@ const MESSAGE_DEPTH: usize = 5;
/// Translate a status or error message for display (see the module docs). Unknown messages, and
/// parts of them (file names, numbers, a reason with no entry, a JSON object or array such as
/// `{"objects": [...]}`, a value the message quotes in `"…"`, `“…”`, `'…'` or backticks, such as a
/// symbol's or a script property's name), stay as they are. A part that starts with `{` or `[` is translated only
/// when it is a whole message with an exact entry, such as `[x, y] (two numbers)`.
/// symbol's or a script property's name, and an `{ident}` placeholder's value, a script identifier),
/// stay as they are. A part that starts with `{` or `[` is translated only when it is a whole
/// message with an exact entry, such as `[x, y] (two numbers)`.
pub fn message(lang: Lang, s: &str) -> String {
message_at(lang, s, MESSAGE_DEPTH)
}
@@ -703,7 +704,7 @@ fn message_at(lang: Lang, s: &str, depth: usize) -> String {
message_at(lang, v, depth - 1)
}
};
let values: Vec<(&str, String)> = caps.into_iter().map(|(k, v)| (k, nested(v))).collect();
let values: Vec<(&str, String)> = caps.into_iter().map(|(k, v)| (k, if k == "ident" { v.to_string() } else { nested(v) })).collect();
let args: Vec<(&str, &str)> = values.iter().map(|(k, v)| (*k, v.as_str())).collect();
fill_once(template, &args)
}
+2 -2
View File
@@ -5543,7 +5543,7 @@ digits Malayalam Malaiàlam
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} no està definit
@msg {ident} is not defined {ident} no està definit
@msg cannot read property '{key}' of {base} no es pot llegir la propietat '{key}' de {base}
@msg cannot set property '{key}' of {base} no es pot establir la propietat '{key}' de {base}
@msg cannot read a property of {base} no es pot llegir cap propietat de {base}
@@ -5551,7 +5551,7 @@ digits Malayalam Malaiàlam
@msg cannot define property '{key}': {why} no es pot definir la propietat '{key}': {why}
@msg cannot assign to property '{key}': {why} no es pot assignar a la propietat '{key}': {why}
@msg cannot delete property '{key}' no es pot suprimir la propietat '{key}'
@msg cannot declare function {name} no es pot declarar la funció {name}
@msg cannot declare function {ident} no es pot declarar la funció {ident}
@msg invalid assignment target destinació d'assignació no vàlida
@msg the array's length is read-only la longitud de la matriu és només de lectura
@msg the property cannot be redefined la propietat no es pot redefinir
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2 -2
View File
@@ -4636,7 +4636,7 @@ imageTrace Outline Obrys
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} není definováno
@msg {ident} is not defined {ident} není definováno
@msg cannot read property '{key}' of {base} nelze číst vlastnost '{key}' hodnoty {base}
@msg cannot set property '{key}' of {base} nelze nastavit vlastnost '{key}' hodnoty {base}
@msg cannot read a property of {base} nelze číst vlastnost hodnoty {base}
@@ -4644,7 +4644,7 @@ imageTrace Outline Obrys
@msg cannot define property '{key}': {why} nelze definovat vlastnost '{key}': {why}
@msg cannot assign to property '{key}': {why} nelze přiřadit do vlastnosti '{key}': {why}
@msg cannot delete property '{key}' nelze odstranit vlastnost '{key}'
@msg cannot declare function {name} nelze deklarovat funkci {name}
@msg cannot declare function {ident} nelze deklarovat funkci {ident}
@msg invalid assignment target neplatný cíl přiřazení
@msg the array's length is read-only délka pole je jen pro čtení
@msg the property cannot be redefined vlastnost nelze znovu definovat
Can't render this file because it is too large.
+2 -2
View File
@@ -4248,7 +4248,7 @@ theme Appearance Erscheinungsbild
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} ist nicht definiert
@msg {ident} is not defined {ident} ist nicht definiert
@msg cannot read property '{key}' of {base} die Eigenschaft '{key}' von {base} kann nicht gelesen werden
@msg cannot set property '{key}' of {base} die Eigenschaft '{key}' von {base} kann nicht gesetzt werden
@msg cannot read a property of {base} eine Eigenschaft von {base} kann nicht gelesen werden
@@ -4256,7 +4256,7 @@ theme Appearance Erscheinungsbild
@msg cannot define property '{key}': {why} die Eigenschaft '{key}' kann nicht definiert werden: {why}
@msg cannot assign to property '{key}': {why} der Eigenschaft '{key}' kann nichts zugewiesen werden: {why}
@msg cannot delete property '{key}' die Eigenschaft '{key}' kann nicht gelöscht werden
@msg cannot declare function {name} die Funktion {name} kann nicht deklariert werden
@msg cannot declare function {ident} die Funktion {ident} kann nicht deklariert werden
@msg invalid assignment target ungültiges Zuweisungsziel
@msg the array's length is read-only die Länge des Arrays ist schreibgeschützt
@msg the property cannot be redefined die Eigenschaft kann nicht neu definiert werden
Can't render this file because it is too large.
+2 -2
View File
@@ -2407,7 +2407,7 @@ axis Both Και τα δύο
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined το {name} δεν έχει οριστεί
@msg {ident} is not defined το {ident} δεν έχει οριστεί
@msg cannot read property '{key}' of {base} δεν είναι δυνατή η ανάγνωση της ιδιότητας '{key}' του {base}
@msg cannot set property '{key}' of {base} δεν είναι δυνατός ο ορισμός της ιδιότητας '{key}' του {base}
@msg cannot read a property of {base} δεν είναι δυνατή η ανάγνωση ιδιότητας του {base}
@@ -2415,7 +2415,7 @@ axis Both Και τα δύο
@msg cannot define property '{key}': {why} δεν είναι δυνατός ο καθορισμός της ιδιότητας '{key}': {why}
@msg cannot assign to property '{key}': {why} δεν είναι δυνατή η ανάθεση στην ιδιότητα '{key}': {why}
@msg cannot delete property '{key}' δεν είναι δυνατή η διαγραφή της ιδιότητας '{key}'
@msg cannot declare function {name} δεν είναι δυνατή η δήλωση της συνάρτησης {name}
@msg cannot declare function {ident} δεν είναι δυνατή η δήλωση της συνάρτησης {ident}
@msg invalid assignment target μη έγκυρος στόχος ανάθεσης
@msg the array's length is read-only το μήκος του πίνακα είναι μόνο για ανάγνωση
@msg the property cannot be redefined η ιδιότητα δεν μπορεί να οριστεί ξανά
Can't render this file because it is too large.
+2 -2
View File
@@ -4338,7 +4338,7 @@ axis Both Ambos
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} no está definido
@msg {ident} is not defined {ident} no está definido
@msg cannot read property '{key}' of {base} no se puede leer la propiedad '{key}' de {base}
@msg cannot set property '{key}' of {base} no se puede establecer la propiedad '{key}' de {base}
@msg cannot read a property of {base} no se puede leer una propiedad de {base}
@@ -4346,7 +4346,7 @@ axis Both Ambos
@msg cannot define property '{key}': {why} no se puede definir la propiedad '{key}': {why}
@msg cannot assign to property '{key}': {why} no se puede asignar a la propiedad '{key}': {why}
@msg cannot delete property '{key}' no se puede eliminar la propiedad '{key}'
@msg cannot declare function {name} no se puede declarar la función {name}
@msg cannot declare function {ident} no se puede declarar la función {ident}
@msg invalid assignment target destino de asignación no válido
@msg the array's length is read-only la longitud del array es de solo lectura
@msg the property cannot be redefined la propiedad no se puede redefinir
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2 -2
View File
@@ -4563,7 +4563,7 @@ imageTrace Outline Ääriviiva
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} ei ole määritelty
@msg {ident} is not defined {ident} ei ole määritelty
@msg cannot read property '{key}' of {base} arvon {base} ominaisuutta '{key}' ei voi lukea
@msg cannot set property '{key}' of {base} arvon {base} ominaisuutta '{key}' ei voi asettaa
@msg cannot read a property of {base} arvon {base} ominaisuutta ei voi lukea
@@ -4571,7 +4571,7 @@ imageTrace Outline Ääriviiva
@msg cannot define property '{key}': {why} ominaisuutta '{key}' ei voi määrittää: {why}
@msg cannot assign to property '{key}': {why} ominaisuuteen '{key}' ei voi sijoittaa: {why}
@msg cannot delete property '{key}' ominaisuutta '{key}' ei voi poistaa
@msg cannot declare function {name} funktiota {name} ei voi esitellä
@msg cannot declare function {ident} funktiota {ident} ei voi esitellä
@msg invalid assignment target virheellinen sijoituksen kohde
@msg the array's length is read-only taulukon pituus on vain luku
@msg the property cannot be redefined ominaisuutta ei voi määrittää uudelleen
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2 -2
View File
@@ -4314,7 +4314,7 @@ axis Both Les deux
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} n'est pas défini
@msg {ident} is not defined {ident} n'est pas défini
@msg cannot read property '{key}' of {base} impossible de lire la propriété '{key}' de {base}
@msg cannot set property '{key}' of {base} impossible de modifier la propriété '{key}' de {base}
@msg cannot read a property of {base} impossible de lire une propriété de {base}
@@ -4322,7 +4322,7 @@ axis Both Les deux
@msg cannot define property '{key}': {why} impossible de définir la propriété '{key}' : {why}
@msg cannot assign to property '{key}': {why} impossible d'affecter la propriété '{key}' : {why}
@msg cannot delete property '{key}' impossible de supprimer la propriété '{key}'
@msg cannot declare function {name} impossible de déclarer la fonction {name}
@msg cannot declare function {ident} impossible de déclarer la fonction {ident}
@msg invalid assignment target cible d'affectation non valide
@msg the array's length is read-only la longueur du tableau est en lecture seule
@msg the property cannot be redefined la propriété ne peut pas être redéfinie
Can't render this file because it is too large.
+2 -2
View File
@@ -6655,7 +6655,7 @@ antiAlias Sharp शार्प
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} परिभाषित नहीं है
@msg {ident} is not defined {ident} परिभाषित नहीं है
@msg cannot read property '{key}' of {base} {base} की प्रॉपर्टी '{key}' पढ़ी नहीं जा सकती
@msg cannot set property '{key}' of {base} {base} की प्रॉपर्टी '{key}' सेट नहीं की जा सकती
@msg cannot read a property of {base} {base} की कोई प्रॉपर्टी पढ़ी नहीं जा सकती
@@ -6663,7 +6663,7 @@ antiAlias Sharp शार्प
@msg cannot define property '{key}': {why} प्रॉपर्टी '{key}' परिभाषित नहीं की जा सकती: {why}
@msg cannot assign to property '{key}': {why} प्रॉपर्टी '{key}' को मान नहीं दिया जा सकता: {why}
@msg cannot delete property '{key}' प्रॉपर्टी '{key}' हटाई नहीं जा सकती
@msg cannot declare function {name} फ़ंक्शन {name} घोषित नहीं किया जा सकता
@msg cannot declare function {ident} फ़ंक्शन {ident} घोषित नहीं किया जा सकता
@msg invalid assignment target मान देने का लक्ष्य अमान्य है
@msg the array's length is read-only ऐरे की लंबाई केवल-पठन है
@msg the property cannot be redefined प्रॉपर्टी को फिर से परिभाषित नहीं किया जा सकता
Can't render this file because it is too large.
+2 -2
View File
@@ -5150,7 +5150,7 @@ imageTrace Outline Körvonal
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} nincs definiálva
@msg {ident} is not defined {ident} nincs definiálva
@msg cannot read property '{key}' of {base} a(z) {base} '{key}' tulajdonsága nem olvasható
@msg cannot set property '{key}' of {base} a(z) {base} '{key}' tulajdonsága nem állítható be
@msg cannot read a property of {base} a(z) {base} tulajdonsága nem olvasható
@@ -5158,7 +5158,7 @@ imageTrace Outline Körvonal
@msg cannot define property '{key}': {why} a(z) '{key}' tulajdonság nem definiálható: {why}
@msg cannot assign to property '{key}': {why} a(z) '{key}' tulajdonságnak nem adható érték: {why}
@msg cannot delete property '{key}' a(z) '{key}' tulajdonság nem törölhető
@msg cannot declare function {name} a(z) {name} függvény nem deklarálható
@msg cannot declare function {ident} a(z) {ident} függvény nem deklarálható
@msg invalid assignment target érvénytelen értékadási cél
@msg the array's length is read-only a tömb hossza csak olvasható
@msg the property cannot be redefined a tulajdonság nem definiálható újra
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2 -2
View File
@@ -4377,7 +4377,7 @@ axis Both Entrambi
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} non è definito
@msg {ident} is not defined {ident} non è definito
@msg cannot read property '{key}' of {base} impossibile leggere la proprietà '{key}' di {base}
@msg cannot set property '{key}' of {base} impossibile impostare la proprietà '{key}' di {base}
@msg cannot read a property of {base} impossibile leggere una proprietà di {base}
@@ -4385,7 +4385,7 @@ axis Both Entrambi
@msg cannot define property '{key}': {why} impossibile definire la proprietà '{key}': {why}
@msg cannot assign to property '{key}': {why} impossibile assegnare alla proprietà '{key}': {why}
@msg cannot delete property '{key}' impossibile eliminare la proprietà '{key}'
@msg cannot declare function {name} impossibile dichiarare la funzione {name}
@msg cannot declare function {ident} impossibile dichiarare la funzione {ident}
@msg invalid assignment target destinazione di assegnazione non valida
@msg the array's length is read-only la lunghezza dell'array è di sola lettura
@msg the property cannot be redefined la proprietà non può essere ridefinita
Can't render this file because it is too large.
+2 -2
View File
@@ -5155,7 +5155,7 @@ swatch Bright Violet ビビッドバイオレット
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} は定義されていません
@msg {ident} is not defined {ident} は定義されていません
@msg cannot read property '{key}' of {base} {base} のプロパティ '{key}' を読み取れません
@msg cannot set property '{key}' of {base} {base} のプロパティ '{key}' を設定できません
@msg cannot read a property of {base} {base} のプロパティを読み取れません
@@ -5163,7 +5163,7 @@ swatch Bright Violet ビビッドバイオレット
@msg cannot define property '{key}': {why} プロパティ '{key}' を定義できません: {why}
@msg cannot assign to property '{key}': {why} プロパティ '{key}' に代入できません: {why}
@msg cannot delete property '{key}' プロパティ '{key}' を削除できません
@msg cannot declare function {name} 関数 {name} を宣言できません
@msg cannot declare function {ident} 関数 {ident} を宣言できません
@msg invalid assignment target 代入先が無効です
@msg the array's length is read-only 配列の長さは読み取り専用です
@msg the property cannot be redefined プロパティは再定義できません
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2 -2
View File
@@ -5562,7 +5562,7 @@ imageTrace Outline კონტური
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} არ არის განსაზღვრული
@msg {ident} is not defined {ident} არ არის განსაზღვრული
@msg cannot read property '{key}' of {base} {base} მნიშვნელობის თვისება '{key}' ვერ წაიკითხება
@msg cannot set property '{key}' of {base} {base} მნიშვნელობის თვისება '{key}' ვერ დაყენდება
@msg cannot read a property of {base} {base} მნიშვნელობის თვისება ვერ წაიკითხება
@@ -5570,7 +5570,7 @@ imageTrace Outline კონტური
@msg cannot define property '{key}': {why} თვისება '{key}' ვერ განისაზღვრება: {why}
@msg cannot assign to property '{key}': {why} თვისებას '{key}' მნიშვნელობა ვერ მიენიჭება: {why}
@msg cannot delete property '{key}' თვისება '{key}' ვერ წაიშლება
@msg cannot declare function {name} ფუნქცია {name} ვერ გამოცხადდება
@msg cannot declare function {ident} ფუნქცია {ident} ვერ გამოცხადდება
@msg invalid assignment target მინიჭების არასწორი სამიზნე
@msg the array's length is read-only მასივის სიგრძე მხოლოდ წასაკითხია
@msg the property cannot be redefined თვისება ხელახლა ვერ განისაზღვრება
Can't render this file because it is too large.
+2 -2
View File
@@ -5069,7 +5069,7 @@ theme Appearance 외관
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name}이(가) 정의되지 않았습니다
@msg {ident} is not defined {ident}이(가) 정의되지 않았습니다
@msg cannot read property '{key}' of {base} {base}의 속성 '{key}'을(를) 읽을 수 없습니다
@msg cannot set property '{key}' of {base} {base}의 속성 '{key}'을(를) 설정할 수 없습니다
@msg cannot read a property of {base} {base}의 속성을 읽을 수 없습니다
@@ -5077,7 +5077,7 @@ theme Appearance 외관
@msg cannot define property '{key}': {why} 속성 '{key}'을(를) 정의할 수 없습니다: {why}
@msg cannot assign to property '{key}': {why} 속성 '{key}'에 대입할 수 없습니다: {why}
@msg cannot delete property '{key}' 속성 '{key}'을(를) 삭제할 수 없습니다
@msg cannot declare function {name} 함수 {name}을(를) 선언할 수 없습니다
@msg cannot declare function {ident} 함수 {ident}을(를) 선언할 수 없습니다
@msg invalid assignment target 대입 대상이 잘못되었습니다
@msg the array's length is read-only 배열의 길이는 읽기 전용입니다
@msg the property cannot be redefined 속성을 다시 정의할 수 없습니다
Can't render this file because it is too large.
+2 -2
View File
@@ -98,7 +98,7 @@
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} is niet gedefinieerd
@msg {ident} is not defined {ident} is niet gedefinieerd
@msg cannot read property '{key}' of {base} kan eigenschap '{key}' van {base} niet lezen
@msg cannot set property '{key}' of {base} kan eigenschap '{key}' van {base} niet instellen
@msg cannot read a property of {base} kan geen eigenschap van {base} lezen
@@ -106,7 +106,7 @@
@msg cannot define property '{key}': {why} kan eigenschap '{key}' niet definiëren: {why}
@msg cannot assign to property '{key}': {why} kan niet toewijzen aan eigenschap '{key}': {why}
@msg cannot delete property '{key}' kan eigenschap '{key}' niet verwijderen
@msg cannot declare function {name} kan functie {name} niet declareren
@msg cannot declare function {ident} kan functie {ident} niet declareren
@msg invalid assignment target ongeldig toewijzingsdoel
@msg the array's length is read-only de lengte van de array is alleen-lezen
@msg the property cannot be redefined de eigenschap kan niet opnieuw worden gedefinieerd
Can't render this file because it is too large.
+2 -2
View File
@@ -4460,7 +4460,7 @@ imageTrace Outline Kontur
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} nie jest zdefiniowane
@msg {ident} is not defined {ident} nie jest zdefiniowane
@msg cannot read property '{key}' of {base} nie można odczytać właściwości '{key}' wartości {base}
@msg cannot set property '{key}' of {base} nie można ustawić właściwości '{key}' wartości {base}
@msg cannot read a property of {base} nie można odczytać właściwości wartości {base}
@@ -4468,7 +4468,7 @@ imageTrace Outline Kontur
@msg cannot define property '{key}': {why} nie można zdefiniować właściwości '{key}': {why}
@msg cannot assign to property '{key}': {why} nie można przypisać do właściwości '{key}': {why}
@msg cannot delete property '{key}' nie można usunąć właściwości '{key}'
@msg cannot declare function {name} nie można zadeklarować funkcji {name}
@msg cannot declare function {ident} nie można zadeklarować funkcji {ident}
@msg invalid assignment target nieprawidłowy cel przypisania
@msg the array's length is read-only długość tablicy jest tylko do odczytu
@msg the property cannot be redefined właściwości nie można zdefiniować ponownie
Can't render this file because it is too large.
+2 -2
View File
@@ -5358,7 +5358,7 @@ axis Both Ambos
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} não está definido
@msg {ident} is not defined {ident} não está definido
@msg cannot read property '{key}' of {base} não é possível ler a propriedade '{key}' de {base}
@msg cannot set property '{key}' of {base} não é possível gravar a propriedade '{key}' de {base}
@msg cannot read a property of {base} não é possível ler uma propriedade de {base}
@@ -5366,7 +5366,7 @@ axis Both Ambos
@msg cannot define property '{key}': {why} não é possível definir a propriedade '{key}': {why}
@msg cannot assign to property '{key}': {why} não é possível atribuir à propriedade '{key}': {why}
@msg cannot delete property '{key}' não é possível excluir a propriedade '{key}'
@msg cannot declare function {name} não é possível declarar a função {name}
@msg cannot declare function {ident} não é possível declarar a função {ident}
@msg invalid assignment target destino de atribuição inválido
@msg the array's length is read-only o comprimento do array é somente leitura
@msg the property cannot be redefined a propriedade não pode ser redefinida
Can't render this file because it is too large.
+2 -2
View File
@@ -4375,7 +4375,7 @@ axis Both Оба
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} не определено
@msg {ident} is not defined {ident} не определено
@msg cannot read property '{key}' of {base} невозможно прочитать свойство '{key}' у {base}
@msg cannot set property '{key}' of {base} невозможно задать свойство '{key}' у {base}
@msg cannot read a property of {base} невозможно прочитать свойство у {base}
@@ -4383,7 +4383,7 @@ axis Both Оба
@msg cannot define property '{key}': {why} невозможно определить свойство '{key}': {why}
@msg cannot assign to property '{key}': {why} невозможно присвоить значение свойству '{key}': {why}
@msg cannot delete property '{key}' невозможно удалить свойство '{key}'
@msg cannot declare function {name} невозможно объявить функцию {name}
@msg cannot declare function {ident} невозможно объявить функцию {ident}
@msg invalid assignment target недопустимая цель присваивания
@msg the array's length is read-only длина массива доступна только для чтения
@msg the property cannot be redefined свойство нельзя переопределить
Can't render this file because it is too large.
+2 -2
View File
@@ -4248,7 +4248,7 @@ axis Both Båda
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} är inte definierat
@msg {ident} is not defined {ident} är inte definierat
@msg cannot read property '{key}' of {base} det går inte att läsa egenskapen '{key}' för {base}
@msg cannot set property '{key}' of {base} det går inte att sätta egenskapen '{key}' för {base}
@msg cannot read a property of {base} det går inte att läsa en egenskap för {base}
@@ -4256,7 +4256,7 @@ axis Both Båda
@msg cannot define property '{key}': {why} det går inte att definiera egenskapen '{key}': {why}
@msg cannot assign to property '{key}': {why} det går inte att tilldela egenskapen '{key}': {why}
@msg cannot delete property '{key}' det går inte att ta bort egenskapen '{key}'
@msg cannot declare function {name} det går inte att deklarera funktionen {name}
@msg cannot declare function {ident} det går inte att deklarera funktionen {ident}
@msg invalid assignment target ogiltigt tilldelningsmål
@msg the array's length is read-only arrayens längd är skrivskyddad
@msg the property cannot be redefined egenskapen kan inte definieras om
Can't render this file because it is too large.
+4 -2
View File
@@ -3327,7 +3327,7 @@ fn script_interpreter_core_errors_are_translated() {
"the right side of 'in' is not an object",
"the right side of 'instanceof' is not a function",
"the function's prototype is not an object",
"{name} is not defined",
"{ident} is not defined",
"cannot read property '{key}' of {base}",
"cannot set property '{key}' of {base}",
"cannot read a property of {base}",
@@ -3335,7 +3335,7 @@ fn script_interpreter_core_errors_are_translated() {
"cannot define property '{key}': {why}",
"cannot assign to property '{key}': {why}",
"cannot delete property '{key}'",
"cannot declare function {name}",
"cannot declare function {ident}",
"the array's length is read-only",
"the property cannot be redefined",
"the object is not extensible",
@@ -3355,6 +3355,8 @@ fn script_interpreter_core_errors_are_translated() {
let mut lines: Vec<(String, String, Vec<&str>)> = vec![];
for (source, inner, kept) in [
("nope", "nope is not defined", vec!["nope"]),
// An identifier that is also a message with its own entry stays as written.
("damaged", "damaged is not defined", vec!["damaged"]),
("null.x", "cannot read property 'x' of null", vec!["'x'", "null"]),
("var u; u['y'] = 1", "cannot set property 'y' of undefined", vec!["'y'", "undefined"]),
("var u; u.y = 1", "cannot set a property of undefined", vec!["undefined"]),
+2 -2
View File
@@ -4111,7 +4111,7 @@ axis Both Her İkisi
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} tanımlı değil
@msg {ident} is not defined {ident} tanımlı değil
@msg cannot read property '{key}' of {base} {base} değerinin '{key}' özelliği okunamıyor
@msg cannot set property '{key}' of {base} {base} değerinin '{key}' özelliği ayarlanamıyor
@msg cannot read a property of {base} {base} değerinin bir özelliği okunamıyor
@@ -4119,7 +4119,7 @@ axis Both Her İkisi
@msg cannot define property '{key}': {why} '{key}' özelliği tanımlanamıyor: {why}
@msg cannot assign to property '{key}': {why} '{key}' özelliğine atama yapılamıyor: {why}
@msg cannot delete property '{key}' '{key}' özelliği silinemiyor
@msg cannot declare function {name} {name} fonksiyonu bildirilemiyor
@msg cannot declare function {ident} {ident} fonksiyonu bildirilemiyor
@msg invalid assignment target geçersiz atama hedefi
@msg the array's length is read-only dizinin uzunluğu salt okunur
@msg the property cannot be redefined özellik yeniden tanımlanamaz
Can't render this file because it contains an unexpected character in line 5 and column 25.
+2 -2
View File
@@ -4361,7 +4361,7 @@ axis Both Обидві
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} не визначено
@msg {ident} is not defined {ident} не визначено
@msg cannot read property '{key}' of {base} неможливо прочитати властивість '{key}' у {base}
@msg cannot set property '{key}' of {base} неможливо встановити властивість '{key}' у {base}
@msg cannot read a property of {base} неможливо прочитати властивість у {base}
@@ -4369,7 +4369,7 @@ axis Both Обидві
@msg cannot define property '{key}': {why} неможливо визначити властивість '{key}': {why}
@msg cannot assign to property '{key}': {why} неможливо присвоїти значення властивості '{key}': {why}
@msg cannot delete property '{key}' неможливо видалити властивість '{key}'
@msg cannot declare function {name} неможливо оголосити функцію {name}
@msg cannot declare function {ident} неможливо оголосити функцію {ident}
@msg invalid assignment target недійсна ціль присвоєння
@msg the array's length is read-only довжина масиву доступна лише для читання
@msg the property cannot be redefined властивість не можна перевизначити
Can't render this file because it is too large.
+2 -2
View File
@@ -4804,7 +4804,7 @@ theme Appearance Giao diện
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} chưa được định nghĩa
@msg {ident} is not defined {ident} chưa được định nghĩa
@msg cannot read property '{key}' of {base} không thể đọc thuộc tính '{key}' của {base}
@msg cannot set property '{key}' of {base} không thể đặt thuộc tính '{key}' của {base}
@msg cannot read a property of {base} không thể đọc thuộc tính của {base}
@@ -4812,7 +4812,7 @@ theme Appearance Giao diện
@msg cannot define property '{key}': {why} không thể định nghĩa thuộc tính '{key}': {why}
@msg cannot assign to property '{key}': {why} không thể gán cho thuộc tính '{key}': {why}
@msg cannot delete property '{key}' không thể xóa thuộc tính '{key}'
@msg cannot declare function {name} không thể khai báo hàm {name}
@msg cannot declare function {ident} không thể khai báo hàm {ident}
@msg invalid assignment target đích gán không hợp lệ
@msg the array's length is read-only độ dài của mảng là chỉ đọc
@msg the property cannot be redefined không thể định nghĩa lại thuộc tính
Can't render this file because it contains an unexpected character in line 204 and column 5.
+2 -2
View File
@@ -4822,7 +4822,7 @@ imageTrace Outline 轮廓
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} 未定义
@msg {ident} is not defined {ident} 未定义
@msg cannot read property '{key}' of {base} 无法读取 {base} 的属性 '{key}'
@msg cannot set property '{key}' of {base} 无法设置 {base} 的属性 '{key}'
@msg cannot read a property of {base} 无法读取 {base} 的属性
@@ -4830,7 +4830,7 @@ imageTrace Outline 轮廓
@msg cannot define property '{key}': {why} 无法定义属性 '{key}':{why}
@msg cannot assign to property '{key}': {why} 无法为属性 '{key}' 赋值:{why}
@msg cannot delete property '{key}' 无法删除属性 '{key}'
@msg cannot declare function {name} 无法声明函数 {name}
@msg cannot declare function {ident} 无法声明函数 {ident}
@msg invalid assignment target 赋值目标无效
@msg the array's length is read-only 数组的长度是只读的
@msg the property cannot be redefined 属性无法重新定义
Can't render this file because it is too large.
+2 -2
View File
@@ -2536,7 +2536,7 @@ file-filter Templates 範本
@msg SyntaxError: {e} SyntaxError: {e}
@msg EvalError: {e} EvalError: {e}
@msg URIError: {e} URIError: {e}
@msg {name} is not defined {name} 未定義
@msg {ident} is not defined {ident} 未定義
@msg cannot read property '{key}' of {base} 無法讀取 {base} 的屬性 '{key}'
@msg cannot set property '{key}' of {base} 無法設定 {base} 的屬性 '{key}'
@msg cannot read a property of {base} 無法讀取 {base} 的屬性
@@ -2544,7 +2544,7 @@ file-filter Templates 範本
@msg cannot define property '{key}': {why} 無法定義屬性 '{key}':{why}
@msg cannot assign to property '{key}': {why} 無法為屬性 '{key}' 賦值:{why}
@msg cannot delete property '{key}' 無法刪除屬性 '{key}'
@msg cannot declare function {name} 無法宣告函式 {name}
@msg cannot declare function {ident} 無法宣告函式 {ident}
@msg invalid assignment target 賦值目標無效
@msg the array's length is read-only 陣列的長度是唯讀的
@msg the property cannot be redefined 屬性無法重新定義
Can't render this file because it is too large.