Fixed #20398 - Added language selection code to example in documentation

This adds the suggestion in ticket #20398 to the documentation.