Sorry for the title, I couldnt find a more meaningful one.
Here is my question:
I want to make a Turkish translation for C++.
I want to be able to say "eger( 2*2 == 4) instead if( 2*2 == 4 )" but I dont know how can I do it or if it is possible. What do you think about it, is it possible?
Yes, it is possible, but it's strongly disrecommended. It'll make your code much harder to read, and there does seem to be an unwritten rule somewhere that most code should be written in English (if not necessarily for English, if you get my meaning).
I don't really see how it would be wrong to change it to another language. If you understand that language better, then it would make it easier to understand the code. I think it would be a good idea.
If you're really desperate you can just have a bunch of #defines for the keywords if you want. That way if someone else really wants to read your code, they can just go through all the files finding and replacing, but that's only if you really want to be in a different language
I think coding in your own language can help you when you are learning it. AFter learning the concepts you can return to original language. I want to provide a turkish language to beginners