From e989b869ecf97766d5bd5862055b3da410a588bb Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Mon, 5 Aug 2024 09:28:18 -0500 Subject: [PATCH] Files: Improve text of several strings for translation - Remove odd capitalization. - Don't translate "Git commit" because it makes little sense in languages other than English. --- spyder/plugins/explorer/widgets/explorer.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/spyder/plugins/explorer/widgets/explorer.py b/spyder/plugins/explorer/widgets/explorer.py index 05ff00649ad..da5cac5c018 100644 --- a/spyder/plugins/explorer/widgets/explorer.py +++ b/spyder/plugins/explorer/widgets/explorer.py @@ -406,7 +406,7 @@ def setup(self): new_package_action = self.create_action( DirViewActions.NewPackage, - text=_("Python Package..."), + text=_("Python package..."), icon=self.create_icon('package_new'), triggered=self.new_package, ) @@ -473,14 +473,14 @@ def setup(self): self.copy_absolute_path_action = self.create_action( DirViewActions.CopyAbsolutePath, - text=_("Copy Absolute Path"), + text=_("Copy absolute path"), triggered=self.copy_absolute_path, register_shortcut=True, ) self.copy_relative_path_action = self.create_action( DirViewActions.CopyRelativePath, - text=_("Copy Relative Path"), + text=_("Copy relative path"), triggered=self.copy_relative_path, register_shortcut=True ) @@ -489,7 +489,7 @@ def setup(self): if sys.platform == 'darwin': show_in_finder_text = _("Show in Finder") else: - show_in_finder_text = _("Show in Folder") + show_in_finder_text = _("Show in folder") show_in_system_explorer_action = self.create_action( DirViewActions.ShowInSystemExplorer, @@ -500,13 +500,16 @@ def setup(self): # Version control actions self.vcs_commit_action = self.create_action( DirViewActions.VersionControlCommit, - text=_("Commit"), + # Don't translate this text because it makes little sense in + # languages other than English. + # Fixes spyder-ide/spyder#21959 + text="Git commit", icon=self.create_icon('vcs_commit'), triggered=lambda: self.vcs_command('commit'), ) self.vcs_log_action = self.create_action( DirViewActions.VersionControlBrowse, - text=_("Browse repository"), + text=_("Browse Git repository"), icon=self.create_icon('vcs_browse'), triggered=lambda: self.vcs_command('browse'), )