org.mmbase.module.gui.html
Class MMLanguage

java.lang.Object
  |
  +--org.mmbase.module.Module
        |
        +--org.mmbase.module.ProcessorModule
              |
              +--org.mmbase.module.gui.html.MMLanguage
All Implemented Interfaces:
ProcessorInterface

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.

Author:
Daniel Ockeloen

Constructor Summary
MMLanguage()
          Basic constructor
 
Method Summary
 java.lang.String getFromCoreEnglish(java.lang.String term)
           
 void init()
          Initializes the module.
 java.lang.String replace(scanpage sp, java.lang.String cmds)
          Handles the $MOD-MMLANGUAGE-commands.
 
Methods inherited from class org.mmbase.module.ProcessorModule
cacheCheck, getList, getListBuilder, getNodeList, onload, process, reload, replace, shutdown, unload
 
Methods inherited from class org.mmbase.module.Module
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setClassName, setInitParameter, setMaintainer, setName, setVersion, startModule, startModules, state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMLanguage

public MMLanguage()
Basic constructor
Method Detail

init

public void init()
Description copied from class: Module
Initializes the module. Init can 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 java.lang.String replace(scanpage sp,
                                java.lang.String cmds)
Handles the $MOD-MMLANGUAGE-commands. Commands handled by this method are:
Overrides:
replace in class ProcessorModule
Parameters:
scanpage - the current page context
tok - the tokenized command
Returns:
the result of the command as a String

getFromCoreEnglish

public java.lang.String getFromCoreEnglish(java.lang.String term)


MMBase 2001