From 673c4e69a425f00d7f434e3cfc18ed9088162112 Mon Sep 17 00:00:00 2001 From: brybalicious Date: Thu, 8 Oct 2020 00:31:56 +0200 Subject: [PATCH 1/3] Minor UI spelling errors --- multi_user/preferences.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/multi_user/preferences.py b/multi_user/preferences.py index 945fee1..5009c46 100644 --- a/multi_user/preferences.py +++ b/multi_user/preferences.py @@ -41,7 +41,7 @@ def randomColor(): def random_string_digits(stringLength=6): - """Generate a random string of letters and digits """ + """Generate a random string of letters and digits""" lettersAndDigits = string.ascii_letters + string.digits return ''.join(random.choices(lettersAndDigits, k=stringLength)) @@ -68,7 +68,7 @@ def update_port(self, context): if self.ipc_port < max_port and \ self['ipc_port'] >= self.port: logging.error( - "IPC Port in conflic with the port, assigning a random value") + "IPC Port in conflict with the port, assigning a random value") self['ipc_port'] = random.randrange(self.port+4, 10000) @@ -169,7 +169,7 @@ class SessionPrefs(bpy.types.AddonPreferences): ) ipc_port: bpy.props.IntProperty( name="ipc_port", - description='internal ttl port(only usefull for multiple local instances)', + description='internal ttl port(only useful for multiple local instances)', default=random.randrange(5570, 70000), update=update_port, ) @@ -215,7 +215,7 @@ class SessionPrefs(bpy.types.AddonPreferences): name="Category", description="Preferences Category", items=[ - ('CONFIG', "Configuration", "Configuration about this add-on"), + ('CONFIG', "Configuration", "Configuration of this add-on"), ('UPDATE', "Update", "Update this add-on"), ], default='CONFIG' @@ -334,7 +334,7 @@ class SessionPrefs(bpy.types.AddonPreferences): # USER INFORMATIONS box = grid.box() box.prop( - self, "conf_session_identity_expanded", text="User informations", + self, "conf_session_identity_expanded", text="User information", icon=get_expanded_icon(self.conf_session_identity_expanded), emboss=False) if self.conf_session_identity_expanded: @@ -344,7 +344,7 @@ class SessionPrefs(bpy.types.AddonPreferences): # NETWORK SETTINGS box = grid.box() box.prop( - self, "conf_session_net_expanded", text="Netorking", + self, "conf_session_net_expanded", text="Networking", icon=get_expanded_icon(self.conf_session_net_expanded), emboss=False) From e967b35c38e8c03bbf2aa9bd2323c9d30d20a970 Mon Sep 17 00:00:00 2001 From: brybalicious Date: Thu, 8 Oct 2020 21:58:30 +0200 Subject: [PATCH 2/3] Revert "Minor UI spelling errors" This reverts commit 673c4e69a425f00d7f434e3cfc18ed9088162112. --- multi_user/preferences.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/multi_user/preferences.py b/multi_user/preferences.py index 5009c46..945fee1 100644 --- a/multi_user/preferences.py +++ b/multi_user/preferences.py @@ -41,7 +41,7 @@ def randomColor(): def random_string_digits(stringLength=6): - """Generate a random string of letters and digits""" + """Generate a random string of letters and digits """ lettersAndDigits = string.ascii_letters + string.digits return ''.join(random.choices(lettersAndDigits, k=stringLength)) @@ -68,7 +68,7 @@ def update_port(self, context): if self.ipc_port < max_port and \ self['ipc_port'] >= self.port: logging.error( - "IPC Port in conflict with the port, assigning a random value") + "IPC Port in conflic with the port, assigning a random value") self['ipc_port'] = random.randrange(self.port+4, 10000) @@ -169,7 +169,7 @@ class SessionPrefs(bpy.types.AddonPreferences): ) ipc_port: bpy.props.IntProperty( name="ipc_port", - description='internal ttl port(only useful for multiple local instances)', + description='internal ttl port(only usefull for multiple local instances)', default=random.randrange(5570, 70000), update=update_port, ) @@ -215,7 +215,7 @@ class SessionPrefs(bpy.types.AddonPreferences): name="Category", description="Preferences Category", items=[ - ('CONFIG', "Configuration", "Configuration of this add-on"), + ('CONFIG', "Configuration", "Configuration about this add-on"), ('UPDATE', "Update", "Update this add-on"), ], default='CONFIG' @@ -334,7 +334,7 @@ class SessionPrefs(bpy.types.AddonPreferences): # USER INFORMATIONS box = grid.box() box.prop( - self, "conf_session_identity_expanded", text="User information", + self, "conf_session_identity_expanded", text="User informations", icon=get_expanded_icon(self.conf_session_identity_expanded), emboss=False) if self.conf_session_identity_expanded: @@ -344,7 +344,7 @@ class SessionPrefs(bpy.types.AddonPreferences): # NETWORK SETTINGS box = grid.box() box.prop( - self, "conf_session_net_expanded", text="Networking", + self, "conf_session_net_expanded", text="Netorking", icon=get_expanded_icon(self.conf_session_net_expanded), emboss=False) From 2f677c399ead867d10948d0bfcdc2bed2c7d7a29 Mon Sep 17 00:00:00 2001 From: brybalicious Date: Thu, 8 Oct 2020 22:52:24 +0200 Subject: [PATCH 3/3] UI spelling fixes to preferences.py and ui.py --- multi_user/preferences.py | 12 ++++++------ multi_user/ui.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/multi_user/preferences.py b/multi_user/preferences.py index 945fee1..5009c46 100644 --- a/multi_user/preferences.py +++ b/multi_user/preferences.py @@ -41,7 +41,7 @@ def randomColor(): def random_string_digits(stringLength=6): - """Generate a random string of letters and digits """ + """Generate a random string of letters and digits""" lettersAndDigits = string.ascii_letters + string.digits return ''.join(random.choices(lettersAndDigits, k=stringLength)) @@ -68,7 +68,7 @@ def update_port(self, context): if self.ipc_port < max_port and \ self['ipc_port'] >= self.port: logging.error( - "IPC Port in conflic with the port, assigning a random value") + "IPC Port in conflict with the port, assigning a random value") self['ipc_port'] = random.randrange(self.port+4, 10000) @@ -169,7 +169,7 @@ class SessionPrefs(bpy.types.AddonPreferences): ) ipc_port: bpy.props.IntProperty( name="ipc_port", - description='internal ttl port(only usefull for multiple local instances)', + description='internal ttl port(only useful for multiple local instances)', default=random.randrange(5570, 70000), update=update_port, ) @@ -215,7 +215,7 @@ class SessionPrefs(bpy.types.AddonPreferences): name="Category", description="Preferences Category", items=[ - ('CONFIG', "Configuration", "Configuration about this add-on"), + ('CONFIG', "Configuration", "Configuration of this add-on"), ('UPDATE', "Update", "Update this add-on"), ], default='CONFIG' @@ -334,7 +334,7 @@ class SessionPrefs(bpy.types.AddonPreferences): # USER INFORMATIONS box = grid.box() box.prop( - self, "conf_session_identity_expanded", text="User informations", + self, "conf_session_identity_expanded", text="User information", icon=get_expanded_icon(self.conf_session_identity_expanded), emboss=False) if self.conf_session_identity_expanded: @@ -344,7 +344,7 @@ class SessionPrefs(bpy.types.AddonPreferences): # NETWORK SETTINGS box = grid.box() box.prop( - self, "conf_session_net_expanded", text="Netorking", + self, "conf_session_net_expanded", text="Networking", icon=get_expanded_icon(self.conf_session_net_expanded), emboss=False) diff --git a/multi_user/ui.py b/multi_user/ui.py index 342f245..776a6c3 100644 --- a/multi_user/ui.py +++ b/multi_user/ui.py @@ -67,7 +67,7 @@ def get_state_str(state): elif state == STATE_SYNCING: state_str = 'FETCHING' elif state == STATE_AUTH: - state_str = 'AUTHENTIFICATION' + state_str = 'AUTHENTICATION' elif state == STATE_CONFIG: state_str = 'CONFIGURATION' elif state == STATE_ACTIVE: @@ -140,7 +140,7 @@ class SESSION_PT_settings(bpy.types.Panel): if current_state in [STATE_ACTIVE] and runtime_settings.is_host: info_msg = f"LAN: {runtime_settings.internet_ip}" if current_state == STATE_LOBBY: - info_msg = "Waiting the session to start." + info_msg = "Waiting for the session to start." if info_msg: info_box = row.box()