der Galgen
gallows
A structure, usually made of wooden beams, that was formerly used to execute people by hanging.
Auf dem alten Marktplatz stand früher ein Galgen.
There used to be a gallows in the old marketplace.

gallows
Loading your saved state.
gallows
A structure, usually made of wooden beams, that was formerly used to execute people by hanging.
Auf dem alten Marktplatz stand früher ein Galgen.
There used to be a gallows in the old marketplace.

To distinguish the meaning, pay attention to the context. If people are talking about history, the Middle Ages, or executions, the historical structure is meant. In technical or sports contexts, it refers to a support or holder.
Im Geschichtsbuch war die Abbildung eines Galgens zu sehen.
In the history book, there was an illustration of a gallows.
In historical contexts, there are fixed expressions such as 'jemanden an den Galgen bringen' (to bring someone to the gallows, i.e. to ensure that someone is executed) or 'am Galgen enden' (to end up on the gallows, i.e. to be executed).
Der Verräter wurde an den Galgen gebracht.
The traitor was brought to the gallows.
The expression 'Galgenhumor' (gallows humor) describes macabre or dark humor with which someone reacts to a hopeless or very terrible situation. It comes from the idea of still making a joke even at the gallows.
Trotz der schlechten Nachrichten bewahrte er seinen Galgenhumor.
Despite the bad news, he kept his gallows humor.
sponsor / carrier
'der Träger' and 'der Galgen' can both refer to a structure that supports something. 'der Träger' is a general word for a load-bearing structural element, for example in a house or a bridge. 'der Galgen' only fits when the structure has a gallows-like shape, usually with a vertical part and a horizontal arm. Learners may confuse the words because both can carry or support something. The important point is: 'Träger' describes the function, while 'Galgen' describes the shape more. In addition, 'Galgen' also has a historical meaning as an execution device; 'Träger' does not have this meaning.

An dem Galgen über der Werkbank hängt eine schwere Lampe.
A heavy lamp hangs from the support frame above the workbench.
Der neue Träger aus Stahl stützt die Decke im alten Haus.
The new steel beam supports the ceiling in the old house.