They have roman script on their keyboards. They type with the same language we do. the comments are usually whats in a different language. There have been attempts to make programming languages with different alphabets but turns out it makes very little sense to actually use 99.9% of the time.
Well, we have a business accountant software language in post-soviet countries. Because it's so specific and convoluted how taxes work (or should I say may work depending on context and registration) here that we have kinda own engine. Imagine VBA in Excel+Access, it's generally solving the same problem. Since it was developed for local market it has Cyrillic alphabet and keywords are Slavic. It's called 1C and afaik it's both bad+painful to work with and a top market tool in several countries. Like js or legacy php.
In other countries (or I should say "some other", because I do not know how it works everywhere, lol), their regular characters do not require any additional input. For Swedish, å ä ö (our three extra letters, otherwise our alphabet is identical to English) are for example just three regular keys on a Swedish keyboard, and do not require some sort of input combination.
The reason English and the Latin alphabet is used is because English is currently the Lingua Franca.
Everyone here’s joking but now I’m curious: why isn’t there a compiler flag to set the language that will swap out keywords to localized variants? It seems silly that someone that speaks French can’t swap out if/for/char/etc to something that makes more sense to them.
Because there's a risk of keywords clashing with identifiers (i.e. function/variable names etc.). That, and portability.
Imagine handing your source code to a friend and your program fails to compile on their machine. Or, worse, it compiles but behaves differently when run.
Compiler flags (and a project file or Makefile or something that you ship with your source code) can solve this to some degree, but in general features like these are considered a net negative.
Just look at Excel. As someone else pointed out in a sibling comment, it has the feature you want. Yet, everyone hates it. Like, why does it say this function doesn't exist? Oh, it wants me to translate the function name to my native language in my head...
Excel is also awful for even more reasons, for example if I open a csv file that contains fields that look like dates it coerces them all into the format defined by the system date format (which is awkward to change on windows) and then saves it like that
At least in C and it's ilk, you could build out an abomination of a translation header file to have translated keywords. The real ones would still work too of course.
Preprocessor macros effictively just act as a find/replace just before actually compiling, so it would functionally become a bilingual C language in the underlying source file.
And this is so annoying when I look up some functionality in English and then need to translate it to German again because I can't just copy paste it because I need to share the files with my coworkers that have their excel in German. They could've at least kept the English ones active regardless of the language you're using.
And people are absolutely suffering because of it. Stuff like this should never be localised. You can translate the documentation and the tool tips but the functions themselves should stay completely consistent
This further convinces me that it's a legacy mistake for source code to just be raw text. If it were saved to some binary format, the representation for "function" could be displayed in whatever way you want on your machine, and a totally different way on a friend's machine. Let the file contain only the language semantics (no formatting) and let each developer format it however they want.
Fun fact: I was working at a UK college with a significant exchange programme with Spain (mostly Bilbao). I taught myself C from a book in spanish, despite not being able to read or write the language.
lol yeah Latino is real but "Latin-io" would've been perfect. that's the kind of naming decision that would haunt the devs forever once someone pointed it out
when I was a kid I had a version of LOGO for MSX which was translated and yeah, commands where translated. For instance FOR would be PARA, END would be FIN, REPEAT would be REPETIR and so on... It's the only real language (no pseudocode) I ever knew that had keywords translated like that
110
u/myhv 20d ago
(import) donde está la biblioteca?
7
u/laplongejr 20d ago
I think it's a long time since I did laugh that loud at my job, very high character-per-laugh efficiency here!
563
u/MinecraftPlayer799 20d ago •
Si mas mas
187
u/srfreak 20d ago
I'm gonna
breakthe joke...There is one called Latino.
79
u/mackaber 20d ago
In case you're wondering... https://en.wikipedia.org/wiki/Non-English-based_programming_languages
36
u/no7rix 20d ago
Conio.h 😂
18
u/migarma 20d ago
Ñ++
18
u/Percolator2020 20d ago
Spanish Excel is very real and it will hurt you:
=SI(Y(ESNUMERO(A1);A1>0);REDONDEAR(RAIZ(A1)+PROMEDIO(B1:B10)+MAX(C1:C10)-MIN(D1:D10)+SUMA(E1:E10)/CONTAR(E1:E10);2);SI(ESBLANCO(A1);"SIN DATOS";"ERROR"))
34
u/Individual_Might5172 20d ago
15
u/LEPT0N 20d ago
Everyone here’s joking but now I’m curious: why isn’t there a compiler flag to set the language that will swap out keywords to localized variants? It seems silly that someone that speaks French can’t swap out if/for/char/etc to something that makes more sense to them.
11
u/stupled 20d ago
Turbo B by Cesar Becerra. No one uses it. He is (was?) basically a technical book writer
9
u/ZeroSobel 20d ago
You have to be a Señor Engineer to use them
8
u/Vanadium_Milk 20d ago
I made an entire troll language last year based on this joke lol.
https://github.com/Vanadium-Milk/Reborujado
7
u/Bot1K 20d ago
Chavoscript
6
u/Alexis_0hanian 20d ago
SiQL
15
u/Careful-Assistant481 20d ago
Hola World(); , lol
4
u/Wise_Swordfish4865 20d ago
And when you're vibe coding it answers "pues vale".
3
u/kewlkaiser 20d ago
3
u/ReindeerCreepy2883 20d ago
Pasqual
3
u/TabbyOverlord 20d ago
Fun fact: I was working at a UK college with a significant exchange programme with Spain (mostly Bilbao). I taught myself C from a book in spanish, despite not being able to read or write the language.
3
u/MasterGeekMX 20d ago
Unironicall there is one:
https://www.lenguajelatino.org/
2
u/NarumiRM 20d ago
MessiScriptInterpreter... And it's exactly what you could expect with that name
https://github.com/Erawaa/MessiScriptInterpreter
2
u/JSS-Studios 19d ago
#incluir <aparroyo>
usando espacionombres std;
int principal()
{
cafuera << "¡Hola Mondo!";
devolver 0;
}
2
u/reads_lily83 20d ago
lol yeah Latino is real but "Latin-io" would've been perfect. that's the kind of naming decision that would haunt the devs forever once someone pointed it out
2
u/gojGAMES 20d ago
A note, yes in Spanish is sí, with the little accent marker. Si, on the other hand, means if, which feels fitting
2
u/SuitableDragonfly 20d ago
Si++ but you'll wish it was no++ when you can't find the memory leak.
1
u/Dhruv_Malaviya 20d ago
Bro said sí and added one more 💀
1
u/danielgd 20d ago
There were spanish translations of Logo.
1
u/JoaoEB 20d ago
PeopleNet Meta4 lets you mix Spanish and English keywords.
You can have code like this:
SE a = b ENTONCES
ELSE
END
1
u/kbarney345 20d ago
/r/lovethismug
1
u/spekt50 20d ago
Reddit's auto-translate really makes this a goofy ass thread.
1
u/Bull_6969696969 20d ago
Lo Siento Wilson
1
u/Feisty-Cloud725 20d ago
1
u/saraseitor 20d ago
when I was a kid I had a version of LOGO for MSX which was translated and yeah, commands where translated. For instance FOR would be PARA, END would be FIN, REPEAT would be REPETIR and so on... It's the only real language (no pseudocode) I ever knew that had keywords translated like that
1
u/VisiblePlatform6704 20d ago
C+ Turbo+
1
u/with_explosions 20d ago
jajajaja
1
u/Lah_A 20d ago
Good one😂😂😭😭
1
u/Ilovearbust 20d ago
César
1
u/AnDanDan 20d ago
Im reminded of the 'THEY HAVE ENGLISH CODING' meme about coding in Hebrew
1
u/Dairunt 20d ago
BÁSICO
1
u/Lannok-Sarin 20d ago
Ah, but wouldn’t it actually be “Si Mas Mas”? lol.
1
u/MaximusHomerdrive 20d ago
I'm an old COBOL programmer. This has me wondering what they call it in Spanish.
1
u/PedanticSatiation 20d ago
But is it a por or a para loop? I can never remember
1
u/FishermanNext555 20d ago
*returns
nada1
u/el_bosteador 20d ago
Ce mas mas
That sound from my childhood still rings in my head to this day
1
u/engineear-ache 19d ago
structured quieres language
1
u/thehotshotpilot 19d ago
Holy Si (If Terry Davis was Latino)
1
u/StickFigureFan 19d ago
Si mas mas?
1
u/Lighthades 19d ago
0
u/Tuomas90 20d ago
Sissi