mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 07:47:14 +03:00
Stringified plugin_dir for len check
This commit is contained in:
parent
965493ffed
commit
281f66c7c1
3
l10n.py
3
l10n.py
@ -159,7 +159,8 @@ class _Translations:
|
||||
:return: The translated string
|
||||
"""
|
||||
if context:
|
||||
context = context[len(config.plugin_dir)+1:].split(os.sep)[0]
|
||||
# TODO: There is probably a better way to go about this now.
|
||||
context = context[len(str(config.plugin_dir))+1:].split(os.sep)[0]
|
||||
if self.translations[None] and context not in self.translations:
|
||||
logger.debug(f'No translations for {context!r}')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user