Skip to content

Commit 9e25ad5

Browse files
author
Shigeru KANEMOTO
committed
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.
1 parent 27b8048 commit 9e25ad5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/processing/app/debug/TargetPlatform.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
*/
2424
package processing.app.debug;
2525

26+
import static processing.app.I18n._;
27+
2628
import java.io.File;
2729
import java.util.HashMap;
2830
import java.util.Map;
@@ -46,6 +48,12 @@ public TargetPlatform(String _name, File _folder) {
4648
programmers = new HashMap<String, PreferencesMap>();
4749
preferences = new PreferencesMap();
4850

51+
if (false) {
52+
// Hack to extract this word by gettext tool.
53+
// This word is actually defined in the "boards.txt".
54+
String notused = _("Processor");
55+
}
56+
4957
try {
5058
File boardsFile = new File(_folder, "boards.txt");
5159
if (boardsFile.exists()) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy