[jsword-svn] r2106 - in trunk/jsword/src: main/java/gnu/lgpl main/java/org/crosswire/jsword/book main/java/org/crosswire/jsword/book/sword test/java/org/crosswire/jsword/passage

dmsmith at crosswire.org dmsmith at crosswire.org
Mon Mar 7 14:14:31 MST 2011


Author: dmsmith
Date: 2011-03-07 14:14:31 -0700 (Mon, 07 Mar 2011)
New Revision: 2106

Modified:
   trunk/jsword/src/main/java/gnu/lgpl/License.java
   trunk/jsword/src/main/java/org/crosswire/jsword/book/BookCategory.java
   trunk/jsword/src/main/java/org/crosswire/jsword/book/sword/ConfigEntryType.java
   trunk/jsword/src/test/java/org/crosswire/jsword/passage/AccuracyTypeTest.java
Log:
JS-104 Added translator instructions to strings

Modified: trunk/jsword/src/main/java/gnu/lgpl/License.java
===================================================================
--- trunk/jsword/src/main/java/gnu/lgpl/License.java	2011-03-07 21:13:31 UTC (rev 2105)
+++ trunk/jsword/src/main/java/gnu/lgpl/License.java	2011-03-07 21:14:31 UTC (rev 2106)
@@ -549,7 +549,6 @@
      * @return the warranty for this program
      */
     public String getWarranty() {
-        // I18N(DMS)
         return LGPLMsg.lookupText("License.warranty", name);
     }
 
@@ -559,7 +558,6 @@
      * @return the details of this program's distribution license
      */
     public String getDetails() {
-        // I18N(DMS)
         return LGPLMsg.lookupText("License.details", name);
     }
 

Modified: trunk/jsword/src/main/java/org/crosswire/jsword/book/BookCategory.java
===================================================================
--- trunk/jsword/src/main/java/org/crosswire/jsword/book/BookCategory.java	2011-03-07 21:13:31 UTC (rev 2105)
+++ trunk/jsword/src/main/java/org/crosswire/jsword/book/BookCategory.java	2011-03-07 21:14:31 UTC (rev 2106)
@@ -35,47 +35,47 @@
  */
 public final class BookCategory implements Serializable, Comparable<BookCategory> {
     /** Books that are Bibles */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of Bibles.
     public static final BookCategory BIBLE = new BookCategory("Biblical Texts", JSMsg.gettext("Biblical Texts"));
 
     /** Books that are Dictionaries */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of Lexicons and Dictionaries.
     public static final BookCategory DICTIONARY = new BookCategory("Lexicons / Dictionaries", JSMsg.gettext("Dictionaries"));
 
     /** Books that are Commentaries */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of Commentaries.
     public static final BookCategory COMMENTARY = new BookCategory("Commentaries", JSMsg.gettext("Commentaries"));
 
     /** Books that are indexed by day. AKA, Daily Devotions */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of Daily Devotions, indexed by day of the year.
     public static final BookCategory DAILY_DEVOTIONS = new BookCategory("Daily Devotional", JSMsg.gettext("Daily Devotionals"));
 
     /** Books that map words from one language to another. */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of Glossaries that map words/phrases from one language into another.
     public static final BookCategory GLOSSARY = new BookCategory("Glossaries", JSMsg.gettext("Glossaries"));
 
     /** Books that are questionable. */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of books that are considered unorthodox by mainstream Christianity.
     public static final BookCategory QUESTIONABLE = new BookCategory("Cults / Unorthodox / Questionable Material", JSMsg.gettext("Cults / Unorthodox / Questionable Materials"));
 
     /** Books that are just essays. */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of just essays.
     public static final BookCategory ESSAYS = new BookCategory("Essays", JSMsg.gettext("Essays"));
 
     /** Books that are predominately images. */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of books containing mostly images.
     public static final BookCategory IMAGES = new BookCategory("Images", JSMsg.gettext("Images"));
 
     /** Books that are a collection of maps. */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of books containing mostly maps.
     public static final BookCategory MAPS = new BookCategory("Maps", JSMsg.gettext("Maps"));
 
     /** Books that are just books. */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of general books.
     public static final BookCategory GENERAL_BOOK = new BookCategory("Generic Books", JSMsg.gettext("General Books"));
 
     /** Books that are not any of the above. This is a catch all for new book categories. */
-    // I18N(DMS)
+    // TRANSLATOR: The name for the book category consisting of books not in any of the other categories.
     public static final BookCategory OTHER = new BookCategory("Other", JSMsg.gettext("Other"));
 
     /**

Modified: trunk/jsword/src/main/java/org/crosswire/jsword/book/sword/ConfigEntryType.java
===================================================================
--- trunk/jsword/src/main/java/org/crosswire/jsword/book/sword/ConfigEntryType.java	2011-03-07 21:13:31 UTC (rev 2105)
+++ trunk/jsword/src/main/java/org/crosswire/jsword/book/sword/ConfigEntryType.java	2011-03-07 21:14:31 UTC (rev 2106)
@@ -816,9 +816,9 @@
     };
 
     /**
-     * A list of prior "initials" for the current book. TODO(dms): when a user
-     * installs a book with an obsoletes that matches an installed book, offer
-     * the user the opportunity to delete the old book.
+     * A list of prior "initials" for the current book.
+     * TODO(dms): when a user installs a book with an obsoletes that matches
+     * an installed book, offer the user the opportunity to delete the old book.
      */
     public static final ConfigEntryType OBSOLETES = new ConfigEntryType("Obsoletes") {
 

Modified: trunk/jsword/src/test/java/org/crosswire/jsword/passage/AccuracyTypeTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/jsword/passage/AccuracyTypeTest.java	2011-03-07 21:13:31 UTC (rev 2105)
+++ trunk/jsword/src/test/java/org/crosswire/jsword/passage/AccuracyTypeTest.java	2011-03-07 21:14:31 UTC (rev 2106)
@@ -26,7 +26,7 @@
         try {
             AccuracyType.fromText("1:2:3:4", new String[] { "1", "2", "3", "4"}, null, null);
         } catch (NoSuchVerseException nsve) {
-            // I18N(DMS)
+            // TRANSLATOR: The user specified a verse with too many separators. {0} is a placeholder for the allowable separators.
             NoSuchVerseException correctException = new NoSuchVerseException(JSMsg.gettext("Too many parts to the Verse. (Parts are separated by any of {0})", 
                 "1:2:3:4, 1, 2, 3, 4"));
             assertEquals("Unexpected exception message", correctException.getMessage(), nsve.getMessage());
@@ -45,7 +45,7 @@
         try {
             AccuracyType.fromText("-1:2:3", new String[] { "-1", "2", "3"}, null, null);
         } catch (NoSuchVerseException nsve) {
-            // I18N(DMS)
+            // TRANSLATOR: The user specified a verse with too many separators. {0} is a placeholder for the allowable separators.
             NoSuchVerseException correctException = new NoSuchVerseException(JSMsg.gettext("Too many parts to the Verse. (Parts are separated by any of {0})", 
                     "-1:2:3, -1, 2, 3"));
             assertEquals("Unexpected exception message", correctException.getMessage(), nsve.getMessage());




More information about the jsword-svn mailing list