1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Added 3 palette error strings for translation

This commit is contained in:
OverloadedOrama 2020-01-08 17:31:56 +02:00
parent ddd14997d6
commit 83641ecc9a
11 changed files with 112 additions and 17 deletions

View file

@ -54,7 +54,7 @@ func on_palette_import_file_selected(path : String) -> void:
on_palette_select(palette.name) on_palette_select(palette.name)
save_palette(palette.name, palette.name + ".json") save_palette(palette.name, palette.name + ".json")
else: 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() Global.error_dialog.popup_centered()
else: else:
Global.error_dialog.set_text("Invalid Palette file!") 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 # Check if new name is valid
if name.empty(): 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): if Global.palettes.has(name):
return "Error: Palette '" + name + "' already exists!" return tr("Error: Palette named '%s' already exists!") % name
new_palette.name = name new_palette.name = name
# Check if source palette has data # Check if source palette has data

View file

@ -610,6 +610,15 @@ msgstr ""
msgid "Create a new empty palette?" 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 ""
msgid "Invalid Palette file!"
msgstr ""
msgid "Edit Palette" msgid "Edit Palette"
msgstr "" msgstr ""

View file

@ -674,6 +674,15 @@ msgstr "Farbnamen:"
msgid "Create a new empty palette?" msgid "Create a new empty palette?"
msgstr "Erstelle eine neue leere 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" msgid "Edit Palette"
msgstr "Bearbeite Palette" msgstr "Bearbeite Palette"

View file

@ -569,19 +569,19 @@ msgid "LAYERVISIBILITY_HT"
msgstr "Εναλλαγή της ορατότητας της στρώσης" msgstr "Εναλλαγή της ορατότητας της στρώσης"
msgid "Palette" msgid "Palette"
msgstr "Παλέττα" msgstr "Παλέτα"
msgid "Palettes" msgid "Palettes"
msgstr "Παλέττες" msgstr "Παλέτες"
msgid "NEWPALETTE_HT" msgid "NEWPALETTE_HT"
msgstr "Νέα παλέττα" msgstr "Νέα παλέτα"
msgid "EDITPALETTE_HT" msgid "EDITPALETTE_HT"
msgstr "Επεξεργασία παλέττας" msgstr "Επεξεργασία παλέτας"
msgid "CHOOSEPALETTE_HT" msgid "CHOOSEPALETTE_HT"
msgstr "Επιλογή παλέττας" msgstr "Επιλογή παλέτας"
msgid "Undo: Draw" msgid "Undo: Draw"
msgstr "Αναίρεση: Ζωγραφική" msgstr "Αναίρεση: Ζωγραφική"
@ -659,22 +659,31 @@ msgid "File exported"
msgstr "Έγινε εξαγωγή αρχείου" msgstr "Έγινε εξαγωγή αρχείου"
msgid "New Empty Palette" msgid "New Empty Palette"
msgstr "Νέα Κενή Παλέττα" msgstr "Νέα Κενή Παλέτα"
msgid "Import Palette" msgid "Import Palette"
msgstr "Εισαγωγή Παλέττας" msgstr "Εισαγωγή Παλέτας"
msgid "Palette Name:" msgid "Palette Name:"
msgstr "Όνομα Παλέττας:" msgstr "Όνομα Παλέτας:"
msgid "Color Name:" msgid "Color Name:"
msgstr "Όνομα Χρώματος:" msgstr "Όνομα Χρώματος:"
msgid "Create a new empty palette?" 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" msgid "Edit Palette"
msgstr "Επεξεργασία Παλέττας" msgstr "Επεξεργασία Παλέτας"
msgid "Patrons:" msgid "Patrons:"
msgstr "" msgstr ""

View file

@ -665,11 +665,20 @@ msgstr "Color Name:"
msgid "Create a new empty palette?" msgid "Create a new empty palette?"
msgstr "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" msgid "Edit Palette"
msgstr "Edit Palette" msgstr "Edit Palette"
msgid "Patrons:" msgid "Patrons:"
msgstr "" msgstr "Patrons:"
msgid "Changes" msgid "Changes"
msgstr "Changes" msgstr "Changes"

View file

@ -693,6 +693,15 @@ msgstr "Couleur :"
msgid "Create a new empty palette?" 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 ""
msgid "Invalid Palette file!"
msgstr ""
msgid "Edit Palette" msgid "Edit Palette"
msgstr "" msgstr ""

View file

@ -367,7 +367,8 @@ msgstr ""
msgid "COLORDEFAULTS_HT" msgid "COLORDEFAULTS_HT"
msgstr "" 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" msgid "Raw Mode"
msgstr "Modalità Raw" msgstr "Modalità Raw"
@ -382,10 +383,14 @@ msgid "Left pixel indicator"
msgstr "Indicatore pixel strumento sinistro" msgstr "Indicatore pixel strumento sinistro"
msgid "LEFT_INDIC_HT" 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" 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" msgid "Right pixel indicator"
msgstr "Indicatore pixel strumento destro" msgstr "Indicatore pixel strumento destro"
@ -665,6 +670,15 @@ msgstr "Nome Colore:"
msgid "Create a new empty palette?" msgid "Create a new empty palette?"
msgstr "Creare una nuova palette vuota?" 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" msgid "Edit Palette"
msgstr "Modifica Palette" msgstr "Modifica Palette"

View file

@ -682,6 +682,15 @@ msgstr "Kolor:"
msgid "Create a new empty palette?" 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 ""
msgid "Invalid Palette file!"
msgstr ""
msgid "Edit Palette" msgid "Edit Palette"
msgstr "" msgstr ""

View file

@ -674,6 +674,15 @@ msgstr "Nome da Cor:"
msgid "Create a new empty palette?" msgid "Create a new empty palette?"
msgstr "Criar uma nova paleta vazia?" 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" msgid "Edit Palette"
msgstr "Editar Paleta" msgstr "Editar Paleta"

View file

@ -681,6 +681,15 @@ msgstr "Цвет:"
msgid "Create a new empty palette?" 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 ""
msgid "Invalid Palette file!"
msgstr ""
msgid "Edit Palette" msgid "Edit Palette"
msgstr "" msgstr ""

View file

@ -664,6 +664,15 @@ msgstr "顏色:"
msgid "Create a new empty palette?" 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 ""
msgid "Invalid Palette file!"
msgstr ""
msgid "Edit Palette" msgid "Edit Palette"
msgstr "編輯色盤" msgstr "編輯色盤"