<div dir="ltr"><div>-1</div><div><br></div><div>Seeing, "Caution, do you really want to...," is kind of annoying because it's applying the "caution" to the user's intent BEFORE saying why.  </div><div><br></div><div>The old message applied the caution to the REASON, and THEN asked the user, "do you really want to...".<br></div><div><br></div><div>From that aspect, the old message is better.</div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 3, 2022 at 2:41 PM <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Christoph Thiede uploaded a new version of Monticello to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Monticello-ct.729.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/trunk/Monticello-ct.729.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Monticello-ct.729<br>
Author: ct<br>
Time: 17 September 2020, 7:04:53.385813 pm<br>
UUID: 5eea47cc-405e-7841-9544-0f57a9b92fa0<br>
Ancestors: Monticello-cmm.726<br>
<br>
Proposal: Enhance truncation of "newer versions avaiable" warning (and make it multilingual-ready)<br>
<br>
=============== Diff against Monticello-cmm.726 ===============<br>
<br>
Item was changed:<br>
  ----- Method: MCWorkingCopyBrowser>>checkForNewerVersions (in category 'actions') -----<br>
  checkForNewerVersions<br>
+       "Answer true if there are no newer versions preventing us from saving a version."<br>
+ <br>
        | newer |<br>
        newer := workingCopy possiblyNewerVersionsIn: self repository.<br>
+       <br>
+       newer ifEmpty: [^ true].<br>
+       <br>
+       ^ self confirm: ('CAUTION!! {1}:\{2}\Do you really want to save this version?' withCRs translated format: {<br>
+               newer size = 1<br>
+                       ifTrue: ['This version in the repository may be newer' translated]<br>
+                       ifFalse: ['These {1} versions in the repository may be newer' translated format: {newer size}].<br>
+               (newer size > 3<br>
+                       ifFalse: [newer]<br>
+                       ifTrue: [(newer first: 3) , {'...'} , {newer last}]) asCommaString withNoLineLongerThan: 150<br>
+       })!<br>
-       ^ newer isEmpty or: [<br>
-               self confirm: 'CAUTION!! These versions in the repository may be newer:', <br>
-                       String cr, ((newer asCommaString withNoLineLongerThan:  150) truncateWithElipsisTo: 5 * 149), String cr,<br>
-                       'Do you really want to save this version?'].!<br>
<br>
<br>
</blockquote></div>