Edit blogs, and add blog icons and banners (#460)
Also adds a parameter to `md_to_html` to only render inline elements (so that we don't have titles or images in blog descriptions). And moves the delete button for the blog on the edition page. I still have to update the SQLite migration once others PRs with migrations will be merged. Also, there will be a problem when you edit a blog while not owning its banner or icon: when validating they will be reset to their default values… I don't see a good solution to this until we have a better way to handle uploads with Rocket (the same is probably happening for articles btw). And the icon/banner are not federated yet, I don't know if I should add it to this PR or if it can come after?   Fixes #453 Fixes #454
This commit is contained in:
+68
-27
@@ -45,6 +45,18 @@ msgstr "يجب عليك تسجيل الدخول قصد انشاء مدونة ج
|
||||
msgid "You are not allowed to delete this blog."
|
||||
msgstr "لست مِن محرري هذه المدونة."
|
||||
|
||||
#, fuzzy
|
||||
msgid "You are not allowed to edit this blog."
|
||||
msgstr "لست مِن محرري هذه المدونة."
|
||||
|
||||
#, fuzzy
|
||||
msgid "You can't use this media as blog icon."
|
||||
msgstr "لست مِن محرري هذه المدونة."
|
||||
|
||||
#, fuzzy
|
||||
msgid "You can't use this media as blog banner."
|
||||
msgstr "لست مِن محرري هذه المدونة."
|
||||
|
||||
msgid "You need to be logged in order to like a post"
|
||||
msgstr "يجب عليك تسجيل الدخول قصد الإعجاب بالمنشور"
|
||||
|
||||
@@ -388,6 +400,13 @@ msgstr "يستضيف <em>{0}</em> مستخدمين"
|
||||
msgid "Read the detailed rules"
|
||||
msgstr "إقرأ القواعد بالتفصيل"
|
||||
|
||||
msgid "None"
|
||||
msgstr "لا شيء"
|
||||
|
||||
#, fuzzy
|
||||
msgid "No description"
|
||||
msgstr "الوصف الطويل"
|
||||
|
||||
msgid "View all"
|
||||
msgstr "عرضها كافة"
|
||||
|
||||
@@ -561,9 +580,6 @@ msgstr ""
|
||||
msgid "Illustration"
|
||||
msgstr "الصورة الإيضاحية"
|
||||
|
||||
msgid "None"
|
||||
msgstr "لا شيء"
|
||||
|
||||
msgid "This is a draft, don't publish it yet."
|
||||
msgstr "هذه مُسودّة، لا تقم بنشرها الآن."
|
||||
|
||||
@@ -682,6 +698,39 @@ msgstr "حصل خطأ ما مِن جهتنا."
|
||||
msgid "Sorry about that. If you think this is a bug, please report it."
|
||||
msgstr "نعتذر عن الإزعاج. إن كنت تضن أن هذه مشكلة، يرجى إبلاغنا."
|
||||
|
||||
#, fuzzy
|
||||
msgid "Edit \"{}\""
|
||||
msgstr "تعديل {0}"
|
||||
|
||||
msgid "Description"
|
||||
msgstr "الوصف"
|
||||
|
||||
msgid ""
|
||||
"You can upload images to your gallery, to use them as blog icons or banners."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Upload images"
|
||||
msgstr "إرسال"
|
||||
|
||||
msgid "Blog icon"
|
||||
msgstr ""
|
||||
|
||||
msgid "Blog banner"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Update blog"
|
||||
msgstr "انشاء مدونة"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Be very careful, any action taken here can't be reversed."
|
||||
msgstr "نوخى الحذر هنا، فكل إجراء تأخذه هنا لا يمكن الغاؤه."
|
||||
|
||||
#, fuzzy
|
||||
msgid "Permanently delete this blog"
|
||||
msgstr "احذف هذه المدونة"
|
||||
|
||||
#, fuzzy
|
||||
msgid "New Blog"
|
||||
msgstr "مدونة جديدة"
|
||||
@@ -692,6 +741,12 @@ msgstr "انشئ مدونة"
|
||||
msgid "Create blog"
|
||||
msgstr "انشاء مدونة"
|
||||
|
||||
msgid "{}'s icon"
|
||||
msgstr ""
|
||||
|
||||
msgid "New article"
|
||||
msgstr "مقال جديد"
|
||||
|
||||
#, fuzzy
|
||||
msgid "There's one author on this blog: "
|
||||
msgid_plural "There are {0} authors on this blog: "
|
||||
@@ -702,30 +757,9 @@ msgstr[3] "{0} مؤلف على هذه المدونة: "
|
||||
msgstr[4] "{0} مؤلفون على هذه المدونة: "
|
||||
msgstr[5] "{0} كُتاب على هذه المدونة: "
|
||||
|
||||
#, fuzzy
|
||||
msgid "There's one article on this blog"
|
||||
msgid_plural "There are {0} articles on this blog"
|
||||
msgstr[0] "لا مقال على هذه المدونة"
|
||||
msgstr[1] "{0} مقال على هذه المدونة"
|
||||
msgstr[2] "مقالَين على هذه المدونة"
|
||||
msgstr[3] "{0} مقالات على هذه المدونة"
|
||||
msgstr[4] "{0} مقالات على هذه المدونة"
|
||||
msgstr[5] "{0} مقالات على هذه المدونة"
|
||||
|
||||
msgid "No posts to see here yet."
|
||||
msgstr "في الوقت الراهن لا توجد أية منشورات هنا."
|
||||
|
||||
msgid "New article"
|
||||
msgstr "مقال جديد"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Be very careful, any action taken here can't be reversed."
|
||||
msgstr "نوخى الحذر هنا، فكل إجراء تأخذه هنا لا يمكن الغاؤه."
|
||||
|
||||
#, fuzzy
|
||||
msgid "Permanently delete this blog"
|
||||
msgstr "احذف هذه المدونة"
|
||||
|
||||
msgid "Articles tagged \"{0}\""
|
||||
msgstr "المقالات الموسومة بـ \"{0}\""
|
||||
|
||||
@@ -753,9 +787,6 @@ msgstr "تفاصيل الصورة"
|
||||
msgid "Media upload"
|
||||
msgstr "إرسال الوسائط"
|
||||
|
||||
msgid "Description"
|
||||
msgstr "الوصف"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Useful for visually impaired people, as well as licensing information"
|
||||
msgstr "صالح للمُعاقين بصريا وكذا لمعلومات الرخصة"
|
||||
@@ -787,6 +818,16 @@ msgstr "قم بنسخه و إلصاقه في محتوى مقالك لعرض ال
|
||||
msgid "Use as avatar"
|
||||
msgstr "استخدمها كصورة رمزية"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "There's one article on this blog"
|
||||
#~ msgid_plural "There are {0} articles on this blog"
|
||||
#~ msgstr[0] "لا مقال على هذه المدونة"
|
||||
#~ msgstr[1] "{0} مقال على هذه المدونة"
|
||||
#~ msgstr[2] "مقالَين على هذه المدونة"
|
||||
#~ msgstr[3] "{0} مقالات على هذه المدونة"
|
||||
#~ msgstr[4] "{0} مقالات على هذه المدونة"
|
||||
#~ msgstr[5] "{0} مقالات على هذه المدونة"
|
||||
|
||||
#~ msgid "{0}'s followers"
|
||||
#~ msgstr "{0} متابِعون"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user