Skip to content

Commit

Permalink
fix: add Arabic font support and SVG upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BasselArt committed Dec 30, 2024
1 parent 4d97357 commit 47a2b93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/tasks/new_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NotifyAboutNewComment(post *entity.Post, comment string) worker.Task {
}

author := c.User()
title := fmt.Sprintf("**%s** %s **%s**", author.Name, i18n.T(c, "notification.comment"), post.Title)
title := fmt.Sprintf("**%s** %s **%s**", author.Name, i18n.T(c, "notification.leftcomment"), post.Title)
link := fmt.Sprintf("/posts/%d/%s", post.Number, post.Slug)
for _, user := range users {
if user.ID != author.ID {
Expand Down
2 changes: 1 addition & 1 deletion app/tasks/new_post.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NotifyAboutNewPost(post *entity.Post) worker.Task {
}

author := c.User()
title := fmt.Sprintf("%s: **%s**", i18n.T(c, "notification.post"), post.Title)
title := fmt.Sprintf("%s: **%s**", i18n.T(c, "notification.newpost"), post.Title)
link := fmt.Sprintf("/posts/%d/%s", post.Number, post.Slug)
for _, user := range users {
if user.ID != author.ID {
Expand Down
3 changes: 1 addition & 2 deletions locale/ar/client.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"enum.poststatus.duplicate": "مكرر",
"enum.poststatus.open": "مفتوح",
"enum.poststatus.planned": "مخطط له",
"enum.poststatus.started": "بدأ العمل عليه",
"enum.poststatus.started": "بدأ العمل",
"error.expired.text": "الرابط الذي نقرت عليه قد انتهت صلاحيته.",
"error.expired.title": "منتهي الصلاحية",
"error.forbidden.text": "أنت غير مخول لعرض هذه الصفحة.",
Expand Down Expand Up @@ -84,7 +84,6 @@
"modal.deleteaccount.text": "<0>عند اختيارك حذف حسابك، سنمحو جميع معلوماتك الشخصية إلى الأبد. سيبقى المحتوى الذي قمت بنشره، ولكنه سيصبح مجهولًا.</0><1>هذه العملية لا رجعة فيها. <2>هل أنت متأكد؟</2></1>",
"modal.deletecomment.header": "حذف التعليق",
"modal.deletecomment.text": "هذه العملية لا رجعة فيها. <0>هل أنت متأكد؟</0>",
"modal.notifications.nonew": "لا توجد إشعارات جديدة",
"modal.notifications.previous": "الإشعارات السابقة",
"modal.notifications.unread": "الإشعارات غير المقروءة",
"modal.showvotes.message.zeromatches": "لم يتم العثور على مستخدمين مطابقين لـ <0>{0}</0>.",
Expand Down

0 comments on commit 47a2b93

Please sign in to comment.