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.
This commit is contained in:
Shigeru KANEMOTO 2012-11-11 15:12:51 +09:00
parent 27b8048fc6
commit 9e25ad57db
1 changed files with 8 additions and 0 deletions

View File

@ -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<String, PreferencesMap>();
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()) {