I defined the following type:
Public Type settings
key As String
german As String
french As String
End Type
How does the correct code look like to define an array with ~100 literal entries?
Someting like:
Dim translations as Array() = {
(key="send", german="Senden", french="Enregistrer"),
(key="directory", german="Verzeichnis", french="Liste"),
...
There’s no nice syntax for that in VBA. If you really need to init an array of a user-defined type, you can use a couple of helper functions to do it like this:
A nicer way to do this particular problem would be a Collection (map) object using the language code and the original text as the key: