mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
'v3.3.4.1'
This commit is contained in:
@@ -52,8 +52,8 @@ class Xob_i18n_parser_fxt {
|
||||
Tfds.Eq_str_lines(expd, String_.new_u8(actl));
|
||||
}
|
||||
public void Test_load_msgs_dir(String dir_str) {
|
||||
Xoae_app app = Xoa_app_fxt.app_();
|
||||
Xowe_wiki wiki = Xoa_app_fxt.wiki_tst_(app);
|
||||
Xoae_app app = Xoa_app_fxt.Make__app__edit();
|
||||
Xowe_wiki wiki = Xoa_app_fxt.Make__wiki__edit(app);
|
||||
Io_url dir_url = Io_url_.new_dir_(dir_str);
|
||||
Io_url[] fil_urls = Io_mgr.Instance.QueryDir_fils(dir_url);
|
||||
int len = fil_urls.length;
|
||||
|
||||
@@ -145,7 +145,7 @@ class Xobc_utl_make_lang_fxt {
|
||||
public Xobc_utl_make_lang Mgr() {return mgr;} private Xobc_utl_make_lang mgr;
|
||||
public Xobc_utl_make_lang_kwds Kwd_mgr() {return mgr.Kwd_mgr();}
|
||||
public Xobc_utl_make_lang_fxt Clear() {
|
||||
app = Xoa_app_fxt.app_();
|
||||
app = Xoa_app_fxt.Make__app__edit();
|
||||
mgr = new Xobc_utl_make_lang(app.Lang_mgr(), app.Fsys_mgr(), app.Msg_log());
|
||||
return this;
|
||||
} private String_bldr sb = String_bldr_.new_(); private Xoae_app app;
|
||||
|
||||
@@ -242,11 +242,11 @@ class Xol_mw_lang_parser_fxt {
|
||||
Xol_mw_lang_parser parser = new Xol_mw_lang_parser(Gfo_msg_log.Test()); Bry_bfr tmp_bfr = Bry_bfr.reset_(255);
|
||||
public void Clear() {
|
||||
if (app == null) {
|
||||
app = Xoa_app_fxt.app_();
|
||||
app = Xoa_app_fxt.Make__app__edit();
|
||||
}
|
||||
app.Lang_mgr().Clear();// NOTE: always clear the lang
|
||||
lang = app.Lang_mgr().Get_by_or_new(Bry_.new_a7("fr"));
|
||||
wiki = Xoa_app_fxt.wiki_(app, "en.wikipedia.org", lang);
|
||||
wiki = Xoa_app_fxt.Make__wiki__edit(app, "en.wikipedia.org", lang);
|
||||
fxt = new Xop_fxt(app, wiki);
|
||||
lang.Kwd_mgr().Clear(); lang.Msg_mgr().Clear(); // NOTE: clear kwds and msgs else they will be printed to file; this line must go last b/c various xtns will fill in kwds dynamically
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user