https://linen.dev logo
Join DiscordCommunities
Powered by
# haxe-ui
  • i

    icy-zebra-52882

    02/10/2023, 9:26 AM
    it's a whole ball of mess that's hard to deal with
  • b

    bright-gpu-74537

    02/10/2023, 9:28 AM
    its a pretty shitting valid point though... how do you say, in french: * Candidate "Ian Harrigan" has been updated * Canddate "Fiona Harrigan" has been updated ?
  • i

    icy-zebra-52882

    02/10/2023, 9:28 AM
    if you've ever seen my rants on #502857487888809985 then you'd see that something like Polish has different plural rules for a word based on (singular; ends in 1 < x > 5 but not if it's a "teen" number; everything else)
  • b

    bright-gpu-74537

    02/10/2023, 9:28 AM
    does the gender of the... ... noun (?) "candidate" change?
  • f

    full-journalist-82607

    02/10/2023, 9:29 AM
    Yes that' why I think the haxeui system is good enough for basic apps, but cool to be able to hook some other systems. Because there aren't really any good i18 system ( I think). For example I did a swahili version and like 3 apples will be "applem", 5 apples will be "applet", 9 apples or more "applesss"
  • b

    bright-gpu-74537

    02/10/2023, 9:30 AM
    yeah, i used to speak arabic (kinda), and iirc, there there is "1", "2" and "more than 2" for pluraity
  • i

    icy-zebra-52882

    02/10/2023, 9:31 AM
    PO/POT format is pretty good for translation but you need a full GNU gettext implementation for haxe to do that
  • f

    full-journalist-82607

    02/10/2023, 9:31 AM
    Hmm you can change it , but I don't think it reallybothers it's in masculine . Specially if you leave the name in the quote
  • i

    icy-zebra-52882

    02/10/2023, 9:31 AM
    and AFAIK there is none yet, deepnight did one but it doesn't support pluralisation rules
  • b

    bright-gpu-74537

    02/10/2023, 9:32 AM
    ok, out of curiosity, how would it change?
  • b

    bright-gpu-74537

    02/10/2023, 9:32 AM
    let say:
  • i

    icy-zebra-52882

    02/10/2023, 9:32 AM
    wrt masculine/feminine or other word genders, some translations just leave it as a neuter and call it a day
  • b

    bright-gpu-74537

    02/10/2023, 9:33 AM
    * The candidate Ian Harrigan has been updated successfully * The candidate Fiona Harrigan has been updated successfully
  • f

    full-journalist-82607

    02/10/2023, 9:36 AM
    Hmm, in fact you would leave it masculine because it would be too complex and kind of weird ( you're not bout the person but the form, a person cannot be updated, so I think in this context having all masculine is better.) - Le candidat Ian Harrigan a été updaté avec succès - La candidate Fiona Harrigan a été updatée avec succès Notice the e in updatée lol It's more the name of the form thant the name of a person
  • b

    bright-gpu-74537

    02/10/2023, 9:38 AM
    good to know - although, actually, now that i think about it... there is no way the system could "know" that Fiona is female, well, i mean, i could grab the "gender" field, but that assuming its filled in correctly, and it feels like a massive over complication for something so small... ... could be pretty cool though tbh (from a user perspective)
  • b

    bright-gpu-74537

    02/10/2023, 9:39 AM
    OK, what about: * Ian Harrigan has been updated successfully * Fiona Harrigan has been updated successfully ?
  • i

    icy-zebra-52882

    02/10/2023, 9:39 AM
    I recently found Project Fluent, which aims to decouple language rules from program logic (as far as possible)
  • b

    bright-gpu-74537

    02/10/2023, 9:39 AM
    does that change significantly given that its no longer about "the candidate" ?
  • b

    bright-gpu-74537

    02/10/2023, 9:40 AM
    oh man, i do like that
  • b

    bright-gpu-74537

    02/10/2023, 9:41 AM
    stupidly complex though
  • i

    icy-zebra-52882

    02/10/2023, 9:41 AM
    you end up with resource text like this (seems to be focused on JS at the moment):
    Copy code
    ## Closing tabs
    
    tabs-close-button = Close
    tabs-close-tooltip = {$tabCount ->
        [one] Close {$tabCount} tab
       *[other] Close {$tabCount} tabs
    }
    tabs-close-warning =
        You are about to close {$tabCount} tabs.
        Are you sure you want to continue?
    
    ## Syncing
    
    -sync-brand-name = Firefox Account
    
    sync-dialog-title = {-sync-brand-name}
    sync-headline-title =
        {-sync-brand-name}: The best way to bring
        your data always with you
    sync-signedout-title =
        Connect with your {-sync-brand-name}
  • b

    bright-gpu-74537

    02/10/2023, 9:42 AM
    yeah, its defo a really nice "covers it all" system... even that demo on the front page is kinda "oh shit, yeah, it happens in english too"... i just wonder if its TOO complex
  • b

    bright-gpu-74537

    02/10/2023, 9:42 AM
    > ⁨Anne⁩ ⁨added ⁨2⁩ new photos⁩ to ⁨her stream⁩.
  • b

    bright-gpu-74537

    02/10/2023, 9:43 AM
    Copy code
    shared-photos =
        {$userName} {$photoCount ->
            [one] added a new photo
           *[other] added {$photoCount} new photos
        } to {$userGender ->
            [male] his stream
            [female] her stream
           *[other] their stream
        }.
  • i

    icy-zebra-52882

    02/10/2023, 9:43 AM
    the polish translation to the bottom really drives it home though
  • i

    icy-zebra-52882

    02/10/2023, 9:43 AM
    gender and case rules specific to polish don't leak out into program logic
  • f

    full-journalist-82607

    02/10/2023, 9:43 AM
    Doesn't change anything. I think it's more the word updated that makes it possible to have it all in masculine. Because you "feel" it's a form or not a person. Now if you say Fiona Harrigan has been added , here feminine would we kind of cool . But then our brains have been molded to bad apps and the internet so it isn't shocking in this case to have it in masculine
  • i

    icy-zebra-52882

    02/10/2023, 9:44 AM
    I hear the same thing from a polish person, they are used to having apps that can't/don't apply their language correctly
  • b

    bright-gpu-74537

    02/10/2023, 9:44 AM
    ok, so what would be the two forms of "Candidate X has been created successfully"? (which is an actual string in my app)
  • b

    bright-gpu-74537

    02/10/2023, 9:46 AM
    > For example, the Polish translation for tab takes a different form for counts of 2, 3, and 4 than it does for 5, 6, or 7
1...148514861487...1687Latest