                  lbl = f"{command} Task"
                  kwargs = dict(filename=filename, current_tab=False)
              self.recent_menu.add_command(
                  label=f"{filename} ({lbl.title()})",
                  command=lambda kw=kwargs, fn=load_func: fn(**kw))
          if removed_files:
              for recent_item in removed_files:
                  logger.debug("Removing from recent files: `%s`", recent_item[0])
                  recent_files.remove(recent_item)
              serializer.save(menu_file, recent_files)
 
</s> remove                 load_func = self._config.tasks.load
                lbl = f"{command} Task"
                kwargs = dict(filename=filename, current_tab=False)
 </s> add                 load_func = self._config.tasks.load  # type:ignore
                lbl = _("{} Task").format(command)
                kwargs = {"filename": filename, "current_tab": False} </s> remove                 kwargs = dict(filename=filename)
 </s> add                 kwargs = {"filename": filename} </s> remove             label="Clear recent files",
 </s> add             label=_("Clear recent files"), </s> remove                 self.clear_recent_files(serializer, menu_file)
 </s> add                 self._clear_recent_files(serializer, menu_file) </s> remove                              command=lambda fn=cmd, kw=kwargs: fn(**kw))
 </s> add                              command=lambda fn=cmd, kw=kwargs: fn(**kw))  # type:ignore
                command=lambda kw=kwargs, fn=load_func: fn(**kw))  # type:ignore
                  lbl = f"{command} Task"
                  kwargs = dict(filename=filename, current_tab=False)
              self.recent_menu.add_command(
                  label=f"{filename} ({lbl.title()})",
                command=lambda kw=kwargs, fn=load_func: fn(**kw))  # type:ignore
          if removed_files:
              for recent_item in removed_files:
                  logger.debug("Removing from recent files: `%s`", recent_item[0])
                  recent_files.remove(recent_item)
              serializer.save(menu_file, recent_files)
keep keep keep keep replace keep keep keep keep keep
 locales: Add GUI menu translations 
lib/gui/menu.py