You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added support for decisions and decision_categories files, fixed "l_english" not being appended correctly, fixed "_desc" keys not being treated like keyes
Copy file name to clipboardExpand all lines: python2/hoi4localisationadder.py
+39-15Lines changed: 39 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -10,21 +10,23 @@
10
10
### HoI 4 Localisation Adder by Yard1, originally for Equestria at War mod
11
11
### Written in Python 2.7
12
12
###
13
-
### Copyright (c) 2017 Antoni Baum (Yard1)
13
+
### Copyright (c) 2018 Antoni Baum (Yard1)
14
14
### Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
15
15
### The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
16
16
### THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
parser=argparse.ArgumentParser(description='Given an event, national_focusor ideas file, add missing localisation entries to a specified localisation file. Note: custom tooltips are not supported. In case of events, title, description and option names will be added (triggered titles and descriptions are supported). For national_focus and ideas, names and descriptions will be added.')
109
+
parser=argparse.ArgumentParser(description='Given an event, national_focus, decisions, decision_categories or ideas file, add missing localisation entries to a specified localisation file. Note: custom tooltips are not supported. In case of events, title, description and option names will be added (triggered titles and descriptions are supported). For national_focus and ideas, names and descriptions will be added. For decisions and decision_categories, names and category names will be added. WARNING: The script defaults to a decisions file if it cannot determine the type of file.')
84
110
parser.add_argument('input', metavar='input',
85
-
help='Event, national_focus or ideas file to parse')
111
+
help='Event, national_focus, decisions, decision_categories or ideas file to parse')
86
112
parser.add_argument( 'output', metavar='output',
87
113
help='Localisation file to write to (if empty/non-existing, a new English localisation file will be created)')
0 commit comments