Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.language;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
import com.liferay.portal.kernel.util.ResourceBundleLoader;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
import java.util.List;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.Set;
import javax.portlet.PortletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author Brian Wing Shun Chan
*/
@ProviderType
public class LanguageUtil {
public static String format(
HttpServletRequest request, String pattern, LanguageWrapper argument) {
return getLanguage().format(request, pattern, argument);
}
public static String format(
HttpServletRequest request, String pattern, LanguageWrapper argument,
boolean translateArguments) {
return getLanguage().format(
request, pattern, argument, translateArguments);
}
public static String format(
HttpServletRequest request, String pattern,
LanguageWrapper[] arguments) {
return getLanguage().format(request, pattern, arguments);
}
public static String format(
HttpServletRequest request, String pattern, LanguageWrapper[] arguments,
boolean translateArguments) {
return getLanguage().format(
request, pattern, arguments, translateArguments);
}
public static String format(
HttpServletRequest request, String pattern, Object argument) {
return getLanguage().format(request, pattern, argument);
}
public static String format(
HttpServletRequest request, String pattern, Object argument,
boolean translateArguments) {
return getLanguage().format(
request, pattern, argument, translateArguments);
}
public static String format(
HttpServletRequest request, String pattern, Object[] arguments) {
return getLanguage().format(request, pattern, arguments);
}
public static String format(
HttpServletRequest request, String pattern, Object[] arguments,
boolean translateArguments) {
return getLanguage().format(
request, pattern, arguments, translateArguments);
}
public static String format(
Locale locale, String pattern, List