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

    bright-gpu-74537

    02/11/2023, 11:40 AM
    sweet... not bad for two hours... 🥳
  • f

    flat-musician-80308

    02/11/2023, 11:40 AM
    the alt ones are a bit better than the first one but they just got the additional options
  • f

    flat-musician-80308

    02/11/2023, 11:41 AM
    the ranges look good tho
  • b

    bright-gpu-74537

    02/11/2023, 11:41 AM
    OK, but when you say "better" you just mean the resulting string is better right?
  • b

    bright-gpu-74537

    02/11/2023, 11:41 AM
    ie, the rules are evaluating correctly, but the rules you gave me arent as good as the others?
  • f

    flat-musician-80308

    02/11/2023, 11:42 AM
    yes but no (I gave you the alt ones ;> )
  • b

    bright-gpu-74537

    02/11/2023, 11:43 AM
    right, gotcha... well, i just mean, its all working, but the one set of rules is better than another
  • f

    flat-musician-80308

    02/11/2023, 11:43 AM
    yep
  • b

    bright-gpu-74537

    02/11/2023, 11:43 AM
    its actually a really nice format...
  • b

    bright-gpu-74537

    02/11/2023, 11:44 AM
    can be simple, but super complex... there is room to totally misuse it too:
    myLabel.styleName = localeStringResult
    😄
  • b

    bright-gpu-74537

    02/11/2023, 11:45 AM
    id be interested to know if the Welsh one is right also, i think it is, but its hard to know for sure when i am just "following the rules" in my head a checking chars rather than actually reading it
  • o

    orange-van-60470

    02/11/2023, 1:31 PM
    welsh is really cool once freelanced at Tinopolis ( welsh tele ) it was so strange talking to someone in English and then they would turn round and they would be talking Welsh to another colleague. It is very easy in rest of UK to forget that there are a lot of people speaking Welsh. Best experience was one office where I was working had door open to the studio they were filming lunch tele, so I was coding flash with live welsh singer ( opera? ) singing and tv cameras filming them in the large studio, it was very surreal experience the door open and seeing it all from my chair/computer.
  • o

    orange-van-60470

    02/11/2023, 1:32 PM
    they had a red light so you knew when to be quiet
  • o

    orange-van-60470

    02/11/2023, 1:33 PM
    enjoyed my time in wales but the town was quite deprived part of uk by sea
  • c

    clever-yak-82528

    02/11/2023, 2:57 PM
    seems to work fine
  • c

    clever-yak-82528

    02/11/2023, 2:58 PM
    if you delete the number and put text there, it breaks and won't start working again, and then trying to change the text will freeze the ui
  • f

    full-journalist-82607

    02/11/2023, 3:42 PM
    Seems nice, could be interesting to have now an example with numbers and gender ( or counters for languages that use them)
  • f

    full-journalist-82607

    02/11/2023, 3:49 PM
    I like that you can do this for example and then use floats
    Copy code
    count=Vous {
        itemCount=0: avez aucun projet
        itemCount=1: avez un projet
        itemCount<2: avez %itemCount% projet
        itemCount>2: avez %itemCount% projets
     }
  • m

    miniature-summer-93860

    02/11/2023, 4:00 PM
    I pressed backspace and the entire screen turned white on mobile
  • m

    miniature-summer-93860

    02/11/2023, 4:02 PM
    It might be an issue with the browser though I'll check later on computer
  • b

    bright-gpu-74537

    02/11/2023, 4:15 PM
    i think that is the old link, was just a ui isssue
  • b

    bright-gpu-74537

    02/11/2023, 4:15 PM
    http://haxeui.org/builder/?f3482e29
  • b

    bright-gpu-74537

    02/11/2023, 4:16 PM
    yeah, i think there are some silly UI things, i threw the test app together in 10 mins - http://haxeui.org/builder/?f3482e29 - that link might be better
  • m

    miniature-summer-93860

    02/11/2023, 4:36 PM
    Yeah that works thanks
  • c

    clever-yak-82528

    02/11/2023, 11:48 PM
    that seems a little more stable, but putting text in it still breaks
  • c

    clever-yak-82528

    02/11/2023, 11:48 PM
    by the way, might i suggest hardcoding the variables that you can use?
  • c

    clever-yak-82528

    02/11/2023, 11:49 PM
    there are generally only a limited number of things that a language will need in order to determine which number to use - you can allow access to those and then not require reflection
  • i

    icy-zebra-52882

    02/11/2023, 11:50 PM
    if you really want to enter the hydra's nest of plural rules: https://www.unicode.org/cldr/cldr-aux/charts/30/supplemental/language_plural_rules.html
  • i

    icy-zebra-52882

    02/11/2023, 11:53 PM
    personally I think this kind of plural rule thing should be a haxe library that haxeUI can hook into if i18n is required (maybe an
    #ifdef my_i18n_lib
    or something?) because it's a huge task by itself
  • i

    icy-zebra-52882

    02/11/2023, 11:58 PM
    the current example where you do
    itemCount=0: string here
    works for langs with simple rules but more complex rules get more verbose:
    racePosition%10=1 && racePosition%100!=11: 1st
1...150215031504...1687Latest