Skip to content

Commit

Permalink
Don't translate SimpleDateFormat string.
Browse files Browse the repository at this point in the history
The yyMMdd string that the sketch archiver tool uses to format archive
names was being localized (i.e. was wrapped in _()).  This gave an
error on startup (and the Arduino software would fail to launch), if
someone translated the string to something that wasn't a valid date
format.  Since this is an internal string, it shouldn't be translated.

http://code.google.com/p/arduino/issues/detail?id=942
  • Loading branch information
damellis committed Jun 3, 2012
1 parent b787982 commit a9fedab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/processing/app/tools/Archiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void init(Editor editor) {
numberFormat.setGroupingUsed(false); // no commas
numberFormat.setMinimumIntegerDigits(digits);

dateFormat = new SimpleDateFormat(_("yyMMdd"));
dateFormat = new SimpleDateFormat("yyMMdd");
}


Expand Down

0 comments on commit a9fedab

Please sign in to comment.