You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
package de.tvo.workplace;
|
|
|
|
import org.eclnt.jsfserver.pagebean.PageBean;
|
|
import org.eclnt.jsfserver.resources.ResourceManager;
|
|
|
|
public class DefaultPageBean extends PageBean {
|
|
|
|
public DefaultPageBean() {
|
|
// TODO Auto-generated constructor stub
|
|
}
|
|
|
|
public String getLiteral(String module, String key) {
|
|
String ausgabe = "";
|
|
|
|
try {
|
|
if (key == null)
|
|
return "";
|
|
|
|
ausgabe = ResourceManager.getRuntimeInstance().readProperty("literals" + module, key.toLowerCase());
|
|
// ausgabe = readProperty("literals" + module, name.toLowerCase());
|
|
// System.out.println("module: " + module + " key: " + key + " ausgabe: " +
|
|
// ausgabe);
|
|
// System.out.println("Language: " +
|
|
// FacesContext.getCurrentInstance().getViewRoot().getLocale());
|
|
|
|
} catch (Exception e) {
|
|
ausgabe = key;
|
|
}
|
|
if (ausgabe.equals("literalstable is not defined"))
|
|
ausgabe = key;
|
|
|
|
if (ausgabe.startsWith("{literals"))
|
|
ausgabe = key;
|
|
|
|
return ausgabe;
|
|
}
|
|
|
|
@Override
|
|
public String getPageName() {
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public String getRootExpressionUsedInPage() {
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
}
|