[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Add Urdu RTL support and centralize RTL language detection

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68f9227211b5c_2c421475c3811c@gitlab-sidekiq-low-urgency-cpu-bound-v2-65cbf47f7b-fgskk.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
50307963 by Moïse Nturubika at 2025-10-22T18:21:14+00:00
[FIX] Add Urdu RTL support and centralize RTL language detection
---
* [FIX] Add Urdu RTL support and centralize RTL language detection

See merge request tikiwiki/tiki!8816

- - - - -


2 changed files:

- lib/language/Language.php
- templates/tiki-show_page.tpl


Changes:

=====================================
lib/language/Language.php
=====================================
@@ -129,6 +129,7 @@ class Language extends TikiDb_Bridge
             case 'he':
             case 'ku':
             case 'ug':
+            case 'ur':
                 return true;
         }
         return false;


=====================================
templates/tiki-show_page.tpl
=====================================
@@ -135,7 +135,7 @@ Note: The show content block must be defined at root level to use the include. A
                 <h1 class="pagetitle">{breadcrumbs type="pagetitle" loc="page" crumbs=$crumbs machine_translate=$machine_translate_to_lang source_lang=$pageLang target_lang=$machine_translate_to_lang}</h1>
             {/if}
             <div class="content">
-                {if isset($pageLang) and ($pageLang eq 'ar' or $pageLang eq 'he')}
+                {if isset($pageLang) and Language::isLanguageRTL($pageLang)}
                     <div style="direction:RTL; unicode-bidi:embed; text-align: right; {if $pageLang eq 'ar'}font-size: large;{/if}">
                         {$parsed}
                     </div>



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/503079631f737be12f5b5434f6927378c7ffa692

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/503079631f737be12f5b5434f6927378c7ffa692
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.