📄 localeutils.html
字号:
appropriate resource bundle.<DD><CODE>pluginName</CODE> - the name of the plugin to load the require resource bundle from.<DT><B>Returns:</B><DD>the localized string.</DL></DD></DL><HR><A NAME="getLocalizedString(java.lang.String, java.lang.String, java.util.List)"><!-- --></A><H3>getLocalizedString</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLocalizedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> pluginName, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A> arguments)</PRE><DL><DD>Returns an internationalized string loaded from a resource bundle from the passed in plugin. If the plugin name is <tt>null</tt>, the key will be looked up using the standard resource bundle.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use for retrieving the string from the appropriate resource bundle.<DD><CODE>pluginName</CODE> - the name of the plugin to load the require resource bundle from.<DD><CODE>arguments</CODE> - a list of objects to use which are formatted, then inserted into the pattern at the appropriate places.<DT><B>Returns:</B><DD>the localized string.</DL></DD></DL><HR><A NAME="getLocalizedString(java.lang.String, java.lang.String, java.util.List, java.util.Locale, boolean)"><!-- --></A><H3>getLocalizedString</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLocalizedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> pluginName, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A> arguments, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale, boolean fallback)</PRE><DL><DD>Returns an internationalized string loaded from a resource bundle from the passed in plugin, using the passed in Locale. If the plugin name is <tt>null</tt>, the key will be looked up using the standard resource bundle. If the locale is <tt>null</tt>, the Jive Global locale will be used.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use for retrieving the string from the appropriate resource bundle.<DD><CODE>pluginName</CODE> - the name of the plugin to load the require resource bundle from.<DD><CODE>arguments</CODE> - a list of objects to use which are formatted, then inserted into the pattern at the appropriate places.<DD><CODE>locale</CODE> - the locale to use for retrieving the appropriate locale-specific string.<DD><CODE>fallback</CODE> - if <tt>true</tt>, the global locale used by Openfire will be used if the requested locale is not available)<DT><B>Returns:</B><DD>the localized string.</DL></DD></DL><HR><A NAME="getPluginResourceBundle(java.lang.String)"><!-- --></A><H3>getPluginResourceBundle</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A> <B>getPluginResourceBundle</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> pluginName) throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>Retrieve the <code>ResourceBundle</code> that is used with this plugin.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pluginName</CODE> - the name of the plugin.<DT><B>Returns:</B><DD>the ResourceBundle used with this plugin.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE> - thrown if an exception occurs.</DL></DD></DL><HR><A NAME="getLocalizedString(java.lang.String, java.util.Locale, java.util.List, java.util.ResourceBundle)"><!-- --></A><H3>getLocalizedString</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLocalizedString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A> arguments, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A> bundle)</PRE><DL><DD>Returns an internationalized string loaded from a resource bundle using the passed in Locale substituting the passed in arguments. Substitution is handled using the <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/text/MessageFormat.html" title="class or interface in java.text"><CODE>MessageFormat</CODE></A> class.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to use for retrieving the string from the appropriate resource bundle.<DD><CODE>locale</CODE> - the locale to use for retrieving the appropriate locale-specific string.<DD><CODE>arguments</CODE> - a list of objects to use which are formatted, then inserted into the pattern at the appropriate places.<DD><CODE>bundle</CODE> - The resource bundle from which to return the localized string.<DT><B>Returns:</B><DD>the localized string.</DL></DD></DL><HR><A NAME="getLocalizedNumber(long)"><!-- --></A><H3>getLocalizedNumber</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLocalizedNumber</B>(long number)</PRE><DL><DD>Returns an internationalized String representation of the number using the default locale.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to format.<DT><B>Returns:</B><DD>an internationalized String representation of the number.</DL></DD></DL><HR><A NAME="getLocalizedNumber(long, java.util.Locale)"><!-- --></A><H3>getLocalizedNumber</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLocalizedNumber</B>(long number, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale)</PRE><DL><DD>Returns an internationalized String representation of the number using the specified locale.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to format.<DD><CODE>locale</CODE> - the locale to use for formatting.<DT><B>Returns:</B><DD>an internationalized String representation of the number.</DL></DD></DL><HR><A NAME="getLocalizedNumber(double)"><!-- --></A><H3>getLocalizedNumber</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLocalizedNumber</B>(double number)</PRE><DL><DD>Returns an internationalized String representation of the number using the default locale.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to format.<DT><B>Returns:</B><DD>an internationalized String representation of the number.</DL></DD></DL><HR><A NAME="getLocalizedNumber(double, java.util.Locale)"><!-- --></A><H3>getLocalizedNumber</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLocalizedNumber</B>(double number, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale)</PRE><DL><DD>Returns an internationalized String representation of the number using the specified locale.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to format.<DD><CODE>locale</CODE> - the locale to use for formatting.<DT><B>Returns:</B><DD>an internationalized String representation of the number.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/jivesoftware/util/LocaleFilter.html" title="class in org.jivesoftware.util"><B>PREV CLASS</B></A> <A HREF="../../../org/jivesoftware/util/Log.html" title="class in org.jivesoftware.util"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/jivesoftware/util/LocaleUtils.html" target="_top"><B>FRAMES</B></A> <A HREF="LocaleUtils.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -