Auto-translated
In light of the traditions, I remembered Jack London's story "Night on Goboto," and I quote: On Goboto (one of the southern islands), there was an unwritten law that a person had to wear trousers and shoes when going ashore. Shorts, lava-lava, and bare feet were simply indecent. When Captain Jensen decided to go ashore in a loincloth, an undershirt, with two pistols and a knife at his belt, he was asked to dress. Standing on the stern of his dinghy, Captain Jensen loudly asserted that he had no trousers on his schooner; at the same time, he confirmed his intention to go ashore. Then, he was carefully treated on Goboto for a gunshot wound to the shoulder, and they even apologized for the inconvenience caused, as there were indeed no trousers on his schooner. Finally, when Captain Jensen got out of bed, Johnny Bassett very politely, but firmly, helped the guest put on trousers from his own wardrobe. This was a great precedent, and in the following years, the etiquette was never violated. From now on, the white man and trousers were inseparable. Only the black people ran around bare. Trousers became a symbol of caste.
So, the question is not what to wear, but when and where to wear it.