Edinburgh ( Scottish Gaelic : DÃ n Ã ideann ) is the capital city and second largest city in Scotland . Edinburgh ( ; Scottish Gaelic : DÃ n Ã ideann ) is the capital city of Scotland , the second largest city in Scotland and the seventh-most populous in the United Kingdom .