mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
small change
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@676 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
0bcb965de0
commit
7e612b30ec
5 changed files with 72 additions and 5 deletions
|
@ -13,6 +13,7 @@ import org.fbreader.formats.html.HtmlPlugin;
|
|||
import org.fbreader.formats.fb2.FB2Plugin;
|
||||
import org.fbreader.formats.util.EncodingDetector;
|
||||
import org.zlibrary.core.filesystem.ZLFile;
|
||||
import org.zlibrary.core.options.ZLBooleanOption;
|
||||
import org.zlibrary.core.options.ZLIntegerOption;
|
||||
import org.zlibrary.core.options.ZLOption;
|
||||
|
||||
|
@ -79,6 +80,7 @@ public abstract class FormatPlugin {
|
|||
private static PluginCollection ourInstance;
|
||||
private final ArrayList myPlugins = new ArrayList();
|
||||
public ZLIntegerOption DefaultLanguageOption;
|
||||
public ZLBooleanOption LanguageAutoDetectOption;
|
||||
|
||||
public static PluginCollection instance() {
|
||||
if (ourInstance == null) {
|
||||
|
@ -107,6 +109,7 @@ public abstract class FormatPlugin {
|
|||
}
|
||||
|
||||
private PluginCollection() {
|
||||
LanguageAutoDetectOption = new ZLBooleanOption(ZLOption.CONFIG_CATEGORY, "Format", "AutoDetect", true);
|
||||
DefaultLanguageOption = new ZLIntegerOption(ZLOption.CONFIG_CATEGORY, "Format", "DefaultLanguage", EncodingDetector.Language.RUSSIAN);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue