mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
Make TL script dump dodgy strings for confirmation
This commit is contained in:
parent
329183d083
commit
92a3ed9eca
@ -59,6 +59,10 @@ if __name__ == '__main__':
|
|||||||
f.write(json.dumps({k:k for k in irc_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
f.write(json.dumps({k:k for k in irc_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
|
|
||||||
|
for string in irc_strings:
|
||||||
|
if 1 < string.count('%s') + string.count('%d') + string.count('%f'):
|
||||||
|
print(' confirm:', string)
|
||||||
|
|
||||||
# help entries
|
# help entries
|
||||||
help_strings = []
|
help_strings = []
|
||||||
|
|
||||||
@ -78,6 +82,10 @@ if __name__ == '__main__':
|
|||||||
f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
|
|
||||||
|
for string in help_strings:
|
||||||
|
if 1 < string.count('%s') + string.count('%d') + string.count('%f'):
|
||||||
|
print(' confirm:', string.split('\n')[0])
|
||||||
|
|
||||||
# nickserv help entries
|
# nickserv help entries
|
||||||
help_strings = []
|
help_strings = []
|
||||||
|
|
||||||
@ -97,6 +105,10 @@ if __name__ == '__main__':
|
|||||||
f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
|
|
||||||
|
for string in help_strings:
|
||||||
|
if 1 < string.count('%s') + string.count('%d') + string.count('%f'):
|
||||||
|
print(' confirm:', string)
|
||||||
|
|
||||||
# chanserv help entries
|
# chanserv help entries
|
||||||
help_strings = []
|
help_strings = []
|
||||||
|
|
||||||
@ -116,6 +128,10 @@ if __name__ == '__main__':
|
|||||||
f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
|
|
||||||
|
for string in help_strings:
|
||||||
|
if 1 < string.count('%s') + string.count('%d') + string.count('%f'):
|
||||||
|
print(' confirm:', string)
|
||||||
|
|
||||||
# hostserv help entries
|
# hostserv help entries
|
||||||
help_strings = []
|
help_strings = []
|
||||||
|
|
||||||
@ -134,3 +150,7 @@ if __name__ == '__main__':
|
|||||||
with open(os.path.join(arguments['<languages-dir>'], 'example', 'hostserv.lang.json'), 'w') as f:
|
with open(os.path.join(arguments['<languages-dir>'], 'example', 'hostserv.lang.json'), 'w') as f:
|
||||||
f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
f.write(json.dumps({k:k for k in help_strings}, sort_keys=True, indent=2, separators=(',', ': ')))
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
|
|
||||||
|
for string in help_strings:
|
||||||
|
if 1 < string.count('%s') + string.count('%d') + string.count('%f'):
|
||||||
|
print(' confirm:', string)
|
||||||
|
Loading…
Reference in New Issue
Block a user