mirror of https://gitlab.com/bashrc2/epicyon
Submit becomes Publish
parent
6dc8c1d49a
commit
90d5a46227
2
blog.py
2
blog.py
|
@ -892,7 +892,7 @@ def html_edit_blog(media_instance: bool, translate: {},
|
|||
translate['Cancel'] + '</button></a>'
|
||||
edit_blog_form += \
|
||||
' <input type="submit" name="submitPost" value="' + \
|
||||
translate['Submit'] + '">'
|
||||
translate['Publish'] + '">'
|
||||
edit_blog_form += ' </center></div>'
|
||||
if media_instance:
|
||||
edit_blog_form += edit_blog_image_section
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -98,7 +98,7 @@ def html_access_keys(css_cache: {}, base_dir: str,
|
|||
translate['Go Back'] + '</button>\n' + \
|
||||
' <button type="submit" class="button" ' + \
|
||||
'name="submitAccessKeys" accesskey="' + submit_key + '">' + \
|
||||
translate['Submit'] + '</button>\n </center>\n'
|
||||
translate['Publish'] + '</button>\n </center>\n'
|
||||
|
||||
access_keys_form += ' <table class="accesskeys">\n'
|
||||
access_keys_form += ' <colgroup>\n'
|
||||
|
|
|
@ -476,7 +476,7 @@ def html_edit_links(css_cache: {}, translate: {}, base_dir: str, path: str,
|
|||
' <h1>' + translate['Edit Links'] + '</h1>'
|
||||
edit_links_form += \
|
||||
' <input type="submit" name="submitLinks" value="' + \
|
||||
translate['Submit'] + '" ' + \
|
||||
translate['Publish'] + '" ' + \
|
||||
'accesskey="' + access_keys['submitButton'] + '">\n'
|
||||
edit_links_form += \
|
||||
' </div>\n'
|
||||
|
|
|
@ -418,7 +418,7 @@ def html_citations(base_dir: str, nickname: str, domain: str,
|
|||
# submit button
|
||||
html_str += \
|
||||
' <input type="submit" name="submitCitations" value="' + \
|
||||
translate['Submit'] + '">\n'
|
||||
translate['Publish'] + '">\n'
|
||||
html_str += ' </center>\n'
|
||||
|
||||
citations_separator = '#####'
|
||||
|
@ -596,7 +596,7 @@ def html_edit_newswire(css_cache: {}, translate: {}, base_dir: str, path: str,
|
|||
' <div class="containerSubmitNewPost">\n'
|
||||
edit_newswire_form += \
|
||||
' <input type="submit" name="submitNewswire" value="' + \
|
||||
translate['Submit'] + '" ' + \
|
||||
translate['Publish'] + '" ' + \
|
||||
'accesskey="' + access_keys['submitButton'] + '">\n'
|
||||
edit_newswire_form += \
|
||||
' </div>\n'
|
||||
|
@ -712,7 +712,7 @@ def html_edit_news_post(css_cache: {}, translate: {}, base_dir: str, path: str,
|
|||
'<button class="cancelbtn">' + translate['Go Back'] + '</button></a>\n'
|
||||
edit_news_post_form += \
|
||||
' <input type="submit" name="submitEditedNewsPost" value="' + \
|
||||
translate['Submit'] + '">\n'
|
||||
translate['Publish'] + '">\n'
|
||||
edit_news_post_form += \
|
||||
' </div>\n'
|
||||
|
||||
|
|
|
@ -870,7 +870,7 @@ def html_new_post(css_cache: {}, media_instance: bool, translate: {},
|
|||
' <td><input type="submit" name="submitCitations" value="' + \
|
||||
translate['Citations'] + '"></td>\n'
|
||||
|
||||
submit_text = translate['Submit']
|
||||
submit_text = translate['Publish']
|
||||
if custom_submit_text:
|
||||
submit_text = custom_submit_text
|
||||
new_post_form += \
|
||||
|
|
|
@ -272,7 +272,7 @@ def html_person_options(default_timeline: str,
|
|||
'accesskey="' + access_keys['enterPetname'] + '">\n' \
|
||||
' <button type="submit" class="buttonsmall" ' + \
|
||||
'name="submitPetname">' + \
|
||||
translate['Submit'] + '</button><br>\n'
|
||||
translate['Publish'] + '</button><br>\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 <button type="submit" class="buttonsmall" ' + \
|
||||
'name="submitNotifyOnPost">' + \
|
||||
translate['Submit'] + '</button><br>\n'
|
||||
translate['Publish'] + '</button><br>\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 <button type="submit" class="buttonsmall" ' + \
|
||||
'name="submitOnCalendar">' + \
|
||||
translate['Submit'] + '</button><br>\n'
|
||||
translate['Publish'] + '</button><br>\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 <button type="submit" class="buttonsmall" ' + \
|
||||
'name="submitPostToNews">' + \
|
||||
translate['Submit'] + '</button><br>\n'
|
||||
translate['Publish'] + '</button><br>\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 <button type="submit" class="buttonsmall" ' + \
|
||||
'name="submitModNewsPosts">' + \
|
||||
translate['Submit'] + '</button><br>\n'
|
||||
translate['Publish'] + '</button><br>\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 <button type="submit" class="buttonsmall" ' + \
|
||||
'name="submitPostToFeatures">' + \
|
||||
translate['Submit'] + '</button><br>\n'
|
||||
translate['Publish'] + '</button><br>\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,
|
|||
' <br><br>' + translate['Notes'] + ': \n'
|
||||
options_str += ' <button type="submit" class="buttonsmall" ' + \
|
||||
'name="submitPersonNotes">' + \
|
||||
translate['Submit'] + '</button><br>\n'
|
||||
translate['Publish'] + '</button><br>\n'
|
||||
options_str += \
|
||||
' <textarea id="message" ' + \
|
||||
'name="optionnotes" style="height:400px" spellcheck="true" ' + \
|
||||
|
|
|
@ -2168,7 +2168,7 @@ def _html_edit_profile_top_banner(base_dir: str,
|
|||
' <center>\n' + \
|
||||
' <input type="submit" name="submitProfile" ' + \
|
||||
'accesskey="' + access_keys['submitButton'] + '" ' + \
|
||||
'value="' + translate['Submit'] + '">\n' + \
|
||||
'value="' + translate['Publish'] + '">\n' + \
|
||||
' </center>\n'
|
||||
edit_profile_form += ' </div>\n'
|
||||
|
||||
|
@ -2431,7 +2431,7 @@ def html_edit_profile(server, css_cache: {}, translate: {},
|
|||
edit_profile_form += \
|
||||
' <center>\n' + \
|
||||
' <input type="submit" name="submitProfile" value="' + \
|
||||
translate['Submit'] + '">\n' + \
|
||||
translate['Publish'] + '">\n' + \
|
||||
' </center>\n'
|
||||
edit_profile_form += ' </div>\n'
|
||||
|
||||
|
|
|
@ -366,7 +366,7 @@ def html_search_emoji_text_entry(css_cache: {}, translate: {},
|
|||
emoji_str += ' <input type="text" name="searchtext" autofocus><br>\n'
|
||||
emoji_str += \
|
||||
' <button type="submit" class="button" name="submitSearch">' + \
|
||||
translate['Submit'] + '</button>\n'
|
||||
translate['Publish'] + '</button>\n'
|
||||
emoji_str += ' </form>\n'
|
||||
emoji_str += ' </center>\n'
|
||||
emoji_str += ' </div>\n'
|
||||
|
@ -437,7 +437,7 @@ def html_search(css_cache: {}, translate: {},
|
|||
submit_key = access_keys['submitButton']
|
||||
follow_str += ' <button type="submit" class="button" ' + \
|
||||
'name="submitSearch" accesskey="' + submit_key + '">' + \
|
||||
translate['Submit'] + '</button>\n'
|
||||
translate['Publish'] + '</button>\n'
|
||||
follow_str += ' </form>\n'
|
||||
|
||||
cached_hashtag_swarm_filename = \
|
||||
|
@ -818,7 +818,7 @@ def html_hashtag_search(css_cache: {},
|
|||
'name="hashtagCategory" value="' + category + '">\n'
|
||||
hashtag_search_form += \
|
||||
' <button type="submit" class="button" name="submitYes">' + \
|
||||
translate['Submit'] + '</button>\n'
|
||||
translate['Publish'] + '</button>\n'
|
||||
hashtag_search_form += ' </center>\n'
|
||||
hashtag_search_form += ' </form>\n'
|
||||
hashtag_search_form += '</div>\n'
|
||||
|
|
|
@ -221,7 +221,7 @@ def html_theme_designer(css_cache: {}, base_dir: str,
|
|||
translate['Reset'] + '</button>\n' + \
|
||||
' <button type="submit" class="button" ' + \
|
||||
'name="submitThemeDesigner" accesskey="' + submit_key + '">' + \
|
||||
translate['Submit'] + '</button>\n </center>\n'
|
||||
translate['Publish'] + '</button>\n </center>\n'
|
||||
|
||||
contrast_warning = ''
|
||||
if theme_json.get('main-bg-color'):
|
||||
|
|
Loading…
Reference in New Issue