org.mmbase.module.gui.html
Class MMLanguage

java.lang.Object
  extended byorg.mmbase.module.Module
      extended byorg.mmbase.module.ProcessorModule
          extended byorg.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.

Version:
$Id: MMLanguage.java,v 1.10 2003/07/03 13:15:11 pierre Exp $
Author:
Daniel Ockeloen

Constructor Summary
MMLanguage()
          Basic constructor
 
Method Summary
 java.lang.String getFromCoreEnglish(java.lang.String term)
           
 void init()
          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.
 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, unload
 
Methods inherited from class org.mmbase.module.Module
getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, 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: 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 java.lang.String replace(scanpage sp,
                                java.lang.String cmds)
Handles the $MOD-MMLANGUAGE-commands. Commands handled by this method are:

Specified by:
replace in interface ProcessorInterface
Overrides:
replace in class ProcessorModule
Returns:
the result of the command as a String

getFromCoreEnglish

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


MMBase build 1.7.1.20041002