mirror of https://gitlab.com/bashrc2/epicyon
Translated submit buttons
parent
e97ea27fa3
commit
fdeb35f39b
|
@ -10885,7 +10885,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# was the citations button pressed on the newblog screen?
|
# was the citations button pressed on the newblog screen?
|
||||||
citationsButtonPress = False
|
citationsButtonPress = False
|
||||||
if postType == 'newblog' and fields.get('submitCitations'):
|
if postType == 'newblog' and fields.get('submitCitations'):
|
||||||
if fields['submitCitations'] == 'Submit':
|
if fields['submitCitations'] == \
|
||||||
|
self.server.translate['Citations']:
|
||||||
citationsButtonPress = True
|
citationsButtonPress = True
|
||||||
|
|
||||||
if not citationsButtonPress:
|
if not citationsButtonPress:
|
||||||
|
@ -10894,7 +10895,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
not fields.get('imageDescription'):
|
not fields.get('imageDescription'):
|
||||||
return -1
|
return -1
|
||||||
if fields.get('submitPost'):
|
if fields.get('submitPost'):
|
||||||
if fields['submitPost'] != 'Submit':
|
if fields['submitPost'] != \
|
||||||
|
self.server.translate['Submit']:
|
||||||
return -1
|
return -1
|
||||||
else:
|
else:
|
||||||
return 2
|
return 2
|
||||||
|
|
|
@ -2998,11 +2998,12 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||||
# for a new blog if newswire items exist then add a citations button
|
# for a new blog if newswire items exist then add a citations button
|
||||||
if newswire and path.endswith('/newblog'):
|
if newswire and path.endswith('/newblog'):
|
||||||
newPostForm += \
|
newPostForm += \
|
||||||
' <input type="submit" ' + \
|
' <input type="submit" name="submitCitations" value="' + \
|
||||||
'name="submitCitations" value="Submit">\n'
|
translate['Citations'] + '">\n'
|
||||||
|
|
||||||
newPostForm += \
|
newPostForm += \
|
||||||
' <input type="submit" name="submitPost" value="Submit">\n'
|
' <input type="submit" name="submitPost" value="' + \
|
||||||
|
translate['Submit'] + '">\n'
|
||||||
|
|
||||||
newPostForm += ' </center></div>\n'
|
newPostForm += ' </center></div>\n'
|
||||||
|
|
||||||
|
@ -5907,7 +5908,8 @@ def htmlCitations(baseDir: str, nickname: str, domain: str,
|
||||||
' <input type="hidden" name="blogContent" value="' + \
|
' <input type="hidden" name="blogContent" value="' + \
|
||||||
blogContent + '">\n'
|
blogContent + '">\n'
|
||||||
htmlStr += \
|
htmlStr += \
|
||||||
' <input type="submit" name="submitCitations" value="Submit">\n'
|
' <input type="submit" name="submitCitations" value="' + \
|
||||||
|
translate['Citations'] + '">\n'
|
||||||
htmlStr += ' </center>\n'
|
htmlStr += ' </center>\n'
|
||||||
|
|
||||||
# list of newswire items
|
# list of newswire items
|
||||||
|
|
Loading…
Reference in New Issue