forked from indymedia/epicyon
Translated submit buttons
parent
e97ea27fa3
commit
fdeb35f39b
|
@ -10885,7 +10885,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
# was the citations button pressed on the newblog screen?
|
||||
citationsButtonPress = False
|
||||
if postType == 'newblog' and fields.get('submitCitations'):
|
||||
if fields['submitCitations'] == 'Submit':
|
||||
if fields['submitCitations'] == \
|
||||
self.server.translate['Citations']:
|
||||
citationsButtonPress = True
|
||||
|
||||
if not citationsButtonPress:
|
||||
|
@ -10894,7 +10895,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
not fields.get('imageDescription'):
|
||||
return -1
|
||||
if fields.get('submitPost'):
|
||||
if fields['submitPost'] != 'Submit':
|
||||
if fields['submitPost'] != \
|
||||
self.server.translate['Submit']:
|
||||
return -1
|
||||
else:
|
||||
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
|
||||
if newswire and path.endswith('/newblog'):
|
||||
newPostForm += \
|
||||
' <input type="submit" ' + \
|
||||
'name="submitCitations" value="Submit">\n'
|
||||
' <input type="submit" name="submitCitations" value="' + \
|
||||
translate['Citations'] + '">\n'
|
||||
|
||||
newPostForm += \
|
||||
' <input type="submit" name="submitPost" value="Submit">\n'
|
||||
' <input type="submit" name="submitPost" value="' + \
|
||||
translate['Submit'] + '">\n'
|
||||
|
||||
newPostForm += ' </center></div>\n'
|
||||
|
||||
|
@ -5907,7 +5908,8 @@ def htmlCitations(baseDir: str, nickname: str, domain: str,
|
|||
' <input type="hidden" name="blogContent" value="' + \
|
||||
blogContent + '">\n'
|
||||
htmlStr += \
|
||||
' <input type="submit" name="submitCitations" value="Submit">\n'
|
||||
' <input type="submit" name="submitCitations" value="' + \
|
||||
translate['Citations'] + '">\n'
|
||||
htmlStr += ' </center>\n'
|
||||
|
||||
# list of newswire items
|
||||
|
|
Loading…
Reference in New Issue