View Single Post
Old 01-17-2012, 07:32 AM   #5
rastik
Connoisseur
rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.rastik is fluent in JavaScript as well as Klingon.
 
Posts: 65
Karma: 4662
Join Date: Feb 2011
Location: CZ
Device: Kindle Touch 3G, Kindle Keyboard
Names are AreasResources and UtilResources, but every time I write the whole com.amazon.kindle.apps.util.resources.UtilResource s string, it is split by the forum. It does not allow words longer than 50 characters
Can I use resource file to replace this?
Code:
public class AreasResources extends ListResourceBundle
{

    public AreasResources()
    {
    }

    protected Object[][] getContents()
    {
        return D;
    }

    static final Object D[][] = {
        {
            "addto.collection.label", "Add to Collection"
        }, {
            "notesandmarks.label", "Notes & Marks"
        }, {
            "goto.label", "Go To..."
        }, {
            "search.document.label", "Search This Document"
        }, {
            "delete.document.label", "Delete This Document"
        }, {
            "Areas.titleArea.font", FontCache.getInstance().get("Serif", 1, 23)
        }, {
            "Areas.titleArea.insets", new Insets(2, 0, 2, 0)
        }, {
            "Areas.titleArea.lines", new Integer(5)
        }, {
            "Areas.authorArea.font", FontCache.getInstance().get("Serif", 1, 19)
        }, {
            "Areas.authorArea.insets", new Insets(2, 0, 2, 0)
        }, {
            "areas.narratorarea.font", FontCache.getInstance().get("Serif", 1, 19)
        }, {
            "areas.narratorarea.insets", new Insets(2, 0, 2, 0)
        }, {
            "Areas.tagArea.font", FontCache.getInstance().get("Serif", 0, 12)
        }, {
            "Areas.tagArea.insets", new Insets(0, 0, 2, 0)
        }, {
            "Areas.progressArea.insets", new Insets(2, 0, 2, 0)
        }, {
            "Areas.inCollectionsArea.font", FontCache.getInstance().get("Serif", 1, 17)
        }, {
            "Areas.inCollectionsArea.insets", new Insets(2, 0, 0, 0)
        }, {
            "Areas.publicationDateArea.font", FontCache.getInstance().get("Serif", 1, 17)
        }, {
            "Areas.publicationDateArea.insets", new Insets(2, 0, 2, 0)
        }, {
            "areas.embeddedtitlearea.font", FontCache.getInstance().get("Serif", 1, 17)
        }, {
            "areas.embeddedtitlearea.insets", new Insets(2, 0, 0, 0)
        }, {
            "Areas.progressArea.insets", new Insets(2, 0, 2, 0)
        }
    };

}
rastik is offline   Reply With Quote