diff --git a/plugintranslations/translator.py b/plugintranslations/translator.py index d807ed5..9f0dca9 100644 --- a/plugintranslations/translator.py +++ b/plugintranslations/translator.py @@ -211,7 +211,7 @@ def find_prompts_in_all_files(self): filename = Path(file) if filename.suffix in FILE_EXTS: absolute_file_path = root/filename - jeedom_file_path = absolute_file_path.relative_to(self._plugin_root) + jeedom_file_path = absolute_file_path.relative_to(self.__plugin_root) jeedom_file_path = (f"plugins/{self.plugin_id}"/jeedom_file_path).as_posix() self.__logger.info(f" {jeedom_file_path}...") self.__files[jeedom_file_path] = SourceFile(absolute_file_path, self.__logger)