// Copyright (c) 2000, 2001, Oracle Corporation. All rights reserved.

package oracle.portal.sample.v2.devguide.helloworld.resource;

import java.util.*;
import oracle.portal.provider.v2.PortletConstants;

public class HelloWorldBundle extends ListResourceBundle {

    public static String DEFAULT_MSG = "DefaultMessage";
    public static String SESSION_MSG = "SessionMessage";
    public static String LANGUAGE_MSG = "LanguageMessage";
    public static String CLEAR_MSG = "ClearSession";
    public static String HELP_TITLE = "HelpTitle";
    public static String HELP_CONTENT = "HelpContent";
    public static String ABOUT_TITLE = "AboutTitle";
    public static String ABOUT_CONTENT = "AboutContent";
    public static String LAST_UPDATED = "LastUpdated";
    public static String TITLE = "Title";
    public static String SHORT_TITLE = "ShortTitle";
    public static String SESSION_TERMINATED = "SessionTerminated";

    public Object[][] getContents() {
        return contents;
    }

    static private final Object[][] contents = {
        // LOCALIZE THIS
        {PortletConstants.NAME, "HelloWorld"},
        {PortletConstants.TITLE, "Hello World Portlet"},
        {PortletConstants.DESCRIPTION, "This is the hello world portlet."},
        {PortletConstants.TIMEOUTMSG, "HelloWorld Portlet timed out"},

        {DEFAULT_MSG, "Welcome {0} to Oracle Portal Introductory Example!"},
        {SESSION_MSG, "This portlet has rendered {0,number,integer} times in this session."},
        {LANGUAGE_MSG, "The current language setting is {0}."},
        {CLEAR_MSG, "Clear count"},

        {HELP_TITLE, "Help"},
        {HELP_CONTENT, "Help information goes here!"},
        {ABOUT_TITLE, "About"},
        {ABOUT_CONTENT, "About information goes here!"},

        {TITLE, "Title:"},
        {SHORT_TITLE, "Short Title:"},

        {LAST_UPDATED, "Last updated on {0, date, full} at {0, time, long}"},

        {SESSION_TERMINATED, "Your provider session has been terminated. " + 
                             "Please log out and log back in again"}

        // END OF MATERIAL TO LOCALIZE
    };
}

