1. A translation apparatus comprising: a setting unit configured to set an input language and an output language; a first receiving unit configured to receive input data in a language, which is speech or character information; a storage unit configured to store the input data; a detection unit configured to detect a discrepancy between the input language and the language of the input data; a swapping unit configured to swap the settings of the input language and the output language if the discrepancy is detected; a reading unit configured to read the input data from the storage unit; a recognition unit configured to recognize the input data from the storage unit in the input language set by the setting unit if the discrepancy is not detected, and recognize the input data from the storage unit in the input language swapped by the swapping unit if the discrepancy is detected; and a translation unit configured to translate a recognition result recognized in the input language set by the setting unit into the output language set by the setting unit if the discrepancy is not detected, and translate a recognition result recognized in the input language swapped by the swapping unit into the output language swapped by the swapping unit if the discrepancy is detected.