Note that there are some explanatory texts on larger screens.

plurals
  1. USphtrivier
    primarykey
    data
    text
    plurals
    1. COYou mention "a single interface with getElement" ; did you mean "a single interface with getAttribute" ? Following your update : if I understand correctly, you want to shield attributeWithDefault from actually knowing how you get an attribute from an Element. I understand that, and another way to enforce this would be to add yet another level of indirection (instead of passing the Element, you pass another object that knows how to get the attribute from an element). However, I think, no matter what, at some point you'll need a class that *knows* how to get an attribute from an element.
      singulars
    2. COSo I tried this : setlocale(LC_MESSAGES, ""); char * l = setlocale(LC_MESSAGES, NULL); printf("Locale : %s\n", l); (After having fried a few of my neurons getting over the fact that to get the locale, you have to call, ahem, setlocale.) Under linux I get the proper locale, under windows (after cross-compiling with mingw-cross-env, neat package, go check it out), it just prints "(null)". I guess sometimes it's *really* time to go to bed.
      singulars
    3. COYes, I've seen the function mentionned in the multi-headed hydra that is "gl_locale_name" from the inners of gettext. The logic and the mapping has been done there also, I was secretely hoping I could just, you know, call a function and get the value since it has to be computed to translate any message. I guess my hopes are just too high. And it's time to go to bed.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload