From cbcd77a7f7ebdb01c7d88b95a3b69b9289d94ebe Mon Sep 17 00:00:00 2001 From: mtsio Date: Thu, 4 Jun 2015 03:09:20 +0300 Subject: [PATCH] add i18n for archiver and missing text --- app/src/processing/app/tools/Archiver.java | 4 +++- build/shared/lib/languages/PDE.properties | 3 ++- build/shared/lib/languages/PDE_el.properties | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/processing/app/tools/Archiver.java b/app/src/processing/app/tools/Archiver.java index b96511849..9bdd2789a 100644 --- a/app/src/processing/app/tools/Archiver.java +++ b/app/src/processing/app/tools/Archiver.java @@ -119,7 +119,9 @@ public class Archiver implements Tool { zos.flush(); zos.close(); - editor.statusNotice("Created archive " + newbie.getName() + "."); + editor.statusNotice(Language + .interpolate("editor.status.archiver.create", + newbie.getName())); } catch (IOException e) { e.printStackTrace(); diff --git a/build/shared/lib/languages/PDE.properties b/build/shared/lib/languages/PDE.properties index f1099bd2d..f946aa6f2 100644 --- a/build/shared/lib/languages/PDE.properties +++ b/build/shared/lib/languages/PDE.properties @@ -331,6 +331,8 @@ editor.status.printing.canceled = Printing canceled. editor.status.copy_as_html = Code formatted as HTML has been copied to the clipboard. editor.status.debug.busy = Debugger busy... editor.status.debug.halt = Debugger halted. +editor.status.archiver.create = Created archive "%s". +editor.status.archiver.cancel = Archive sketch canceled. # Errors editor.status.warning = Warning @@ -346,7 +348,6 @@ editor.status.missing.left_curly_bracket = Missing left curly bracket "{" editor.status.missing.right_curly_bracket = Missing right curly bracket "}" editor.status.missing.add = Consider adding "%s" editor.status.reserved_words = "color" and "int" are reserved words & cannot be used as variable names -# methoddef, varname, classname, namefield, typeA, typeB will be replaced with the correct value during runtime (don't translate) editor.status.undefined_method = The function "%s(%s)" does not exist editor.status.empty_param = The function "%s()" does not expect any parameters editor.status.wrong_param = The function "%s()" expects parameters like: "%s(%s)" diff --git a/build/shared/lib/languages/PDE_el.properties b/build/shared/lib/languages/PDE_el.properties index 55fd0819f..2163ea8fc 100644 --- a/build/shared/lib/languages/PDE_el.properties +++ b/build/shared/lib/languages/PDE_el.properties @@ -361,6 +361,8 @@ editor.status.type_mismatch = Δεν υπάρχει αντιστοιχία τύ editor.status.unused_variable = Η τιμή της τοπικής μεταβλητής "%s" δεν χρησιμοποιείται editor.status.uninitialized_variable = Η τοπική μεταβλητή "%s" ίσως να μην έχει αρχικοποιηθεί editor.status.no_effect_assignment = Η ανάθεση στη μεταβλητή "%s" δεν έχει αποτέλεσμα +editor.status.archiver.create = Δημιουργήθηκε το αρχείο "%s". +editor.status.archiver.cancel = H αρχειοθέτηση σχεδίου ακυρώθηκε. # Footer buttons editor.footer.errors = Σφάλματα