org.mmbase.module.gui.html
Class MMLanguage

java.lang.Object
  extended by org.mmbase.util.functions.FunctionProvider
      extended by org.mmbase.util.functions.DescribedFunctionProvider
          extended by org.mmbase.module.Module
              extended by org.mmbase.module.ProcessorModule
                  extended by org.mmbase.module.gui.html.MMLanguage
All Implemented Interfaces:
Descriptor

public class MMLanguage
extends ProcessorModule

Module for multi-language support. This module reads (english) terms and their localized value(s) from a configuration file. It can then return the localized terms when needed.

Version:
$Id: MMLanguage.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Daniel Ockeloen
Application:
SCAN - Removing this from Core requires changes in Casting

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.module.ProcessorModule
ProcessorModule.GetNodeListFunction, ProcessorModule.ProcessFunction, ProcessorModule.ReplaceFunction
 
Field Summary
(package private)  String languagePrefix
          The language currently in use.
(package private)  MMBase mmb
          Reference to the MMbase module.
 
Fields inherited from class org.mmbase.module.ProcessorModule
PARAM_PAGEINFO, PARAMS_PAGEINFO
 
Fields inherited from class org.mmbase.module.Module
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIME
 
Fields inherited from class org.mmbase.util.functions.DescribedFunctionProvider
description, guiName, name
 
Fields inherited from class org.mmbase.util.functions.FunctionProvider
functions, getFunctions
 
Constructor Summary
MMLanguage()
          Basic constructor
 
Method Summary
 String getFromCoreEnglish(String term)
           
 void init()
          Initializes the module.
 String replace(PageInfo sp, String cmds)
          Handles the $MOD-MMLANGUAGE-commands.
 
Methods inherited from class org.mmbase.module.ProcessorModule
getList, getListBuilder, getNodeList, onload, process, reload, replace, unload
 
Methods inherited from class org.mmbase.module.Module
addInitParameters, checkModules, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdown, shutdownModules, startModule, startModules
 
Methods inherited from class org.mmbase.util.functions.DescribedFunctionProvider
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setName
 
Methods inherited from class org.mmbase.util.functions.FunctionProvider
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mmb

MMBase mmb
Reference to the MMbase module.


languagePrefix

String languagePrefix
The language currently in use.

Constructor Detail

MMLanguage

public MMLanguage()
Basic constructor

Method Detail

init

public void init()
Description copied from class: ProcessorModule
Initializes the module. Init must be overridden to read the environment variables it needs.
This method is called by Module.startModule(), which makes sure it is not called more than once. You should not call init() directly, call startModule() instead.

Overrides:
init in class ProcessorModule

replace

public String replace(PageInfo sp,
                      String cmds)
Handles the $MOD-MMLANGUAGE-commands. Commands handled by this method are:

Overrides:
replace in class ProcessorModule
Parameters:
sp - the current page context
cmds - the tokenized command
Returns:
the result of the command as a String

getFromCoreEnglish

public String getFromCoreEnglish(String term)


MMBase 2.0-SNAPSHOT - null