From 9e25ad57dba2ba427d4cda23fe8485a170f9e9af Mon Sep 17 00:00:00 2001 From: Shigeru KANEMOTO Date: Sun, 11 Nov 2012 15:12:51 +0900 Subject: [PATCH] Hack to include a word "Processor" in *.po files. The word "Processor" appears in the "Tools" menu. However, this word is not in the "*.po" files. This is because the word is not in any source code files, and is in "boards.txt". This hack is to include this word in the "*.po" files by extracting _(...) calls automatically by gettext tool. --- app/src/processing/app/debug/TargetPlatform.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/processing/app/debug/TargetPlatform.java b/app/src/processing/app/debug/TargetPlatform.java index 4eabe9a95..542514e39 100644 --- a/app/src/processing/app/debug/TargetPlatform.java +++ b/app/src/processing/app/debug/TargetPlatform.java @@ -23,6 +23,8 @@ */ package processing.app.debug; +import static processing.app.I18n._; + import java.io.File; import java.util.HashMap; import java.util.Map; @@ -46,6 +48,12 @@ public class TargetPlatform { programmers = new HashMap(); preferences = new PreferencesMap(); + if (false) { + // Hack to extract this word by gettext tool. + // This word is actually defined in the "boards.txt". + String notused = _("Processor"); + } + try { File boardsFile = new File(_folder, "boards.txt"); if (boardsFile.exists()) {