Skip to content

Commit

Permalink
Merge pull request #22320 from ccordoba12/issue-21959
Browse files Browse the repository at this point in the history
PR: Improve text of several strings for translation (Files/Projects)
  • Loading branch information
ccordoba12 authored Aug 5, 2024
2 parents 11c7786 + e989b86 commit 02240ec
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions spyder/plugins/explorer/widgets/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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
)
Expand All @@ -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,
Expand All @@ -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'),
)
Expand Down

0 comments on commit 02240ec

Please sign in to comment.