Skip to content

Commit 6a0641e

Browse files
authored
Merge pull request #98 from patrickwebsdev/fix/arabic-timeline
Fix/arabic timeline
2 parents da20876 + b37a787 commit 6a0641e

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

resources/lang/ar/timeline.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
return [
33
'title' => [
4-
'modifiedTitle' => 'The <strong>%s</strong> was <strong>%s</strong> by <strong>%s</strong>. <br><small> Updated at: <strong>%s</strong></small>',
4+
'modifiedTitle' => 'تم تعديل <strong>%s</strong> بواسطة <strong>%s</strong>. <br><small> تم التحديث في: <strong>%s</strong></small>',
55
],
66
'properties' => [
7-
'modifiedProperties' => '%s %s the following: <br>%s',
7+
'modifiedProperties' => 'تم تعديل الخصائص التالية بواسطة %s: <br>%s',
88
'compareOldAndNewValues' => [
9-
'notEquals' => '- %s from <strong>%s</strong> to <strong>%s</strong>',
9+
'notEquals' => '- %s من <strong>%s</strong> إلى <strong>%s</strong>',
1010
'equals' => '- %s <strong>%s</strong>',
1111
],
1212
'getNewValues' => '- %s <strong>%s</strong>',

src/Infolists/Components/TimeLineTitleEntry.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ private function modifiedTitle($state): string|HtmlString|Closure
5757
return $this->evaluate($this->configureTitleUsing, ['state' => $state]);
5858
} else {
5959
if ($state['description'] == $state['event']) {
60-
$className = Str::lower(Str::snake(class_basename($state['subject']), ' '));
60+
$className = property_exists($state['subject'], 'activityTitleName') && !empty($state['subject']::$activityTitleName)
61+
? $state['subject']::$activityTitleName
62+
: Str::lower(Str::snake(class_basename($state['subject']), ' '));
6163
$causerName = $this->getCauserName($state['causer']);
6264

6365
$parser = ActivitylogPlugin::get()->getDateParser();

0 commit comments

Comments
 (0)