              logger.debug("processing: ('%s', %s)", filename, command)
              if command.lower() == "project":
                  load_func = self._config.project.load
                  lbl = command
                  kwargs = dict(filename=filename)
              else:
                  load_func = self._config.tasks.load
                  lbl = f"{command} Task"
                  kwargs = dict(filename=filename, current_tab=False)
              self.recent_menu.add_command(
 
</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                 command=lambda kw=kwargs, fn=load_func: fn(**kw))
 </s> add                 command=lambda kw=kwargs, fn=load_func: fn(**kw))  # type:ignore </s> remove     @staticmethod
    def _loader_and_kwargs(btntype):
        if btntype == "save":
            loader = btntype
            kwargs = dict(save_as=False)
        elif btntype == "save_as":
            loader = "save"
            kwargs = dict(save_as=True)
        else:
            loader = btntype
            kwargs = {}
        logger.debug("btntype: %s, loader: %s, kwargs: %s", btntype, loader, kwargs)
        return loader, kwargs

    def _settings_btns(self):
 </s> add     def _settings_btns(self) -> None:
        """ Place the settings buttons """ </s> remove     def _project_btns(self):
 </s> add     @classmethod
    def _loader_and_kwargs(cls, btntype: str) -> T.Tuple[str, T.Dict[str, bool]]:
        """ Get the loader name and key word arguments for the given button type

        Parameters
        ----------
        btntype: str
            The button type to obtain the information for

        Returns
        -------
        loader: str
            The name of the loader to use for the given button type
        kwargs: dict[str, bool]
            The keyword arguments to use for the returned loader
        """
        if btntype == "save":
            loader = btntype
            kwargs = {"save_as": False}
        elif btntype == "save_as":
            loader = "save"
            kwargs = {"save_as": True}
        else:
            loader = btntype
            kwargs = {}
        logger.debug("btntype: %s, loader: %s, kwargs: %s", btntype, loader, kwargs)
        return loader, kwargs

    @classmethod
    def _set_help(cls, btntype: str) -> str:
        """ Set the helptext for option buttons

        Parameters
        ----------
        btntype: str
            The button type to set the help text for
        """
        logger.debug("Setting help")
        hlp = ""
        task = _("currently selected Task") if btntype[-1] == "2" else _("Project")
        if btntype.startswith("reload"):
            hlp = _("Reload {} from disk").format(task)
        if btntype == "new":
            hlp = _("Create a new {}...").format(task)
        if btntype.startswith("clear"):
            hlp = _("Reset {} to default").format(task)
        elif btntype.startswith("save") and "_" not in btntype:
            hlp = _("Save {}").format(task)
        elif btntype.startswith("save_as"):
            hlp = _("Save {} as...").format(task)
        elif btntype.startswith("load"):
            msg = task
            if msg.endswith("Task"):
                msg += _(" from a task or project file")
            hlp = _("Load {}...").format(msg)
        return hlp

    def _project_btns(self) -> None:
        """ Place the project buttons """ </s> remove                              command=lambda fn=cmd, kw=kwargs: fn(**kw))
 </s> add                              command=lambda fn=cmd, kw=kwargs: fn(**kw))  # type:ignore
                kwargs = {"filename": filename}
              logger.debug("processing: ('%s', %s)", filename, command)
              if command.lower() == "project":
                  load_func = self._config.project.load
                  lbl = command
                kwargs = {"filename": filename}
              else:
                  load_func = self._config.tasks.load
                  lbl = f"{command} Task"
                  kwargs = dict(filename=filename, current_tab=False)
              self.recent_menu.add_command(
keep keep keep keep replace keep keep keep keep keep
 locales: Add GUI menu translations 
lib/gui/menu.py