@@ -41,8 +41,7 @@ def __init__(self):
4141 print ("Backend launched" )
4242
4343 # Setup locales
44- self .lm = self .locale_manager
45- self .lm .set_to_os_default ()
44+ self .locale_manager .set_to_os_default ()
4645
4746 # Register icons with AssetManager
4847 icon_dir = os .path .join (self .PATH , "assets" )
@@ -55,7 +54,7 @@ def __init__(self):
5554
5655 # Register plugin
5756 self .register (
58- plugin_name = self .lm .get ("plugin.name" ),
57+ plugin_name = self .locale_manager .get ("plugin.name" ),
5958 github_repo = "https://github.com/pniedzielski/StreamController-OBSLiveSplitOnePlugin" ,
6059 plugin_version = "1.2.0" ,
6160 app_version = "1.5.0-beta"
@@ -66,7 +65,7 @@ def __init__(self):
6665 plugin_base = self ,
6766 action_base = Split ,
6867 action_id_suffix = "Split" ,
69- action_name = self .lm .get ("actions.split.name" ),
68+ action_name = self .locale_manager .get ("actions.split.name" ),
7069 icon = self ._get_action_icon ("split" ),
7170 action_support = {
7271 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -80,7 +79,7 @@ def __init__(self):
8079 plugin_base = self ,
8180 action_base = Skip ,
8281 action_id_suffix = "Skip" ,
83- action_name = self .lm .get ("actions.skip.name" ),
82+ action_name = self .locale_manager .get ("actions.skip.name" ),
8483 icon = self ._get_action_icon ("skip" ),
8584 action_support = {
8685 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -94,7 +93,7 @@ def __init__(self):
9493 plugin_base = self ,
9594 action_base = Undo ,
9695 action_id_suffix = "Undo" ,
97- action_name = self .lm .get ("actions.undo.name" ),
96+ action_name = self .locale_manager .get ("actions.undo.name" ),
9897 icon = self ._get_action_icon ("undo" ),
9998 action_support = {
10099 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -108,7 +107,7 @@ def __init__(self):
108107 plugin_base = self ,
109108 action_base = NextComparison ,
110109 action_id_suffix = "NextComparison" ,
111- action_name = self .lm .get ("actions.next-comparison.name" ),
110+ action_name = self .locale_manager .get ("actions.next-comparison.name" ),
112111 icon = self ._get_action_icon ("next-comparison" ),
113112 action_support = {
114113 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -122,7 +121,7 @@ def __init__(self):
122121 plugin_base = self ,
123122 action_base = PrevComparison ,
124123 action_id_suffix = "PrevComparison" ,
125- action_name = self .lm .get ("actions.prev-comparison.name" ),
124+ action_name = self .locale_manager .get ("actions.prev-comparison.name" ),
126125 icon = self ._get_action_icon ("prev-comparison" ),
127126 action_support = {
128127 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -136,7 +135,7 @@ def __init__(self):
136135 plugin_base = self ,
137136 action_base = ToggleTimingMethod ,
138137 action_id_suffix = "ToggleTimingMethod" ,
139- action_name = self .lm .get ("actions.toggle-timing-method.name" ),
138+ action_name = self .locale_manager .get ("actions.toggle-timing-method.name" ),
140139 icon = self ._get_action_icon ("toggle-timing-method" ),
141140 action_support = {
142141 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -150,7 +149,7 @@ def __init__(self):
150149 plugin_base = self ,
151150 action_base = Reset ,
152151 action_id_suffix = "Reset" ,
153- action_name = self .lm .get ("actions.reset.name" ),
152+ action_name = self .locale_manager .get ("actions.reset.name" ),
154153 icon = self ._get_action_icon ("reset" ),
155154 action_support = {
156155 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -164,7 +163,7 @@ def __init__(self):
164163 plugin_base = self ,
165164 action_base = Pause ,
166165 action_id_suffix = "Pause" ,
167- action_name = self .lm .get ("actions.pause.name" ),
166+ action_name = self .locale_manager .get ("actions.pause.name" ),
168167 icon = self ._get_action_icon ("pause" ),
169168 action_support = {
170169 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -178,7 +177,7 @@ def __init__(self):
178177 plugin_base = self ,
179178 action_base = UndoAllPauses ,
180179 action_id_suffix = "UndoAllPauses" ,
181- action_name = self .lm .get ("actions.undo-all-pauses.name" ),
180+ action_name = self .locale_manager .get ("actions.undo-all-pauses.name" ),
182181 icon = self ._get_action_icon ("undo-all-pauses" ),
183182 action_support = {
184183 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -192,7 +191,7 @@ def __init__(self):
192191 plugin_base = self ,
193192 action_base = Interact ,
194193 action_id_suffix = "Interact" ,
195- action_name = self .lm .get ("actions.interact.name" ),
194+ action_name = self .locale_manager .get ("actions.interact.name" ),
196195 icon = self ._get_action_icon ("interact" ),
197196 action_support = {
198197 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -206,7 +205,7 @@ def __init__(self):
206205 plugin_base = self ,
207206 action_base = SaveSplits ,
208207 action_id_suffix = "SaveSplits" ,
209- action_name = self .lm .get ("actions.save-splits.name" ),
208+ action_name = self .locale_manager .get ("actions.save-splits.name" ),
210209 icon = self ._get_action_icon ("save-splits" ),
211210 action_support = {
212211 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -220,7 +219,7 @@ def __init__(self):
220219 plugin_base = self ,
221220 action_base = SetSplitsPath ,
222221 action_id_suffix = "SetSplitsPath" ,
223- action_name = self .lm .get ("actions.set-splits-path.name" ),
222+ action_name = self .locale_manager .get ("actions.set-splits-path.name" ),
224223 icon = self ._get_action_icon ("set-splits-path" ),
225224 action_support = {
226225 Input .Key : ActionInputSupport .SUPPORTED ,
@@ -234,7 +233,7 @@ def __init__(self):
234233 plugin_base = self ,
235234 action_base = SetLayoutPath ,
236235 action_id_suffix = "SetLayoutPath" ,
237- action_name = self .lm .get ("actions.set-layout-path.name" ),
236+ action_name = self .locale_manager .get ("actions.set-layout-path.name" ),
238237 icon = self ._get_action_icon ("set-layout-path" ),
239238 action_support = {
240239 Input .Key : ActionInputSupport .SUPPORTED ,
0 commit comments