DroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agoWelcome to the wonderful world of code obfuscationimgur.comexternal-linkmessage-square88fedilinkarrow-up1223arrow-down18file-text
arrow-up1215arrow-down1external-linkWelcome to the wonderful world of code obfuscationimgur.comDroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agomessage-square88fedilinkfile-text
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up19·1 year agoCan confirm this works completely as expected when the user’s system is set to lang=ES.
minus-squareSchmeckinger@feddit.delinkfedilinkarrow-up11·edit-21 year agoSimple save the users language setting in a variable, change it to english, check if the first letter is “s” and then change the language back.
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up1·1 year agotrue but that’s a precondition to some of the other examples as well
Can confirm this works completely as expected when the user’s system is set to lang=ES.
Simple save the users language setting in a variable, change it to english, check if the first letter is “s” and then change the language back.
Genius.
true but that’s a precondition to some of the other examples as well