diff --git a/translations/ar.json b/translations/ar.json index 087f1bc9d..b3a408074 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -366,5 +366,6 @@ "Version": "الإصدار", "Skip to timeline": "تخطي إلى الجدول الزمني", "Skip to Newswire": "انتقل إلى Newswire", - "Skip to Links": "تخطي إلى روابط الويب" + "Skip to Links": "تخطي إلى روابط الويب", + "Publish a blog article": "نشر مقال بلوق" } diff --git a/translations/ca.json b/translations/ca.json index 17b1414f4..232ee4300 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -366,5 +366,6 @@ "Version": "Versió", "Skip to timeline": "Ves a la cronologia", "Skip to Newswire": "Vés a Newswire", - "Skip to Links": "Vés als enllaços web" + "Skip to Links": "Vés als enllaços web", + "Publish a blog article": "Publicar un article del bloc" } diff --git a/translations/cy.json b/translations/cy.json index 26813ecc2..55b4b95e1 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -366,5 +366,6 @@ "Version": "Fersiwn", "Skip to timeline": "Neidio i'r llinell amser", "Skip to Newswire": "Neidio i Newswire", - "Skip to Links": "Neidio i Dolenni Gwe" + "Skip to Links": "Neidio i Dolenni Gwe", + "Publish a blog article": "Cyhoeddi erthygl blog" } diff --git a/translations/de.json b/translations/de.json index cb0fa5c24..140712ebd 100644 --- a/translations/de.json +++ b/translations/de.json @@ -366,5 +366,6 @@ "Version": "Ausführung", "Skip to timeline": "Zur Zeitleiste springen", "Skip to Newswire": "Springe zu Newswire", - "Skip to Links": "Springe zu Weblinks" + "Skip to Links": "Springe zu Weblinks", + "Publish a blog article": "Veröffentlichen Sie einen Blog-Artikel" } diff --git a/translations/en.json b/translations/en.json index bdf30b608..77da14052 100644 --- a/translations/en.json +++ b/translations/en.json @@ -366,5 +366,6 @@ "Version": "Version", "Skip to timeline": "Skip to timeline", "Skip to Newswire": "Skip to Newswire", - "Skip to Links": "Skip to Links" + "Skip to Links": "Skip to Links", + "Publish a blog article": "Publish a blog article" } diff --git a/translations/es.json b/translations/es.json index 602d20746..cf09d1446 100644 --- a/translations/es.json +++ b/translations/es.json @@ -366,5 +366,6 @@ "Version": "Versión", "Skip to timeline": "Saltar a la línea de tiempo", "Skip to Newswire": "Saltar a Newswire", - "Skip to Links": "Saltar a enlaces web" + "Skip to Links": "Saltar a enlaces web", + "Publish a blog article": "Publica un artículo de blog" } diff --git a/translations/fr.json b/translations/fr.json index 2506982e9..ac51b24fa 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -366,5 +366,6 @@ "Version": "Version", "Skip to timeline": "Passer à la chronologie", "Skip to Newswire": "Passer à Newswire", - "Skip to Links": "Passer aux liens Web" + "Skip to Links": "Passer aux liens Web", + "Publish a blog article": "Publier un article de blog" } diff --git a/translations/ga.json b/translations/ga.json index 169fd5e3e..5cff4c525 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -366,5 +366,6 @@ "Version": "Leagan", "Skip to timeline": "Scipeáil chuig an amlíne", "Skip to Newswire": "Scipeáil chuig Newswire", - "Skip to Links": "Scipeáil chuig Naisc Ghréasáin" + "Skip to Links": "Scipeáil chuig Naisc Ghréasáin", + "Publish a blog article": "Foilsigh alt blagála" } diff --git a/translations/hi.json b/translations/hi.json index def3d5d1f..a83d8d5a9 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -366,5 +366,6 @@ "Version": "संस्करण", "Skip to timeline": "टाइमलाइन पर जाएं", "Skip to Newswire": "Newswire पर जाएं", - "Skip to Links": "वेब लिंक पर जाएं" + "Skip to Links": "वेब लिंक पर जाएं", + "Publish a blog article": "एक ब्लॉग लेख प्रकाशित करें" } diff --git a/translations/it.json b/translations/it.json index fc13ee792..e7082ff98 100644 --- a/translations/it.json +++ b/translations/it.json @@ -366,5 +366,6 @@ "Version": "Versione", "Skip to timeline": "Passa alla sequenza temporale", "Skip to Newswire": "Passa a Newswire", - "Skip to Links": "Passa a collegamenti Web" + "Skip to Links": "Passa a collegamenti Web", + "Publish a blog article": "Pubblica un articolo sul blog" } diff --git a/translations/ja.json b/translations/ja.json index e5de8f525..38d6685a4 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -366,5 +366,6 @@ "Version": "バージョン", "Skip to timeline": "タイムラインにスキップ", "Skip to Newswire": "Newswireにスキップ", - "Skip to Links": "Webリンクにスキップ" + "Skip to Links": "Webリンクにスキップ", + "Publish a blog article": "ブログ記事を公開する" } diff --git a/translations/oc.json b/translations/oc.json index a6d62a6e0..7cd70a858 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -362,5 +362,6 @@ "Version": "Version", "Skip to timeline": "Skip to timeline", "Skip to Newswire": "Skip to Newswire", - "Skip to Links": "Skip to Links" + "Skip to Links": "Skip to Links", + "Publish a blog article": "Publish a blog article" } diff --git a/translations/pt.json b/translations/pt.json index d0f485ca5..2abe336bf 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -366,5 +366,6 @@ "Version": "Versão", "Skip to timeline": "Pular para a linha do tempo", "Skip to Newswire": "Pular para Newswire", - "Skip to Links": "Pular para links da web" + "Skip to Links": "Pular para links da web", + "Publish a blog article": "Publique um artigo de blog" } diff --git a/translations/ru.json b/translations/ru.json index 14eb8b5db..b75628208 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -366,5 +366,6 @@ "Version": "Версия", "Skip to timeline": "Перейти к временной шкале", "Skip to Newswire": "Перейти к ленте новостей", - "Skip to Links": "Перейти к веб-ссылкам" + "Skip to Links": "Перейти к веб-ссылкам", + "Publish a blog article": "Опубликовать статью в блоге" } diff --git a/translations/zh.json b/translations/zh.json index b75b33b3f..ea0dcce39 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -366,5 +366,6 @@ "Version": "版", "Skip to timeline": "跳到时间线", "Skip to Newswire": "跳到新闻专线", - "Skip to Links": "跳到网页链接" + "Skip to Links": "跳到网页链接", + "Publish a blog article": "发布博客文章" } diff --git a/webapp_column_right.py b/webapp_column_right.py index b245a5c6e..b2a4e63b6 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -50,7 +50,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, publishButtonAtTop: bool, authorized: bool, showHeaderImage: bool, - theme: str) -> str: + theme: str, + defaultTimeline: str) -> str: """Returns html content for the right column """ htmlStr = '' @@ -62,10 +63,13 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, if authorized: # only show the publish button if logged in, otherwise replace it with # a login button + titleStr = translate['Publish a blog article'] + if defaultTimeline == 'tlfeatures': + titleStr = translate['Publish a news article'] publishButtonStr = \ ' ' + \ + 'title="' + titleStr + '">' + \ '\n' else: @@ -158,13 +162,16 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, # show publish icon at top if showPublishButton: if showPublishAsIcon: + titleStr = translate['Publish a blog article'] + if defaultTimeline == 'tlfeatures': + titleStr = translate['Publish a news article'] htmlStr += \ ' ' + \ '' + \
-                translate['Publish a news article'] + '\n' if editImageClass == 'rightColEdit': @@ -485,7 +492,8 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str, newswire, positiveVoting, False, timelinePath, showPublishButton, showPublishAsIcon, rssIconAtTop, False, - authorized, False, theme) + authorized, False, theme, + defaultTimeline) else: if editor: htmlStr += '


\n'