During the use of glossaries, I am always struggling. Sometimes the file is created by accident in ANSI instead of UTF-8. Sometimes, it works differently than I hoped it would work etc.
Currently, only a signal is printed that a glossary is being loaded. I would appreciate it if also a visual indicator would be given for the amount of glossary entries added to the collected glossaries.
For instance, similar to (see //NEW):
if (entries != null) {
synchronized (this) {
System.out.println("Added " + entries.size() + " glossary items from " + file.getName()); // NEW
glossaries.put(file.getName(), entries);
}
}
But alternatives that make it more transparant how the glossaries are being processed would also help me.
Implemented in SVN (/trunk).
The information is available both on the console and in the logs.
Example:
Added 17,465 glossary entries from MicrosoftTermCollection.tbx
Didier
Last edit: Didier Briel 2013-12-10
Great! It is appearing in the logs when starting OmegaT in interactive mode.
When using console, it does not show:
java -jar ../../../omegat/OmegaT.jar --config-dir=../../../global/omegat-config/ -Djava.awt.headless=true --mode=console-translate --tag-validation=warn --quiet .
50153: Info: Plugin successfully loaded from class 'org.omegat.gui.scripting.ScriptingWindow' (PLUGIN_LOAD_OK)
50153: Info: Console mode
Initializing
Loading Project
50153: Info: Source tokenizer: org.omegat.tokenizer.LuceneEnglishTokenizer (LUCENE_CURRENT)
50153: Info: Target tokenizer: org.omegat.tokenizer.LucenePortugueseTokenizer (LUCENE_CURRENT)
50153: Info: Project loading start (LOG_DATAENGINE_LOAD_START)
50153: Info: Load project source files: 1186ms
50153: Info: Reading TMX file /PATHSOMETHING/projects/ui/en2pt/./omegat/project_save.tmx (TMXR_INFO_READIN G_FILE)
50153: Info: Created by: OmegaT (TMXR_INFO_CREATION_TOOL)
50153: Info: Version: 3.0.7 (TMXR_INFO_CREATION_TOOL_VERSION)
50153: Info: Segmentation method: sentence (TMXR_INFO_SEG_TYPE)
50153: Info: Source language: EN-US (TMXR_INFO_SOURCE_LANG)
50153: Info: Reading of TMX file complete (TMXR_INFO_READING_COMPLETE)
---- I think it should have been here ---
50153: Info: Project loading end (LOG_DATAENGINE_LOAD_END)
Validating tags
Translating Project
50153: Info: Project compiling start (LOG_DATAENGINE_COMPILE_START)
50153: Info: Project compiling end (LOG_DATAENGINE_COMPILE_END)
50153: Info: Project closed (LOG_DATAENGINE_CLOSE)
Finished
50153: Info: Event: project change - "COMPILE" (LOG_INFO_EVENT_PROJECT_CHANGE)
This is normal: glossaries are not loaded at all in console mode. (There's no use for them in console mode.)
Didier
Implemented in the released version 3.0.8 of OmegaT.
Didier
Last edit: Didier Briel 2013-12-18