<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Jakob,</p>
<p><br>
</p>
<p>there are also #asWords, #threeDigitName, or #<span>asPluralBasedOn: which seem to operate on a similar level. Maybe we should move them all into an extension category of another package (System? Multilingual-Languages?)? I also agree it's not internationalized
 yet, but it does not feel the right time for me to design an international solution for this at the moment (I once tried out Squeak 5.3 with German language once, and it was horrible).</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="x__rp_T4" id="x_Item.MessagePartBody">
<div class="x__rp_U4 x_ms-font-weight-regular x_ms-font-color-neutralDark x_rpHighlightAllClass x_rpHighlightBodyClass" id="x_Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="x_divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="x_Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont">
<div><font size="3" color="black"><span style="font-size:12pt"><a href="http://www.hpi.de/" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font size="2"><span id="LPlnk909538"><font color="#757B80"></font></span></font></a></span></font></div>
</font></div>
</div>
</font></div>
</div>
</div>
</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Jakob Reschke <forums.jakob@resfarm.de><br>
<b>Gesendet:</b> Freitag, 25. September 2020 18:36:57<br>
<b>An:</b> squeak-dev@lists.squeakfoundation.org<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: Kernel-ct.1342.mcz</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I think that such things should not really belong in Kernel. Is there<br>
another suitable package that can provide this as an extension method?<br>
<br>
Also note that this is not internationalized yet (English only), but<br>
judging by the selectors it might well be used to produce localized<br>
output in the future. Maybe that could influence the selection of a<br>
package.<br>
<br>
Am Fr., 25. Sept. 2020 um 18:32 Uhr schrieb <commits@source.squeak.org>:<br>
><br>
> A new version of Kernel was added to project The Inbox:<br>
> <a href="http://source.squeak.org/inbox/Kernel-ct.1342.mcz">http://source.squeak.org/inbox/Kernel-ct.1342.mcz</a><br>
><br>
> ==================== Summary ====================<br>
><br>
> Name: Kernel-ct.1342<br>
> Author: ct<br>
> Time: 25 September 2020, 6:32:44.665274 pm<br>
> UUID: 037ef8ee-228f-914b-8d1e-b05cac84772b<br>
> Ancestors: Kernel-eem.1341<br>
><br>
> Add ordinal suffix logic to Integer<br>
><br>
> Example:<br>
>         (1 to: 30) collect: [:ea | ea withOrdinalSuffix]<br>
><br>
> =============== Diff against Kernel-eem.1341 ===============<br>
><br>
> Item was added:<br>
> + ----- Method: Integer>>ordinalSuffix (in category 'printing') -----<br>
> + ordinalSuffix<br>
> +       "Answer a string containing the ordinal suffix of the receiver, e.g. 'th' for 4, or 'rd' for 23."<br>
> +<br>
> +       self \\ 100 // 10 = 1 ifFalse: [<br>
> +               self \\ 10<br>
> +                       caseOf: {<br>
> +                               [1] -> [^ 'st'].<br>
> +                               [2] -> [^ 'nd'].<br>
> +                               [3] -> [^ 'rd'] }<br>
> +                       otherwise: []].<br>
> +       ^ 'th'!<br>
><br>
> Item was added:<br>
> + ----- Method: Integer>>printWithOrdinalSuffixOn: (in category 'printing') -----<br>
> + printWithOrdinalSuffixOn: aStream<br>
> +<br>
> +       aStream<br>
> +               print: self;<br>
> +               nextPutAll: self ordinalSuffix.!<br>
><br>
> Item was added:<br>
> + ----- Method: Integer>>withOrdinalSuffix (in category 'printing') -----<br>
> + withOrdinalSuffix<br>
> +<br>
> +       ^ String streamContents: [:stream |<br>
> +               self printWithOrdinalSuffixOn: stream]!<br>
><br>
><br>
<br>
</div>
</span></font>
</body>
</html>