From 90d5a46227b5c6c70a8ce1c3994981df25bdc3bc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 23 May 2022 19:48:45 +0100 Subject: [PATCH 1/6] Submit becomes Publish --- blog.py | 2 +- daemon.py | 2 +- webapp_accesskeys.py | 2 +- webapp_column_left.py | 2 +- webapp_column_right.py | 6 +++--- webapp_create_post.py | 2 +- webapp_person_options.py | 14 +++++++------- webapp_profile.py | 4 ++-- webapp_search.py | 6 +++--- webapp_theme_designer.py | 2 +- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/blog.py b/blog.py index 078d50ff7..464300a34 100644 --- a/blog.py +++ b/blog.py @@ -892,7 +892,7 @@ def html_edit_blog(media_instance: bool, translate: {}, translate['Cancel'] + '' edit_blog_form += \ ' ' + translate['Publish'] + '">' edit_blog_form += ' ' if media_instance: edit_blog_form += edit_blog_image_section diff --git a/daemon.py b/daemon.py index e85d7064c..c41ae06e5 100644 --- a/daemon.py +++ b/daemon.py @@ -18806,7 +18806,7 @@ class PubServer(BaseHTTPRequestHandler): not fields.get('pinToProfile'): print('WARN: no message, image description or pin') return -1 - submit_text = self.server.translate['Submit'] + submit_text = self.server.translate['Publish'] custom_submit_text = \ get_config_param(self.server.base_dir, 'customSubmitText') if custom_submit_text: diff --git a/webapp_accesskeys.py b/webapp_accesskeys.py index 25a290ba3..223b55975 100644 --- a/webapp_accesskeys.py +++ b/webapp_accesskeys.py @@ -98,7 +98,7 @@ def html_access_keys(css_cache: {}, base_dir: str, translate['Go Back'] + '\n' + \ ' \n \n' + translate['Publish'] + '\n \n' access_keys_form += ' \n' access_keys_form += ' \n' diff --git a/webapp_column_left.py b/webapp_column_left.py index a1b057d51..a13f048a6 100644 --- a/webapp_column_left.py +++ b/webapp_column_left.py @@ -476,7 +476,7 @@ def html_edit_links(css_cache: {}, translate: {}, base_dir: str, path: str, '

' + translate['Edit Links'] + '

' edit_links_form += \ ' \n' edit_links_form += \ ' \n' diff --git a/webapp_column_right.py b/webapp_column_right.py index a848920c3..a88e0849b 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -418,7 +418,7 @@ def html_citations(base_dir: str, nickname: str, domain: str, # submit button html_str += \ ' \n' + translate['Publish'] + '">\n' html_str += ' \n' citations_separator = '#####' @@ -596,7 +596,7 @@ def html_edit_newswire(css_cache: {}, translate: {}, base_dir: str, path: str, '
\n' edit_newswire_form += \ ' \n' edit_newswire_form += \ '
\n' @@ -712,7 +712,7 @@ def html_edit_news_post(css_cache: {}, translate: {}, base_dir: str, path: str, '\n' edit_news_post_form += \ ' \n' + translate['Publish'] + '">\n' edit_news_post_form += \ ' \n' diff --git a/webapp_create_post.py b/webapp_create_post.py index 68052569d..841791022 100644 --- a/webapp_create_post.py +++ b/webapp_create_post.py @@ -870,7 +870,7 @@ def html_new_post(css_cache: {}, media_instance: bool, translate: {}, ' \n' - submit_text = translate['Submit'] + submit_text = translate['Publish'] if custom_submit_text: submit_text = custom_submit_text new_post_form += \ diff --git a/webapp_person_options.py b/webapp_person_options.py index a35702199..627f8e0ba 100644 --- a/webapp_person_options.py +++ b/webapp_person_options.py @@ -272,7 +272,7 @@ def html_person_options(default_timeline: str, 'accesskey="' + access_keys['enterPetname'] + '">\n' \ '
\n' + translate['Publish'] + '
\n' # Notify when a post arrives from this person if is_following_actor(base_dir, nickname, domain, options_actor): @@ -282,7 +282,7 @@ def html_person_options(default_timeline: str, translate['Notify me when this account posts'] + \ '\n
\n' + translate['Publish'] + '
\n' if not notify_when_person_posts(base_dir, nickname, domain, options_nickname, options_domain_full): @@ -295,7 +295,7 @@ def html_person_options(default_timeline: str, translate['Receive calendar events from this account'] + \ '\n
\n' + translate['Publish'] + '
\n' if not receiving_calendar_events(base_dir, nickname, domain, options_nickname, options_domain_full): @@ -320,7 +320,7 @@ def html_person_options(default_timeline: str, translate['Allow news posts'] + \ '\n
\n' + translate['Publish'] + '
\n' if os.path.isfile(newswire_blocked_filename): checkbox_str = checkbox_str.replace(' checked>', '>') else: @@ -340,7 +340,7 @@ def html_person_options(default_timeline: str, translate['News posts are moderated'] + \ '\n
\n' + translate['Publish'] + '
\n' if not os.path.isfile(moderated_filename): checkbox_str = checkbox_str.replace(' checked>', '>') options_str += checkbox_str @@ -358,7 +358,7 @@ def html_person_options(default_timeline: str, translate['Featured writer'] + \ '\n
\n' + translate['Publish'] + '
\n' if not is_featured_writer(base_dir, options_nickname, options_domain): checkbox_str = checkbox_str.replace(' checked>', '>') @@ -434,7 +434,7 @@ def html_person_options(default_timeline: str, '

' + translate['Notes'] + ': \n' options_str += '
\n' + translate['Publish'] + '
\n' options_str += \ '