mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v1.7.3.1
This commit is contained in:
@@ -16,6 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa; import gplx.*;
|
||||
import gplx.xowa.langs.msgs.*;
|
||||
public class Xol_fragment_mgr implements GfoInvkAble {
|
||||
public Xol_fragment_mgr(Xol_lang lang) {this.lang = lang;} private Xol_lang lang;
|
||||
public byte[] Html_js_wikidata() {if (html_js_wikidata == null) html_js_wikidata = Html_js_wikidata_init(); return html_js_wikidata;} private byte[] html_js_wikidata;
|
||||
@@ -102,7 +103,7 @@ public class Xol_fragment_mgr implements GfoInvkAble {
|
||||
}
|
||||
private byte[] Html_js_wikidata_val(Xow_wiki wdata_wiki, int id) {
|
||||
Xol_msg_itm msg = lang.Msg_mgr().Itm_by_id_or_null(id);
|
||||
byte[] rv = wdata_wiki == null ? msg.Val() : Pf_msg_mgr.Get_msg_val(wdata_wiki, lang, msg.Key(), Bry_.Ary_empty);
|
||||
byte[] rv = wdata_wiki == null ? msg.Val() : Xol_msg_mgr_.Get_msg_val(wdata_wiki, lang, msg.Key(), Bry_.Ary_empty);
|
||||
if (Bry_finder.Find_fwd(rv, Byte_ascii.Apos) != Bry_.NotFound)
|
||||
rv = Bry_.Replace(rv, Bry_find, Bry_repl);
|
||||
return rv;
|
||||
|
||||
@@ -150,7 +150,7 @@ kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_i18n_grammar , "grammar");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_i18n_gender , "gender");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_i18n_int , "int");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_i18n_language , "#language");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_misc_special , "special");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_misc_special , "#special");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_misc_tag , "#tag");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_xtn_expr , "#expr");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_xtn_if , "#if");
|
||||
@@ -223,17 +223,17 @@ kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_property , "#property");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_noexternallanglinks , "noexternallanglinks");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_ns_num , "namespacenumber");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_page_id , "pageid");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_disambig , "__DISAMBIG__");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_disambig , "__DISAMBIG__");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_nocommafysuffix , "NOSEP");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_xowa , "#xowa");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_mapSources_deg2dd , "#deg2dd");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_mapSources_dd2dms , "#dd2dms");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_mapSources_geoLink , "#geolink");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_geoCrumbs_isin , "#isin");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_relatedArticles , "#related");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_relatedSites , "#relatedSites");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_massMessage_target , "#target");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_cascadingSources , "CASCADINGSOURCES");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_pendingChangesLevel , "PENDINGCHANGESLEVEL");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_mapSources_deg2dd , "#deg2dd");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_mapSources_dd2dms , "#dd2dms");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_mapSources_geoLink , "#geolink");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_geoCrumbs_isin , "#isin");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_relatedArticles , "#related");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_relatedSites , "#relatedSites");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_massMessage_target , "#target");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_cascadingSources , "CASCADINGSOURCES");
|
||||
kwd_mgr.New(Bool_.N, Xol_kwd_grp_.Id_pendingChangesLevel , "PENDINGCHANGESLEVEL");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class Xol_lang_srl {
|
||||
byte b = last ? Byte_ascii.NewLine : src[pos];
|
||||
switch (b) {
|
||||
case Byte_ascii.Pipe:
|
||||
cur_id = Bry_.X_to_int_or(src, fld_bgn, pos, Int_.MinValue);
|
||||
cur_id = Bry_.Xto_int_or(src, fld_bgn, pos, Int_.MinValue);
|
||||
if (cur_id == Int_.MinValue) throw Err_mgr._.fmt_(GRP_KEY, "invalid_id", "invalid_id: ~{0}", String_.new_utf8_(src, fld_bgn, pos));
|
||||
fld_bgn = pos + 1;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user