Edit an exported Unicode text file
When user-defined text strings are exported from an application to a tab-delimited text file in Unicode format, they can be edited in Microsoft Excel (recommended) or in the Notepad text editor.
For more information about translating text in the exported files, see Chapter 12 in the
FactoryTalk View Site Edition User's Guide
.
TIP:
- If you open a file in Notepad that has been opened and saved in Excel, the double quotes surrounding the string definitions will have been removed for most strings.
String definitions containing embedded double quotes or other characters that Excel treats as special characters, such as commas, will be enclosed in double quotes. Any embedded double quotes will have been converted to a pair of double quotes.
These are all imported correctly back into the application.
- If you have specified that undefined strings will be displayed in the default language, when you export strings to a Unicode file, the default language strings will be exported for undefined strings.
To open an exported Unicode text file in Excel:
- OpenExceland clickFile>Open.
- In theOpendialog box, in theFiles of typefield, make sure thatAll Filesis selected, then browse to and select the file you are going to edit, and clickOpen.When the text file is opened, the Excel Text Import wizard starts up.
- In theText Importwizard, select these options, and then clickNext.Choose the file type that best describes your data: DelimitedStart import row at: 1File origin: Windows (ANSI)
- In theText Importwizard, select these options, and then clickNext.Delimiters the data must contain: Tab (make sure that the other checkboxes are cleared)Treat consecutive delimiters as one: clear the checkbox
- In theText Importwizard, for Column data format, selectGeneral.
- ClickFinish.
The first seven lines of the Unicode file explain what you can and cannot change in the file.
To save the edited Excel file:
- ClickFile>Select Save As.
- In theSave Asdialog box, in theSave as typefield, make sure thatUnicode Text (*.txt)is selected, and then clickSave.
- ClickYes, when a message appears stating that the file may contain features that are not compatible with Unicode Text, and asking if you want to keep the workbook in this format. This saves the file but does not close it.
- ClickFile>Close, and then clickYeswhen you are asked whether you want to save the changes. You can then save the file using its original name or specify a new name.
- ClickYes, when you are prompted again with the message described in step 3.
To edit and save an exported Unicode text file in Notepad:
- InNotepad, open the Unicode file. The first seven lines of the file explain what cannot be edited. The text strings that can be edited are enclosed in double quotes.
- Make the changes required to translate the strings.
- ClickFile> Save As, and make sure that in theSave as typefield,Text Documents [*.txt]is selected, and in theEncodingfield,Unicodeis selected.You can then save the file using its original name or specify a new name.
- ClickFile>Exit, to close the file and Notepad.
Provide Feedback