New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#9013 Use Close in Clean working directory #9027
#9013 Use Close in Clean working directory #9027
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just there are unneeded translation items...
GitUI/Translation/English.xlf
Outdated
@@ -3050,6 +3046,10 @@ revision:</source> | |||
<source>Cleanup</source> | |||
<target /> | |||
</trans-unit> | |||
<trans-unit id="buttonClose.Text"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some way to avoid that this text (as well as the other using the new translated text), I do not recall how...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe remove the xx.Text="..." in FormCleanupRepository.Designer.cs and move it in the constructor of the form?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be OK, I believe there is some other trick too.
(This could maybe be fixed in a follow up, there are likely other similar strings.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in front of my computer, so you have to have a look at another form but to prevent the string to be translated, you should rename the button with the prefix looking link __no_translate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The prefix is _NO_TRANSLATE_
.
Look at control names with no translate in name.
|
Thanks, I changed names. |
There's no need for the Close or Cancel button.
|
@RussKie Are you sure ? According to #9013 (comment) the question looks not answered. Would you like I remove the button only in "Clean working directory" ? Or also in "Reset changes" and "Recover lost objects" ? |
I don't believe this dialog requires a Close button.
|
For a dialog like this I believe that there should be a close button, nicr for the user than using the upper right close. |
Other dialogs don't have "Close" button, and I can't see why this dialog needs it either. |
Thank you |
Thanks, I didn't know what to do with this PR since some people wanted to remove this button and some other don't wanted. |
I still want it removed ;)
|
Fixes #9013
Proposed changes
Screenshots
Before
After
Test methodology
Not needed
Test environment(s)
✒️ I contribute this code under The Developer Certificate of Origin.