diff --git a/Scripts/Palette/PaletteContainer.gd b/Scripts/Palette/PaletteContainer.gd index bb3e37f08..08e49dab0 100644 --- a/Scripts/Palette/PaletteContainer.gd +++ b/Scripts/Palette/PaletteContainer.gd @@ -54,7 +54,7 @@ func on_palette_import_file_selected(path : String) -> void: on_palette_select(palette.name) save_palette(palette.name, palette.name + ".json") else: - Global.error_dialog.set_text("Palette named '" + palette.name + "' already exists") + Global.error_dialog.set_text(tr("Error: Palette named '%s' already exists!") % palette.name) Global.error_dialog.popup_centered() else: Global.error_dialog.set_text("Invalid Palette file!") @@ -82,9 +82,9 @@ func create_new_palette(name : String, _from_palette : Palette) -> String: # Ret # Check if new name is valid if name.empty(): - return "Error: Palette must have a valid name." + return tr("Error: Palette must have a valid name.") if Global.palettes.has(name): - return "Error: Palette '" + name + "' already exists!" + return tr("Error: Palette named '%s' already exists!") % name new_palette.name = name # Check if source palette has data diff --git a/Translations/Translations.pot b/Translations/Translations.pot index 93b7b573e..395b0e70d 100644 --- a/Translations/Translations.pot +++ b/Translations/Translations.pot @@ -610,6 +610,15 @@ msgstr "" msgid "Create a new empty palette?" msgstr "" +msgid "Error: Palette must have a valid name." +msgstr "" + +msgid "Error: Palette named '%s' already exists!" +msgstr "" + +msgid "Invalid Palette file!" +msgstr "" + msgid "Edit Palette" msgstr "" diff --git a/Translations/de.po b/Translations/de.po index 8805c352d..29353a884 100644 --- a/Translations/de.po +++ b/Translations/de.po @@ -674,6 +674,15 @@ msgstr "Farbnamen:" msgid "Create a new empty palette?" msgstr "Erstelle eine neue leere Palette" +msgid "Error: Palette must have a valid name." +msgstr "" + +msgid "Error: Palette named '%s' already exists!" +msgstr "" + +msgid "Invalid Palette file!" +msgstr "" + msgid "Edit Palette" msgstr "Bearbeite Palette" diff --git a/Translations/el.po b/Translations/el.po index d3f963db9..6bb9fef2c 100644 --- a/Translations/el.po +++ b/Translations/el.po @@ -569,19 +569,19 @@ msgid "LAYERVISIBILITY_HT" msgstr "Εναλλαγή της ορατότητας της στρώσης" msgid "Palette" -msgstr "Παλέττα" +msgstr "Παλέτα" msgid "Palettes" -msgstr "Παλέττες" +msgstr "Παλέτες" msgid "NEWPALETTE_HT" -msgstr "Νέα παλέττα" +msgstr "Νέα παλέτα" msgid "EDITPALETTE_HT" -msgstr "Επεξεργασία παλέττας" +msgstr "Επεξεργασία παλέτας" msgid "CHOOSEPALETTE_HT" -msgstr "Επιλογή παλέττας" +msgstr "Επιλογή παλέτας" msgid "Undo: Draw" msgstr "Αναίρεση: Ζωγραφική" @@ -659,22 +659,31 @@ msgid "File exported" msgstr "Έγινε εξαγωγή αρχείου" msgid "New Empty Palette" -msgstr "Νέα Κενή Παλέττα" +msgstr "Νέα Κενή Παλέτα" msgid "Import Palette" -msgstr "Εισαγωγή Παλέττας" +msgstr "Εισαγωγή Παλέτας" msgid "Palette Name:" -msgstr "Όνομα Παλέττας:" +msgstr "Όνομα Παλέτας:" msgid "Color Name:" msgstr "Όνομα Χρώματος:" msgid "Create a new empty palette?" -msgstr "Δημιουργία νέας κενής παλέττας;" +msgstr "Δημιουργία νέας κενής παλέτας;" + +msgid "Error: Palette must have a valid name." +msgstr "Σφάλμα: Η παλέτα πρέπει να έχει έγκυρο όνομα." + +msgid "Error: Palette named '%s' already exists!" +msgstr "Σφάλμα: Η παλέτα με το όνομα '%s' υπάρχει ήδη!" + +msgid "Invalid Palette file!" +msgstr "Μη έγκυρο αρχείο παλέτας!" msgid "Edit Palette" -msgstr "Επεξεργασία Παλέττας" +msgstr "Επεξεργασία Παλέτας" msgid "Patrons:" msgstr "" diff --git a/Translations/en.po b/Translations/en.po index 9bd909070..fd18ef2f7 100644 --- a/Translations/en.po +++ b/Translations/en.po @@ -665,11 +665,20 @@ msgstr "Color Name:" msgid "Create a new empty palette?" msgstr "Create a new empty palette?" +msgid "Error: Palette must have a valid name." +msgstr "Error: Palette must have a valid name." + +msgid "Error: Palette named '%s' already exists!" +msgstr "Error: Palette named '%s' already exists!" + +msgid "Invalid Palette file!" +msgstr "Invalid Palette file!" + msgid "Edit Palette" msgstr "Edit Palette" msgid "Patrons:" -msgstr "" +msgstr "Patrons:" msgid "Changes" msgstr "Changes" diff --git a/Translations/fr.po b/Translations/fr.po index e1f732d1d..aa7cc365a 100644 --- a/Translations/fr.po +++ b/Translations/fr.po @@ -693,6 +693,15 @@ msgstr "Couleur :" msgid "Create a new empty palette?" msgstr "" +msgid "Error: Palette must have a valid name." +msgstr "" + +msgid "Error: Palette named '%s' already exists!" +msgstr "" + +msgid "Invalid Palette file!" +msgstr "" + msgid "Edit Palette" msgstr "" diff --git a/Translations/it.po b/Translations/it.po index 3fc406fbc..b94355299 100644 --- a/Translations/it.po +++ b/Translations/it.po @@ -367,7 +367,8 @@ msgstr "" msgid "COLORDEFAULTS_HT" msgstr "" -"Resetta i colori al loro stato originale (nero per sinistra, bianco per destra)" +"Resetta i colori al loro stato originale (nero per sinistra, bianco per " +"destra)" msgid "Raw Mode" msgstr "Modalità Raw" @@ -382,10 +383,14 @@ msgid "Left pixel indicator" msgstr "Indicatore pixel strumento sinistro" msgid "LEFT_INDIC_HT" -msgstr "Mostra l'indicatore pixel del mouse sinistro o il pennello sul canvas quando disegni" +msgstr "" +"Mostra l'indicatore pixel del mouse sinistro o il pennello sul canvas quando " +"disegni" msgid "RIGHT_INDIC_HT" -msgstr "Mostra l'indicatore pixel del mouse destro o il pennello sul canvas quando disegni" +msgstr "" +"Mostra l'indicatore pixel del mouse destro o il pennello sul canvas quando " +"disegni" msgid "Right pixel indicator" msgstr "Indicatore pixel strumento destro" @@ -665,6 +670,15 @@ msgstr "Nome Colore:" msgid "Create a new empty palette?" msgstr "Creare una nuova palette vuota?" +msgid "Error: Palette must have a valid name." +msgstr "" + +msgid "Error: Palette named '%s' already exists!" +msgstr "" + +msgid "Invalid Palette file!" +msgstr "" + msgid "Edit Palette" msgstr "Modifica Palette" diff --git a/Translations/pl.po b/Translations/pl.po index fd8e6217a..2c9e564e3 100644 --- a/Translations/pl.po +++ b/Translations/pl.po @@ -682,6 +682,15 @@ msgstr "Kolor:" msgid "Create a new empty palette?" msgstr "" +msgid "Error: Palette must have a valid name." +msgstr "" + +msgid "Error: Palette named '%s' already exists!" +msgstr "" + +msgid "Invalid Palette file!" +msgstr "" + msgid "Edit Palette" msgstr "" diff --git a/Translations/pt_BR.po b/Translations/pt_BR.po index a74bf38f1..0107b75b5 100644 --- a/Translations/pt_BR.po +++ b/Translations/pt_BR.po @@ -674,6 +674,15 @@ msgstr "Nome da Cor:" msgid "Create a new empty palette?" msgstr "Criar uma nova paleta vazia?" +msgid "Error: Palette must have a valid name." +msgstr "" + +msgid "Error: Palette named '%s' already exists!" +msgstr "" + +msgid "Invalid Palette file!" +msgstr "" + msgid "Edit Palette" msgstr "Editar Paleta" diff --git a/Translations/ru.po b/Translations/ru.po index 0a9f0ebb3..e76c8fd80 100644 --- a/Translations/ru.po +++ b/Translations/ru.po @@ -681,6 +681,15 @@ msgstr "Цвет:" msgid "Create a new empty palette?" msgstr "" +msgid "Error: Palette must have a valid name." +msgstr "" + +msgid "Error: Palette named '%s' already exists!" +msgstr "" + +msgid "Invalid Palette file!" +msgstr "" + msgid "Edit Palette" msgstr "" diff --git a/Translations/zh_TW.po b/Translations/zh_TW.po index a0d9619e3..8510213c7 100644 --- a/Translations/zh_TW.po +++ b/Translations/zh_TW.po @@ -664,6 +664,15 @@ msgstr "顏色:" msgid "Create a new empty palette?" msgstr "新增空的色盤?" +msgid "Error: Palette must have a valid name." +msgstr "" + +msgid "Error: Palette named '%s' already exists!" +msgstr "" + +msgid "Invalid Palette file!" +msgstr "" + msgid "Edit Palette" msgstr "編輯色盤"