mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
'v3.4.2.1'
This commit is contained in:
@@ -19,9 +19,10 @@ package gplx.xowa.xtns.translates; import gplx.*; import gplx.xowa.*; import gpl
|
||||
import gplx.xowa.langs.*;
|
||||
import gplx.xowa.specials.*;
|
||||
public class Xop_mylanguage_page implements Xows_page {
|
||||
public Xows_special_meta Special_meta() {return Xows_special_meta_.Itm__my_language;}
|
||||
public void Special_gen(Xowe_wiki wiki, Xoae_page page, Xoa_url url, Xoa_ttl ttl) {
|
||||
public Xows_special_meta Special__meta() {return Xows_special_meta_.Itm__my_language;}
|
||||
public void Special__gen(Xow_wiki wikii, Xoa_page pagei, Xoa_url url, Xoa_ttl ttl) {
|
||||
// Special:MyLanguage/Help:A -> Help:A/fr
|
||||
Xowe_wiki wiki = (Xowe_wiki)wikii; Xoae_page page = (Xoae_page)pagei;
|
||||
byte[] page_bry = ttl.Leaf_txt_wo_qarg(); // EX: Help:A
|
||||
byte[] lang_key = wiki.Appe().Usere().Lang().Key_bry(); // EX: fr
|
||||
byte[] trg_bry = page_bry;
|
||||
@@ -32,4 +33,6 @@ public class Xop_mylanguage_page implements Xows_page {
|
||||
if (found_page.Missing() && !lang_is_english) // foreign lang does not exist; default to english
|
||||
wiki.Data_mgr().Redirect(page, page_bry);
|
||||
}
|
||||
|
||||
public Xows_page Special__clone() {return this;}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class Xop_mylanguage_page_fxt {
|
||||
page.Url_(url);
|
||||
Xoa_ttl ttl = Xoa_ttl.parse(wiki, Bry_.new_a7(link));
|
||||
page.Ttl_(ttl);
|
||||
special_page.Special_gen(wiki, page, url, ttl);
|
||||
special_page.Special__gen(wiki, page, url, ttl);
|
||||
Tfds.Eq(expd, String_.new_a7(page.Url().Page_bry()));
|
||||
Tfds.Eq(expd, String_.new_a7(page.Data_raw()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user