Console: Use RTL CSS for Persian

thx drzed
This commit is contained in:
zzz
2023-11-02 15:24:08 -04:00
parent 8622b2d42b
commit 3ce5f64d75

View File

@ -64,12 +64,13 @@
%><link rel="icon" href="<%=theThemePath%>images/favicon.ico"> %><link rel="icon" href="<%=theThemePath%>images/favicon.ico">
<link id="pagestyle" href="<%=theThemePath%>console.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css"> <link id="pagestyle" href="<%=theThemePath%>console.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css">
<% <%
if (intl.getLang().equals("zh")) { String curlang = intl.getLang();
if (curlang.equals("zh")) {
// make the fonts bigger for chinese // make the fonts bigger for chinese
%><link href="<%=theThemePath%>console_big.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css"> %><link href="<%=theThemePath%>console_big.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css">
<% <%
} else if (intl.getLang().equals("ar")) { } else if (curlang.equals("ar") || curlang.equals("fa")) {
// Use RTL theme for Arabic // Use RTL theme for Arabic and Persian
%><link href="<%=theThemePath%>console_ar.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css"> %><link href="<%=theThemePath%>console_ar.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css">
<% <%
} }