Skip to content

Commit 8dbab3b

Browse files
committed
Partial sync.
1 parent 8dc9ce9 commit 8dbab3b

3 files changed

Lines changed: 36 additions & 21 deletions

File tree

readme.ar.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,12 +542,14 @@ silent_mode_response_header_code
542542

543543
```
544544
lang
545+
├─af ("Afrikaans")
545546
├─ar ("العربية")
546547
├─bg ("Български")
547548
├─bn ("বাংলা")
548549
├─cs ("Čeština")
549550
├─de ("Deutsch")
550551
├─en ("English (AU/GB/NZ)")
552+
├─en-CA ("English (CA)")
551553
├─en-US ("English (US)")
552554
├─es ("Español")
553555
├─fa ("فارسی")
@@ -564,8 +566,9 @@ lang
564566
├─no ("Norsk")
565567
├─pa ("ਪੰਜਾਬੀ")
566568
├─pl ("Polski")
567-
├─pt ("Português (Brasil)")
569+
├─pt-BR ("Português (Brasil)")
568570
├─pt-PT ("Português (Europeu)")
571+
├─ro ("Română")
569572
├─ru ("Русский")
570573
├─sv ("Svenska")
571574
├─ta ("தமிழ்")
@@ -574,7 +577,7 @@ lang
574577
├─uk ("Українська")
575578
├─ur ("اردو")
576579
├─vi ("Tiếng Việt")
577-
├─zh ("中文(简体)")
580+
├─zh-CN ("中文(简体)")
578581
└─zh-TW ("中文(傳統)")
579582
```
580583

@@ -2343,4 +2346,4 @@ x.x.x.x - Day, dd Mon 20xx hh:ii:ss +0000 - "admin" - حاليا على.
23432346
---
23442347

23452348

2346-
<div dir="rtl">آخر تحديث: ٢٣ أغسطس ٢٠٢٣ (٢٠٢٣.٠٨.٢٣).</div>
2349+
<div dir="rtl">آخر تحديث: ١٢ أكتوبر ٢٠٢٣ (٢٠٢٣.١٠.١٢).</div>

readme.ur.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,12 +548,14 @@ silent_mode_response_header_code
548548

549549
```
550550
lang
551+
├─af ("Afrikaans")
551552
├─ar ("العربية")
552553
├─bg ("Български")
553554
├─bn ("বাংলা")
554555
├─cs ("Čeština")
555556
├─de ("Deutsch")
556557
├─en ("English (AU/GB/NZ)")
558+
├─en-CA ("English (CA)")
557559
├─en-US ("English (US)")
558560
├─es ("Español")
559561
├─fa ("فارسی")
@@ -570,8 +572,9 @@ lang
570572
├─no ("Norsk")
571573
├─pa ("ਪੰਜਾਬੀ")
572574
├─pl ("Polski")
573-
├─pt ("Português (Brasil)")
575+
├─pt-BR ("Português (Brasil)")
574576
├─pt-PT ("Português (Europeu)")
577+
├─ro ("Română")
575578
├─ru ("Русский")
576579
├─sv ("Svenska")
577580
├─ta ("தமிழ்")
@@ -580,7 +583,7 @@ lang
580583
├─uk ("Українська")
581584
├─ur ("اردو")
582585
├─vi ("Tiếng Việt")
583-
├─zh ("中文(简体)")
586+
├─zh-CN ("中文(简体)")
584587
└─zh-TW ("中文(傳統)")
585588
```
586589

@@ -2353,4 +2356,4 @@ x.x.x.x - Day, dd Mon 20xx hh:ii:ss +0000 - "admin" - لاگ ان.
23532356
---
23542357

23552358

2356-
<div dir="rtl">آخری تازہ کاری: ۳ ستمبر ۲۰۲۳ (۲۰۲۳.۰۹.۰۳).</div>
2359+
<div dir="rtl">آخری تازہ کاری: ۱۲ اکتوبر ۲۰۲۳ (۲۰۲۳.۱۰.۱۲).</div>

scripts/DocGen.php

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,30 @@
3333
$Final = '';
3434
$Data = $loadL10N($_GET['language']);
3535
$Data->PreferredVariant = $_GET['language'];
36+
$Data->autoAssignRules($_GET['language']);
3637
$First = "```\n" . $Data->getString('link.Configuration') . " (v3)\n\n";
3738
$Cats = count($CIDRAM->CIDRAM['Config Defaults']);
3839
$Current = 1;
3940
foreach ($CIDRAM->CIDRAM['Config Defaults'] as $Category => $Directives) {
4041
$First .= ($Current === $Cats ? '└───' : '├───') . $Category . "\n";
41-
$Out = str_replace(
42-
['<code>', '<code dir="ltr">', '<code dir="rtl">', '</code>', '<strong>', '</strong>', '<em>', '</em>'],
43-
['`', '`', '`', '`', '__', '__', '*', '*'],
44-
html_entity_decode($Data->getString('config.' . $Category))
45-
);
46-
$Final .= sprintf($Data->getString('category'), $Category, $Out) . "\n\n";
47-
foreach ($Directives as $Directive => $Info) {
42+
$Out = $Data->getString('config.' . $Category);
43+
if ($Data->Directionality !== 'rtl') {
4844
$Out = str_replace(
49-
['<code>', '<code dir="ltr">', '<code dir="rtl">', '</code>', '<strong>', '</strong>', '<em>', '</em>'],
50-
['`', '`', '`', '`', '__', '__', '*', '*'],
51-
html_entity_decode($Data->getString('config.' . $Category . '_' . $Directive))
45+
['<code>', '<code class="s">', '<code dir="ltr">', '<code dir="rtl">', '</code>', '<strong>', '</strong>', '<em>', '</em>'],
46+
['`', '`', '`', '`', '`', '__', '__', '*', '*'],
47+
html_entity_decode($Out)
5248
);
49+
}
50+
$Final .= sprintf($Data->getString('category'), $Category, $Out) . "\n\n";
51+
foreach ($Directives as $Directive => $Info) {
52+
$Out = $Data->getString('config.' . $Category . '_' . $Directive);
53+
if ($Data->Directionality !== 'rtl') {
54+
$Out = str_replace(
55+
['<code>', '<code class="s">', '<code dir="ltr">', '<code dir="rtl">', '</code>', '<strong>', '</strong>', '<em>', '</em>'],
56+
['`', '`', '`', '`', '`', '__', '__', '*', '*'],
57+
html_entity_decode($Out)
58+
);
59+
}
5360
$Default = $Info['default'] ?? '';
5461
if (in_array($Info['type'], ['duration', 'string', 'timezone', 'checkbox', 'url', 'email', 'kb'], true)) {
5562
$Type = 'string';
@@ -101,11 +108,13 @@
101108
}
102109
if (!empty($Info['hints'])) {
103110
foreach ($Data->arrayFromL10nToArray($Info['hints']) as $HintKey => $HintValue) {
104-
$HintValue = str_replace(
105-
['<code>', '<code dir="ltr">', '<code dir="rtl">', '</code>', '<strong>', '</strong>', '<em>', '</em>'],
106-
['`', '`', '`', '`', '__', '__', '*', '*'],
107-
html_entity_decode($HintValue)
108-
);
111+
if ($Data->Directionality !== 'rtl') {
112+
$HintValue = str_replace(
113+
['<code>', '<code class="s">', '<code dir="ltr">', '<code dir="rtl">', '</code>', '<strong>', '</strong>', '<em>', '</em>'],
114+
['`', '`', '`', '`', '`', '__', '__', '*', '*'],
115+
html_entity_decode($HintValue)
116+
);
117+
}
109118
if (!is_string($HintKey)) {
110119
$Final .= $HintValue . "\n\n";
111120
continue;

0 commit comments

Comments
 (0)