Package org.pentaho.di.ui.i18n.editor
Class Translator2
- java.lang.Object
-
- org.pentaho.di.ui.i18n.editor.Translator2
-
public class Translator2 extends Object
Class to allow non-developers to edit translation messages files.- Author:
- matt
-
-
Field Summary
Fields Modifier and Type Field Description static String
APP_NAME
protected String
lastFoundKey
protected String
lastValue
protected boolean
lastValueChanged
protected String
searchString
protected String
selectedKey
-
Constructor Summary
Constructors Constructor Description Translator2(org.eclipse.swt.widgets.Display display)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
loadConfiguration(String configFile, String sourceFolder)
static void
main(String[] args)
void
open()
boolean
quitFile()
void
readFiles()
void
refresh()
void
refreshGrid()
void
refreshLocale()
void
refreshPackages()
void
reload()
protected boolean
saveFiles()
protected void
saveFilesToZip()
protected void
search(String searchLocale)
protected void
searchAgain(String searchLocale)
boolean
showKey(String key, String messagesPackage)
protected void
showKeySelection(String key)
String
toString()
-
-
-
Method Detail
-
readFiles
public void readFiles() throws org.pentaho.di.core.exception.KettleFileException
- Throws:
org.pentaho.di.core.exception.KettleFileException
-
loadConfiguration
public void loadConfiguration(String configFile, String sourceFolder) throws Exception
- Throws:
Exception
-
open
public void open()
-
reload
public void reload()
-
quitFile
public boolean quitFile()
-
saveFiles
protected boolean saveFiles()
-
saveFilesToZip
protected void saveFilesToZip()
-
search
protected void search(String searchLocale)
-
searchAgain
protected void searchAgain(String searchLocale)
-
showKeySelection
protected void showKeySelection(String key)
-
refreshGrid
public void refreshGrid()
-
refresh
public void refresh()
-
refreshPackages
public void refreshPackages()
-
refreshLocale
public void refreshLocale()
-
-