6 ms·
Visual Basic for Applications has localized Versions. Here is an Example in german, so why not in arabic? Funktion VorherigerGeschaeftstag(dt Als Datum) Als
by fxj 7y ago
Visual Basic for Applications has localized Versions. Here is an Example in german, so why not in arabic?
Funktion VorherigerGeschaeftstag(dt Als Datum) Als Datum
Dim wd as integer
wd = Wochentag(dt) ' Wochentag liefert 1 für Sonntag, 2 für Montag usw.
Prüfe Fall wd
Fall 1
' Auf Sonntag wird Datum vom letzten Freitag zurückgegeben
VorherigerGeschaeftstag = dt - 2
Fall 2
' Auf Montag wird Datum vom letzten Freitag zurückgegeben
VorherigerGeschaeftstag = dt - 3
Fall Sonst
' Andere Tage: vorheriges Datum wird zurückgegeben
VorherigerGeschaeftstag = dt - 1
Ende Prüfe
Ende Funktion
https://de.wikipedia.org/wiki/Visual_Basic_for_Applications https://de.wikipedia.org/wiki/Visual_Basic_for_Applications
- VMG 7y ago> Dim wd as integer Ausgelöst
- runxel 7y agoThanks, I hate it! It's like how every function in Excel is translated as well. `=SUMMEWENNS(…` Complete nonsense, it makes my eyes bleed.
- alexis_fr 7y agoKeyword translation poses MAJOR problems when you open the Excel file on another computer, indeed. Unfortunately, Excel files were more often opened on other computers than Java files... To be inclusive is hard. Even if we imagine one Excel version per continent, all Latin-based people would be ok, it would also suit countries that can be globalized under the Chinese or Arabic areas. But the offshore situations with 2 different continents wouldn’t work well. And sooner or later you end up with one Excel version per alphabet. Russian, Tamil, Farsi, etc.
- dunkelheit 7y agoFor some reason I've always found programming language keywords translated to my native language extremely cringeworthy. I wonder if native English speakers get the same experience for mainstream programming languages or it is just a consequence of novelty.
- munmaek 7y agoThe words aren’t cringeworthy but having to decide them leads to arguments over what precisely to name something.
- Tepix 7y agoSeems extra weird to use German VBA yet not use umlauts.
- microtherion 7y agoGerman manuals can be weird enough. I still remember one that explains the DEC(x) function as "erniedrigt eine Variable" (It's true that "erniedrigen" can sort of mean "decrement", but it mainly means "degrade").
- f1refly 7y agoIt's the correct mathematical term for that operation in german though
- bdcravens 7y agoFeels close enough that I was able to read it. By context, I think I could learn a few German words this way.