[jsword-svn] r1522 - trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install
dmsmith at www.crosswire.org
dmsmith at www.crosswire.org
Tue Jul 24 13:11:04 MST 2007
Author: dmsmith
Date: 2007-07-24 13:11:02 -0700 (Tue, 24 Jul 2007)
New Revision: 1522
Modified:
trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/SitePane.java
Log:
farsi number representation of download size.
Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/SitePane.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/SitePane.java 2007-07-24 13:58:48 UTC (rev 1521)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/SitePane.java 2007-07-24 20:11:02 UTC (rev 1522)
@@ -44,6 +44,7 @@
import javax.swing.tree.TreePath;
import javax.swing.tree.TreeSelectionModel;
+import org.crosswire.common.icu.NumberShaper;
import org.crosswire.common.swing.ActionFactory;
import org.crosswire.common.swing.CWScrollPane;
import org.crosswire.common.swing.FixedSplitPane;
@@ -98,6 +99,8 @@
actions = new ActionFactory(SitePane.class, this);
+ shaper = new NumberShaper();
+
BookList bl = installer;
if (bl == null)
{
@@ -298,7 +301,8 @@
try
{
- if (JOptionPane.showConfirmDialog(this, Msg.CONFIRM_DELETE_BOOK.toString(new Object[] {book.getName()}),
+ String msg = shaper.shape(Msg.CONFIRM_DELETE_BOOK.toString(new Object[] {book.getName()}));
+ if (JOptionPane.showConfirmDialog(this, msg,
Msg.CONFIRM_DELETE_TITLE.toString(),
JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)
{
@@ -434,6 +438,7 @@
size /= 1024.0F;
msg = Msg.MB_SIZE;
}
+
if (JOptionPane.showConfirmDialog(this, msg.toString(new Object[] {name.getName(), new Float(size)}),
Msg.CONFIRMATION_TITLE.toString(),
JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)
@@ -562,6 +567,7 @@
*/
private transient ActionFactory actions;
+ private NumberShaper shaper;
/*
* GUI Components
*/
More information about the jsword-svn
mailing list