https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    02/10/2023, 5:58 PM
    2, 3 or 6, less that 10, the rest
  • b

    bright-gpu-74537

    02/10/2023, 5:59 PM
    i dont think i can think like that
  • m

    miniature-summer-93860

    02/10/2023, 5:59 PM
    Oh nice! How did you like it? Very true, it is an agglutinative language, that's probably the biggest diffrence, when hearing it, along with the vowel harmony, and almost all of the vocab, is unique.
  • m

    miniature-summer-93860

    02/10/2023, 6:00 PM
    Yeah welsh is agglutinative too, that's cool you learned it!
  • b

    bright-gpu-74537

    02/10/2023, 6:00 PM
    wait, what? I didnt learn it... i learnt that its plurals are insane to my tiny brain 馃檪
  • m

    miniature-summer-93860

    02/10/2023, 6:00 PM
    Oh 馃槄
  • f

    flat-musician-80308

    02/10/2023, 6:00 PM
    Copy code
    count={
       itemCount = 0: Nie masz 偶adnych aktywnych projekt贸w
       itemCount = 1: Masz jeden aktywny projekt
       itemCount = 11: Masz %itemCount% aktywnych projekt贸w
       itemCount = 12: Masz %itemCount% aktywnych projekt贸w
       itemCount = 13: Masz %itemCount% aktywnych projekt贸w
       itemCount = 14: Masz %itemCount% aktywnych projekt贸w
       itemCount mod 10 = 0: Masz %itemCount% aktywnych projekt贸w
       itemCount mod 10 = 1: Masz %itemCount% aktywnych projekt贸w
       itemCount mod 10 <= 4: Masz %itemCount% aktywne projekty
       itemCount mod 10 > 5: Masz %itemCount% aktywnych projekt贸w
    }
  • b

    bright-gpu-74537

    02/10/2023, 6:00 PM
    鈽濓笍 oh... heres another fun one
  • f

    flat-musician-80308

    02/10/2023, 6:01 PM
    (assuming that once you trigger a case it breaks there)
  • b

    bright-gpu-74537

    02/10/2023, 6:01 PM
    i wasnt making an assumption to do that, but yeah, that does make sense... first match is "good"
  • b

    bright-gpu-74537

    02/10/2023, 6:04 PM
    as i said, at no point in my [tiny] brain, when i floated the question about locales in haxeui (or in general really), did i think i would end up with something like:
  • b

    big-angle-82801

    02/10/2023, 6:04 PM
    one of my favourite cities definitely, wish I could have spent more time there! The grammar as well seems completely different yh... haha I assume it being agglutinative is why
    projektjeid
    and
    projektjei
    are different even though the number is the same there 馃槄
  • b

    big-angle-82801

    02/10/2023, 6:05 PM
    maybe if you can have ranges with both a min and a max then you can reduce some of the cases for the expanded polish one
  • m

    miniature-summer-93860

    02/10/2023, 6:05 PM
    You're exactly right, and that's lovely to hear :>
  • b

    bright-gpu-74537

    02/10/2023, 6:05 PM
    example please! im not even going to try and refactor any of this... im just going to work off examples people give me
  • b

    bright-gpu-74537

    02/10/2023, 6:06 PM
    its clear it makes little sense to me with my "none, one and some" 馃槃
  • f

    flat-musician-80308

    02/10/2023, 6:06 PM
    probably like
    itemCount in 11...14: %itemCount% aktywnych projekt贸w
  • b

    bright-gpu-74537

    02/10/2023, 6:06 PM
    jfc
  • f

    flat-musician-80308

    02/10/2023, 6:06 PM
    (that's probably not valid syntax anywhere though)
  • b

    bright-gpu-74537

    02/10/2023, 6:06 PM
    none of this is valid syntax, just ideas for syntax 馃檪
  • f

    flat-musician-80308

    02/10/2023, 6:07 PM
    yeah but needs to be familiar right
  • b

    bright-gpu-74537

    02/10/2023, 6:07 PM
    11...14
    feels reasonable
  • b

    bright-gpu-74537

    02/10/2023, 6:08 PM
    the fact you have special cases for
    11...14
    ... ... ... does not 馃槃
  • f

    flat-musician-80308

    02/10/2023, 6:08 PM
    welcome to Polish
  • f

    flat-musician-80308

    02/10/2023, 6:08 PM
    馃槃
  • b

    big-angle-82801

    02/10/2023, 6:08 PM
    count={ itemCount = 0: Nie masz 偶adnych aktywnych projekt贸w itemCount = 1: Masz jeden aktywny projekt 11 <= itemCount <= 14: Masz %itemCount% aktywnych projekt贸w 1 < (itemCount mod 10) <= 4: Masz %itemCount% aktywne projekty _: Masz %itemCount% aktywnych projekt贸w }
  • b

    big-angle-82801

    02/10/2023, 6:09 PM
    something like that i think? maybe a bit complicated for syntax
  • b

    bright-gpu-74537

    02/10/2023, 6:09 PM
    hmmm, what about && and ||, i was already thinking about doing that, its clearer, right?
  • f

    flat-musician-80308

    02/10/2023, 6:10 PM
    itemCount mod 10 in 2...4
    ?
  • b

    bright-gpu-74537

    02/10/2023, 6:11 PM
    Copy code
    11 <= itemCount <= 14: Masz %itemCount% aktywnych projekt贸w
       1 < (itemCount mod 10) <= 4: Masz %itemCount% aktywne projekty
    i mean, what though? Just... what? I cant think at that speed
1...149915001501...1687Latest