# Adding a translation to a released component

This procedure can be followed whether you want to translate the content yourself or obtain the translation from a third party.

To add translated message strings to a released component:

1. Unzip the .war file of the localized component you want to modify.
2. Edit its portlet.xml file to enable the additional locale you want to support. For example, to add French, include <supported-locale>fr</supported-locale>.
3. In WEB-INF/classes/com/endeca/ (or other location, based on your component's class structure), generate a Resource_[locale].properties file for the new language. This file should contain target-language values of the properties used in the component. To see the supported properties, refer to the WEB-INF/classes/com/endeca/Resource_en.properties file already in the component. Your file should contain a version of each of those messages in your target language.
4. Re-zip the .war file of the component and place it in the endeca-portal/deploy directory. Liferay hot-deploys the component.
5. Repeat steps 1 through 4 for each component you want to enable for your target language.
6. Start the Discovery Framework and add your components, as well as the Language component, to the page.
7. In the Language component, click the flag associated with your target language. The Discovery Framework displays the component messages from your resource bundle in your target language. In addition, because the portal itself is also localized, menus and other portal controls also appear in your target language.
8. In the Language component, click the United States flag to switch back to English.