Skip to content

Commit

Permalink
1.Modified several instances of text without localization processing
Browse files Browse the repository at this point in the history
2.Improved the translation template
3.Enhanced the Simplified Chinese translation
  • Loading branch information
jeremisty99 authored and wkentaro committed Jun 13, 2024
1 parent 9085123 commit 4329343
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 339 deletions.
18 changes: 9 additions & 9 deletions labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,19 +288,19 @@ def __init__(
saveAuto.setChecked(self._config["auto_save"])

saveWithImageData = action(
text="Save With Image Data",
text=self.tr("Save With Image Data"),
slot=self.enableSaveImageWithData,
tip="Save image data in label file",
tip=self.tr("Save image data in label file"),
checkable=True,
checked=self._config["store_data"],
)

close = action(
"&Close",
self.tr("&Close"),
self.closeFile,
shortcuts["close"],
"close",
"Close current file",
self.tr("Close current file"),
)

toggle_keep_prev_mode = action(
Expand Down Expand Up @@ -441,11 +441,11 @@ def __init__(
enabled=False,
)
removePoint = action(
text="Remove Selected Point",
text=self.tr("Remove Selected Point"),
slot=self.removeSelectedPoint,
shortcut=shortcuts["remove_selected_point"],
icon="edit",
tip="Remove selected point from polygon",
tip=self.tr("Remove selected point from polygon"),
enabled=False,
)

Expand Down Expand Up @@ -492,7 +492,7 @@ def __init__(

zoom = QtWidgets.QWidgetAction(self)
zoomBoxLayout = QtWidgets.QVBoxLayout()
zoomLabel = QtWidgets.QLabel("Zoom")
zoomLabel = QtWidgets.QLabel(self.tr("Zoom"))
zoomLabel.setAlignment(Qt.AlignCenter)
zoomBoxLayout.addWidget(zoomLabel)
zoomBoxLayout.addWidget(self.zoomWidget)
Expand Down Expand Up @@ -564,11 +564,11 @@ def __init__(
enabled=False,
)
brightnessContrast = action(
"&Brightness Contrast",
self.tr("&Brightness Contrast"),
self.brightnessContrast,
None,
"color",
"Adjust brightness and contrast",
self.tr("Adjust brightness and contrast"),
enabled=False,
)
# Group zoom controls into a list for easier toggling.
Expand Down
Loading

0 comments on commit 4329343

Please sign in to comment.