-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstringConstants.py
More file actions
59 lines (41 loc) · 2.49 KB
/
Copy pathstringConstants.py
File metadata and controls
59 lines (41 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
WINDOW_TITLE = "JPG to PDF Converter by Pack Yak1"
WINDOW_SIZE = "442x290"
# Display strings & functions
SUCCESS_TITLE = "Success!"
SAVED_CONFIG_MESSAGE = "Default settings successfully updated"
RESET_CONFIG_MESSAGE = "Setting successfully reset"
RESET_ALL_CONFIG_MESSAGE = "All settings successfully reset to default values"
# Success message upon converting/combining a pdf
def CONVERT_SUCCESS_MESSAGE(data):
return "%d images successfully converted to PDF at %s" % (
len(data.convertNames), data.convertDest
)
def COMBINE_SUCCESS_MESSAGE(data):
return "%d PDFs successfully combined and saved to %s" % (
len(data.combineNames), data.combineDest
)
RESET_ALL_TITLE = "Reset all defaults"
RESET_ALL_MESSAGE = "Are you sure you wish to reset all configurations to default settings?"
CORRUPT_CONFIG_TITLE = "Config file improperly formatted"
CORRUPT_CONFIG_MESSAGE = "The config file is improperly formatted and needs to be reset to continue. Your settings will be reset if you continue"
NO_CONVERT_SELECTION_TITLE = "No images selected for conversion"
NO_CONVERT_SELECTION_PROMPT = "Please select images before clicking Convert."
NO_COMBINE_SELECTION_TITLE = "No PDFs selected for combining"
NO_COMBINE_SELECTION_PROMPT = "Please select PDFs "
NO_DEST_TITLE = "No save path selected"
NO_DEST_PROMPT = "Please select a destination to save pdf to."
FILE_IN_USE_TITLE = "File is currently in use"
FILE_IN_USE_ERROR = "Your pdf was not converted because it is currently in use. Try closing it before overwriting."
INVALID_FILE_TYPE_TITLE = "Invalid file(s) selected"
CONVERT_INVALID_FILE_TYPE_ERROR = "Check that only .png .jpg or .bmp images have been selected."
COMBINE_INVALID_FILE_TYPE_ERROR = "Check that only PDFs were selected for combining."
UNKNOWN_ERROR_TITLE = "An unknown error has occured"
UNKNOWN_ERROR = "Your last action may not have been executed correctly. Please check the log file and report it at: https://github.com/Pack-Yak1/image-to-pdf/issues"
NO_LOG_TITLE = "No logs to show"
NO_LOG_MSG = "No errors occured so far, so no logs have been recorded."
STRINGVAR_GENERATION_TYPE_ERROR = "Attempted to call stringVarOf on non-string object"
QUALITY_FIELD_DEFAULT = "(Quality)"
QUALITY_ERROR_TITLE = "Incorrect format for quality"
QUALITY_ERROR = "Please either leave quality blank, or enter an integer from 1 to 95. Decimals are not allowed."
NO_OUTPUT_TITLE = "No output produced yet"
NO_OUTPUT_MSG = "No PDFs have been produced since Pack-PDF was opened, so no output could be found."