ui: set RTL on some languages
checking with a list I found online. need to set some things as forced ltr, such as settings. For #450.
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="{{ .cssClass }}">
|
||||||
<head>
|
<head>
|
||||||
<title>404 - jfa-go</title>
|
<title>404 - jfa-go</title>
|
||||||
{{ template "header.html" . }}
|
{{ template "header.html" . }}
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="{{ .cssClass }}">
|
||||||
<head>
|
<head>
|
||||||
{{ template "syntaxhighlighting.html" . }}
|
{{ template "syntaxhighlighting.html" . }}
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="{{ .shortLang }}">
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}">
|
||||||
<head>
|
<head>
|
||||||
<!--- This CSS is inlined so we should keep this here! -->
|
<!--- This CSS is inlined so we should keep this here! -->
|
||||||
<link inline rel="stylesheet" type="text/css" href="web/css/v0.6.0bundle.css">
|
<link inline rel="stylesheet" type="text/css" href="web/css/v0.6.0bundle.css">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="{{ .cssClass }}">
|
||||||
<head>
|
<head>
|
||||||
{{ template "header.html" . }}
|
{{ template "header.html" . }}
|
||||||
<title>{{ .strings.successHeader }} - jfa-go</title>
|
<title>{{ .strings.successHeader }} - jfa-go</title>
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="{{ .cssClass }}">
|
||||||
<head>
|
<head>
|
||||||
{{ template "header.html" . }}
|
{{ template "header.html" . }}
|
||||||
{{ if .passwordReset }}
|
{{ if .passwordReset }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="{{ .cssClass }}">
|
||||||
<head>
|
<head>
|
||||||
{{ template "header.html" . }}
|
{{ template "header.html" . }}
|
||||||
<title>Invalid Code - jfa-go</title>
|
<title>Invalid Code - jfa-go</title>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .shortLang }}" class="{{ .cssClass }}">
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="{{ .cssClass }}">
|
||||||
<head>
|
<head>
|
||||||
{{ template "header.html" . }}
|
{{ template "header.html" . }}
|
||||||
<title>{{ .strings.passwordReset }} - jfa-go</title>
|
<title>{{ .strings.passwordReset }} - jfa-go</title>
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .shortLang }}" class="light">
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="light">
|
||||||
<head>
|
<head>
|
||||||
{{ template "header.html" . }}
|
{{ template "header.html" . }}
|
||||||
<title>{{ .lang.Strings.pageTitle }}</title>
|
<title>{{ .lang.Strings.pageTitle }}</title>
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .shortLang }}" class="light">
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="light">
|
||||||
<head>
|
<head>
|
||||||
<script>
|
<script>
|
||||||
window.langFile = JSON.parse({{ .language }});
|
window.langFile = JSON.parse({{ .language }});
|
||||||
|
|||||||
@@ -128,6 +128,9 @@ func (app *appContext) BasePageTemplateValues(gc *gin.Context, lang string, page
|
|||||||
} else {
|
} else {
|
||||||
shortLang = langComponents[0]
|
shortLang = langComponents[0]
|
||||||
}
|
}
|
||||||
|
if lang == "pk-pk" || shortLang == "ar" || shortLang == "fa" || shortLang == "he" || shortLang == "iw" || shortLang == "kd" || shortLang == "ps" || shortLang == "ug" || shortLang == "ur" || shortLang == "yi" {
|
||||||
|
set("pageDirection", "rtl")
|
||||||
|
}
|
||||||
set("langName", lang)
|
set("langName", lang)
|
||||||
set("shortLang", shortLang)
|
set("shortLang", shortLang)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user