|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectsalomeTMF_plug.pluginxlsxml.language.Language
public class Language
* Created on 10 juin 2005 * SalomeTMF is a Test Managment Framework * Copyright (C) 2005 France Telecom R&D * * 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 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. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact: mikael.marche@rd.francetelecom.com
Field Summary | |
---|---|
(package private) java.util.Locale |
currentLocale
Local variable |
(package private) java.util.ResourceBundle |
i18n
For the resource file |
(package private) java.util.ResourceBundle |
i18nErr
|
(package private) java.util.ResourceBundle |
i18nLog
|
private static Language |
language
Static variable |
Constructor Summary | |
---|---|
private |
Language()
Constructor of the language |
Method Summary | |
---|---|
static Language |
getInstance()
Get the instance of the language |
java.lang.String |
getText(java.lang.String key)
Get text in parameter |
java.lang.String |
getTextErr(java.lang.String key)
Return the error text corresponding to the key |
java.lang.String |
getTextLog(java.lang.String key)
Write an error if string not found |
void |
setLocale(java.util.Locale locale)
Set the local values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Language language
java.util.Locale currentLocale
java.util.ResourceBundle i18n
java.util.ResourceBundle i18nErr
java.util.ResourceBundle i18nLog
Constructor Detail |
---|
private Language()
Method Detail |
---|
public static Language getInstance()
public void setLocale(java.util.Locale locale)
locale
- get Language of SalomeTMFpublic java.lang.String getText(java.lang.String key)
key
- string to search
public java.lang.String getTextLog(java.lang.String key)
key
- String to search
public java.lang.String getTextErr(java.lang.String key)
key
- an error key belong i18nErr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |