DroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agoWelcome to the wonderful world of code obfuscationimgur.comimagemessage-square92fedilinkarrow-up1235arrow-down111file-text
arrow-up1224arrow-down1imageWelcome to the wonderful world of code obfuscationimgur.comDroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agomessage-square92fedilinkfile-text
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up21·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