mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Html: Add 'lang=page_lang' to html and div tag [#576]
This commit is contained in:
parent
e82641f341
commit
88e0398696
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" exported="true" path="/baselib"/>
|
||||
<classpathentry kind="src" exported="true" path="/100_core"/>
|
||||
<classpathentry kind="src" exported="true" path="/140_dbs"/>
|
||||
<classpathentry kind="src" exported="true" path="/150_gfui"/>
|
||||
<classpathentry kind="src" exported="true" path="/luaj_xowa"/>
|
||||
<classpathentry kind="src" exported="true" path="/gplx.gflucene"/>
|
||||
<classpathentry exported="true" kind="src" path="/baselib"/>
|
||||
<classpathentry exported="true" kind="src" path="/100_core"/>
|
||||
<classpathentry exported="true" kind="src" path="/140_dbs"/>
|
||||
<classpathentry exported="true" kind="src" path="/150_gfui"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/jtidy_xowa.jar"/>
|
||||
<classpathentry exported="true" kind="src" path="/gplx.gflucene"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/icu4j-57_1.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/vnu.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/Saxon-HE-9.9.1-2.jar"/>
|
||||
<classpathentry exported="true" kind="src" path="/luaj_xowa"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
<classpathentry kind="con" exported="true" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" exported="true" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
||||
<classpathentry kind="lib" exported="true" path="lib/jtidy_xowa.jar"/>
|
||||
<classpathentry kind="lib" exported="true" path="lib/icu4j-57_1.jar"/>
|
||||
<classpathentry kind="lib" exported="true" path="lib/vnu.jar"/>
|
||||
<classpathentry kind="lib" exported="true" path="lib/Saxon-HE-9.9.1-2.jar"/>
|
||||
</classpath>
|
||||
|
@ -96,7 +96,8 @@ public class Xoh_page_wtr_mgr implements Gfo_invk {
|
||||
, "portal_div_personal", "portal_div_ns", "portal_div_view"
|
||||
, "portal_div_logo", "portal_div_home", "portal_div_xtn"
|
||||
, "portal_div_admin", "portal_div_wikis", "portal_sidebar"
|
||||
, "edit_div_rename", "edit_div_preview", "js_edit_toolbar"
|
||||
, "edit_div_rename", "edit_div_preview", "js_edit_toolbar"
|
||||
, "page_lang"
|
||||
};
|
||||
private static final String Cfg__scripting_enabled = "xowa.html.scripting.enabled";
|
||||
}
|
||||
|
@ -127,7 +127,8 @@ public class Xoh_page_wtr_wkr {
|
||||
, portal_mgr.Div_sync_bry(tmp_bfr, wiki.Page_mgr().Sync_mgr().Manual_enabled(), wiki, page)
|
||||
, portal_mgr.Div_wikis_bry(wiki.Utl__bfr_mkr())
|
||||
, portal_mgr.Sidebar_mgr().Html_bry()
|
||||
, mgr.Edit_rename_div_bry(page_ttl), page.Html_data().Edit_preview_w_dbg(), js_edit_toolbar_bry
|
||||
, mgr.Edit_rename_div_bry(page_ttl), page.Html_data().Edit_preview_w_dbg(), js_edit_toolbar_bry
|
||||
, page.Lang().Key_bry()
|
||||
);
|
||||
Xoh_page_wtr_wkr_.Bld_head_end(bfr, tmp_bfr, page); // add after </head>
|
||||
Xoh_page_wtr_wkr_.Bld_html_end(bfr, tmp_bfr, page); // add after </html>
|
||||
|
@ -241,7 +241,7 @@ app.wikis.get('~{wiki_key}').html.article {
|
||||
page_read =
|
||||
<:["
|
||||
<!DOCTYPE html>
|
||||
<html dir="~{page_lang_ltr}" class="client-js">
|
||||
<html dir="~{page_lang_ltr}" class="client-js" lang="~{page_lang}">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<title>~{page_name} - XOWA</title>
|
||||
@ -269,7 +269,7 @@ app.wikis.get('~{wiki_key}').html.article {
|
||||
<div id="bodyContent" class="mw-body-content">
|
||||
<div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
|
||||
<div id="contentSub" class="visible">~{page_content_sub}</div>~{page_jumpto}
|
||||
<div id="mw-content-text" lang="en" dir="~{page_lang_ltr}" class="mw-content-~{page_lang_ltr} mw-parser-output">~{page_data}
|
||||
<div id="mw-content-text" lang="~{page_lang}" dir="~{page_lang_ltr}" class="mw-content-~{page_lang_ltr} mw-parser-output">~{page_data}
|
||||
<div class="visualClear">
|
||||
~{page_langs}
|
||||
</div>
|
||||
@ -308,7 +308,7 @@ app.wikis.get('~{wiki_key}').html.article {
|
||||
page_edit =
|
||||
<:["
|
||||
<!DOCTYPE html>
|
||||
<html dir="~{page_lang_ltr}" class="client-js">
|
||||
<html dir="~{page_lang_ltr}" class="client-js" lang="~{page_lang}">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<title>~{page_name} - XOWA</title>
|
||||
@ -348,7 +348,7 @@ app.wikis.get('~{wiki_key}').html.article {
|
||||
<div id="bodyContent" class="mw-body-content">
|
||||
<div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
|
||||
<div id="contentSub" class="visible">~{page_content_sub}</div>
|
||||
<div id="mw-content-text" lang="en" dir="~{page_lang_ltr}" class="mw-content-~{page_lang_ltr} mw-parser-output">
|
||||
<div id="mw-content-text" lang="~{page_lang}" dir="~{page_lang_ltr}" class="mw-content-~{page_lang_ltr} mw-parser-output">
|
||||
<div id="xowa_page_edit_preview_id">~{edit_div_preview}</div>
|
||||
<form id="editform" name="editform">
|
||||
<textarea id='xowa_edit_data_box' cols="80" rows="25">~{page_data}</textarea> <!-- NOTE: do not place on different line (EX: \n~{page_text}\n); textarea will interpret new line literally and page saves will include new whitespace -->
|
||||
@ -395,7 +395,7 @@ app.wikis.get('~{wiki_key}').html.article {
|
||||
page_html =
|
||||
<:["
|
||||
<!DOCTYPE html>
|
||||
<html dir="~{page_lang_ltr}">
|
||||
<html dir="~{page_lang_ltr}" lang="~{page_lang}">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<title>~{page_name} - XOWA</title>
|
||||
@ -426,7 +426,7 @@ app.wikis.get('~{wiki_key}').html.article {
|
||||
<div id="bodyContent" class="mw-body-content">
|
||||
<div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
|
||||
<div id="contentSub"> </div>
|
||||
<div id="mw-content-text" lang="en" dir="~{page_lang_ltr}" class="mw-content-~{page_lang_ltr} mw-parser-output">
|
||||
<div id="mw-content-text" lang="~{page_lang}" dir="~{page_lang_ltr}" class="mw-content-~{page_lang_ltr} mw-parser-output">
|
||||
<textarea id='xowa_edit_data_box' cols="80" rows="25">~{page_data}</textarea> <!-- NOTE: do not place on different line (EX: \n~{page_text}\n); textarea will interpret new line literally and page saves will include new whitespace -->
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user