| java.lang.Object com.xoetrope.carousel.langed.EdLangMgr
EdLangMgr | public class EdLangMgr (Code) | | LangManager manages the language resources on behalf of the language editor.
Copyright: Xoetrope Ltd. (c) 2001-2006.
This software is licensed under the GNU Public License (GPL) see license.txt
for more details on licensing
|
Constructor Summary | |
public | EdLangMgr(boolean _bIsStandalone, URL _url) |
Method Summary | |
public void | addLang(String code, String name, String encoding, boolean useDb) Adds a new language
This function is intended primarily for internal use by the
catalogue viewer. | public void | exportExcel(File theFile, String[] selectedLangs) Export content to an excel file based language resource. | public void | exportFile(File theFile, char delimiterStartChar, char delimiterEndChar, String[] selectedLangs) | public EdLanguage | getCurrentLang() Returns the current language... | public String | getKey(int id) | public EdLanguage | getLang(int index) Loads a language and sets it as the default language. | public EdLanguage | getLang(String langName) Loads a language and sets it as the default language. | public String | getLangCode(int index) | public EdLanguage | getLangFromList(int index) Returns a language from the specified index in the list. | public String | getLangName(int index) | public int | getNumLangs() | public String | getProjectPath() | URL | getUrl() Gets the URL to which the languages will be saved. | public boolean | hasLang(String code) | public void | importExcel(Component parent, File theFile) Import content to an excel file based language resource. | public void | importFile(JPanel parent, File theFile) | public EdLangName | importPropertiesFile(File theFile, String code, String name) | public void | init(URL _url) | public void | init(Vector languages, Vector translations) | public boolean | isLoadedFromExportedFiles() | public void | newFile() | public void | saveFile(char delimiterStartChar, char delimiterEndChar) | public void | setCurrentLang(String langName) | public void | setId(String id) | public void | setProjectPath(String pp) | void | setUrl(URL _url) Sets the URL to which the languages will be saved. |
EdLangMgr | public EdLangMgr(boolean _bIsStandalone, URL _url)(Code) | | |
addLang | public void addLang(String code, String name, String encoding, boolean useDb)(Code) | | Adds a new language
This function is intended primarily for internal use by the
catalogue viewer.
Parameters: code - The ISO code for a locale. Parameters: name - A plain text name for the language in the national language. |
exportExcel | public void exportExcel(File theFile, String[] selectedLangs) throws IOException(Code) | | Export content to an excel file based language resource. This assumes that
the first language exported is the master language containing all the keys
Parameters: theFile - Parameters: selectedLangs - the list of languages to export throws: IOException - |
exportFile | public void exportFile(File theFile, char delimiterStartChar, char delimiterEndChar, String[] selectedLangs) throws IOException(Code) | | Export content to a file based language resource
Parameters: theFile - Parameters: selectedLangs - the list of languages to export throws: IOException - |
getCurrentLang | public EdLanguage getCurrentLang()(Code) | | Returns the current language... the comments language
|
getKey | public String getKey(int id)(Code) | | Gets the key corresponding to an ID
Parameters: id - |
getLang | public EdLanguage getLang(int index)(Code) | | Loads a language and sets it as the default language.
This function is intended primarily for internal use by the
catalogue viewer.
Parameters: index - the index for the language. |
getLang | public EdLanguage getLang(String langName)(Code) | | Loads a language and sets it as the default language.
This function is intended primarily for internal use by the
catalogue viewer.
Parameters: index - the index for the language. |
getLangCode | public String getLangCode(int index)(Code) | | Returns the name of the indexed language
|
getLangFromList | public EdLanguage getLangFromList(int index)(Code) | | Returns a language from the specified index in the list.
Parameters: index - int specifing the index the returned EdLanguage instance |
getLangName | public String getLangName(int index)(Code) | | Returns the name of the indexed language
|
getNumLangs | public int getNumLangs()(Code) | | Returns the number of languages
|
getUrl | URL getUrl()(Code) | | Gets the URL to which the languages will be saved.
Parameters: url - The URL for the file save. |
importExcel | public void importExcel(Component parent, File theFile) throws IOException(Code) | | Import content to an excel file based language resource. This assumes that
the first language exported is the master language containing all the keys
Parameters: theFile - Parameters: selectedLangs - the list of languages to export throws: IOException - |
isLoadedFromExportedFiles | public boolean isLoadedFromExportedFiles()(Code) | | |
newFile | public void newFile()(Code) | | |
saveFile | public void saveFile(char delimiterStartChar, char delimiterEndChar)(Code) | | |
setCurrentLang | public void setCurrentLang(String langName)(Code) | | |
setUrl | void setUrl(URL _url)(Code) | | Sets the URL to which the languages will be saved.
Parameters: url - The URL for the file save. |
|
|