this post was submitted on 13 Jan 2024
177 points (93.2% liked)

Asklemmy

44151 readers
1456 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS
 

If you're from a non English speaking country, do you first have to learn English if you want to get into programming?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 106 points 11 months ago (3 children)

Not sure about today but VBA (in the MS Office products) actually had translated keywords because Microsoft is batshit insane.

[โ€“] [email protected] 58 points 11 months ago (2 children)

I hate using Excel for this reason. ALMOST all functions are translated, so you're never sure what to look for. If you find a solution for a problem online? Doesn't work, you'd have to rewrite it in your language. And you can't even switch the language in settings, because it's tied to the OS language (maybe you can in recent versions, haven't bothered to check for a while).

[โ€“] [email protected] 14 points 11 months ago (1 children)

This is why I never touch language setting in any OS. It's guaranteed I'll have some problem down the line because I can't search the problem or understand the solution if error crops up someday, because the menus are different.

[โ€“] [email protected] 8 points 11 months ago (1 children)

Error messages are a pain to search for when they are translated too.

[โ€“] [email protected] 3 points 11 months ago (1 children)

This is why it's good to have unique error codes in addition to messages. It also helps with error monitoring as you can aggregate errors by their error code rather than message (which can have variables in it, different languages, etc).

[โ€“] [email protected] 2 points 11 months ago

Error codes can be useful but I find that a lot of vendors using them rely on the code too much to classify errors as identical. Usually the variables do matter, e.g. which file couldn't be opened or which action was attempted by whom that got a permission denied error.

[โ€“] [email protected] 9 points 11 months ago

Not sure about VBA, but Excel formulas are actually saved in English and translated on file load. It doesn't translate strings though, so EVALUATE only works for users with the same language as the author.

[โ€“] [email protected] 22 points 11 months ago (1 children)

Real world scenario happening to me:

Reinstall my win os to use French because a) back in the day you couldn't just change language, b) scrips were VB written french (so si instead of if etc).

[โ€“] [email protected] 12 points 11 months ago* (last edited 11 months ago) (1 children)

Hehe French programming. It's probably like

essaye:
    faire_qqch()
sauf OhMonDieuQuEstCeQuiSePasse:
    imprime("putain")
[โ€“] [email protected] 17 points 11 months ago (1 children)

Cucumber/Gherkin also has translated keywords (even Emoji.. smh) but there it actually makes sense because you actually write it in natural language.

[โ€“] [email protected] 16 points 11 months ago

I am sceptical of natural language programming in general but I am also fairly certain that you would have to do a lot more than just translate the keywords to get something that looks natural in another language. Word order is different in many languages for one.