mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
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:
parent
27b8048fc6
commit
9e25ad57db
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user