mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-05 20:41:41 -07:00
feat(lang): Added RTL
languages support (#2031)
This commit is contained in:
parent
e6976721dc
commit
9024640d59
4 changed files with 7 additions and 4 deletions
|
@ -209,6 +209,7 @@ $bb_cfg['lang'] = [
|
|||
'ar' => [
|
||||
'name' => 'Arabic',
|
||||
'locale' => 'ar_SA.UTF-8',
|
||||
'rtl' => true,
|
||||
],
|
||||
'hy' => [
|
||||
'name' => 'Armenian',
|
||||
|
@ -285,6 +286,7 @@ $bb_cfg['lang'] = [
|
|||
'he' => [
|
||||
'name' => 'Hebrew',
|
||||
'locale' => 'he_IL.UTF-8',
|
||||
'rtl' => true,
|
||||
],
|
||||
'hi' => [
|
||||
'name' => 'Hindi',
|
||||
|
@ -724,8 +726,8 @@ $bb_cfg['tracker'] = [
|
|||
'update_dlstat' => true,
|
||||
'expire_factor' => 2.5,
|
||||
'compact_mode' => true,
|
||||
'upd_user_up_down_stat' => true,
|
||||
'browser_redirect_url' => '',
|
||||
'upd_user_up_down_stat' => true, // unused
|
||||
'browser_redirect_url' => '', // unused
|
||||
'scrape' => true,
|
||||
'limit_active_tor' => true,
|
||||
'limit_seed_count' => 0,
|
||||
|
|
|
@ -117,6 +117,7 @@ $template->assign_vars([
|
|||
'USER_HIDE_CAT' => (BB_SCRIPT == 'index'),
|
||||
|
||||
'USER_LANG' => $userdata['user_lang'],
|
||||
'USER_LANG_DIRECTION' => (isset($bb_cfg['lang'][$userdata['user_lang']]['rtl']) && $bb_cfg['lang'][$userdata['user_lang']]['rtl'] === true) ? 'rtl' : 'ltr',
|
||||
|
||||
'INCLUDE_BBCODE_JS' => !empty($page_cfg['include_bbcode_js']),
|
||||
'USER_OPTIONS_JS' => IS_GUEST ? '{}' : json_encode($user->opt_js, JSON_THROW_ON_ERROR),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- IF TPL_ADMIN_FRAMESET -->
|
||||
<!--========================================================================-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="{$bb_cfg['default_lang']}">
|
||||
<html dir="{USER_LANG_DIRECTION}" lang="{USER_LANG}">
|
||||
<head>
|
||||
<meta charset="{CONTENT_ENCODING}">
|
||||
<link rel="shortcut icon" href="{SITE_URL}favicon.png" type="image/x-icon">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{$bb_cfg['default_lang']}">
|
||||
<html dir="{USER_LANG_DIRECTION}" lang="{USER_LANG}">
|
||||
<head>
|
||||
<meta charset="{CONTENT_ENCODING}">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue