Difference between revisions of "Translating WordPress XLIFF files in Wordfast Pro"

From Wordfast Wiki
Jump to: navigation, search
m (4 to 5)
Line 1: Line 1:
The following instructions are for those who want to translate '''Wordpress (WP) XLIFF''' files in [[Wordfast Pro 4|Wordfast Pro 4]]. This process is required because WP XLIFF files differ from standard XLIFF files.
+
The following instructions are for those who want to translate '''Wordpress (WP) XLIFF''' files in [[Wordfast Pro 5|Wordfast Pro 5]]. This process is required because WP XLIFF files differ from standard XLIFF files.
  
There are two steps to translate WP XLIFF files in [[Wordfast Pro 4|Wordfast Pro 4]]:
+
There are two steps to translate WP XLIFF files in [[Wordfast Pro 5|Wordfast Pro 5]]:
 
# Create a conversion rules (*''.properties'') file in a text editor
 
# Create a conversion rules (*''.properties'') file in a text editor
# Add a file format filter to [[Wordfast Pro 4|Wordfast Pro 4]]
+
# Add a file format filter to [[Wordfast Pro 5|Wordfast Pro 5]]
  
 
==Create a conversion rules (*''.properties'') file in a text editor==
 
==Create a conversion rules (*''.properties'') file in a text editor==
Line 17: Line 17:
 
#: NOTE: If you don't see the ''.txt'' extension, go to [http://www.wikihow.com/Change-a-File-Extension this wikiHow tutorial] for more information, but ignore its Method 1.
 
#: NOTE: If you don't see the ''.txt'' extension, go to [http://www.wikihow.com/Change-a-File-Extension this wikiHow tutorial] for more information, but ignore its Method 1.
  
==Add a file format filter to [[Wordfast Pro 4|Wordfast Pro 4]]==
+
==Add a file format filter to [[Wordfast Pro 5|Wordfast Pro 5]]==
  
# Open your WP XLIFF source file with your preferred text editor, note the encoding in the XML header, then close the file and return to [[Wordfast Pro 4|Wordfast Pro 4]]
+
# Open your WP XLIFF source file with your preferred text editor, note the encoding in the XML header, then close the file and return to [[Wordfast Pro 5|Wordfast Pro 5]]
 
# Under {{menu|Create Project}}, select {{menu|Use the advanced project wizard}}
 
# Under {{menu|Create Project}}, select {{menu|Use the advanced project wizard}}
 
# In wizard step 3 of 6 {{menu|Add Source Files}}, select {{menu|Create Filter Type}}
 
# In wizard step 3 of 6 {{menu|Add Source Files}}, select {{menu|Create Filter Type}}
Line 31: Line 31:
 
# Complete the project wizard as usual to finish
 
# Complete the project wizard as usual to finish
  
[[Category:Wordfast Pro 4]]
+
[[Category:Wordfast Pro 5]]

Revision as of 10:25, 17 February 2018

The following instructions are for those who want to translate Wordpress (WP) XLIFF files in Wordfast Pro 5. This process is required because WP XLIFF files differ from standard XLIFF files.

There are two steps to translate WP XLIFF files in Wordfast Pro 5:

  1. Create a conversion rules (*.properties) file in a text editor
  2. Add a file format filter to Wordfast Pro 5

Create a conversion rules (*.properties) file in a text editor

  1. Open your preferred text editor (e.g., Notepad in Windows)
  2. Add the following italicized text to a new blank text file:
    paragraphPrefix.1=<target><!\\[CDATA\\[
    paragraphSuffix.1=\\]\\]></target>
    paragraphFormat.1=html-included
    converter.regexp.collapsetags=true
  3. Name and save the text file to a safe location and note the location
  4. Go to the file and change the extension from .txt to .properties
    NOTE: If you don't see the .txt extension, go to this wikiHow tutorial for more information, but ignore its Method 1.

Add a file format filter to Wordfast Pro 5

  1. Open your WP XLIFF source file with your preferred text editor, note the encoding in the XML header, then close the file and return to Wordfast Pro 5
  2. Under Create Project, select Use the advanced project wizard
  3. In wizard step 3 of 6 Add Source Files, select Create Filter Type
  4. From the Choose file format drop-down, select Text based filter (*.xml)
  5. Type an appropriate name for the new filter in the Filter Name field
  6. From the Encoding drop-down, select the one that matches what you noted in step 1 of this section
  7. Click the Browse button next to Extraction Rules, then locate and open your .properties file
  8. Type xliff in the Extension field and click OK
  9. Choose Add File, locate the folder containing the WP XLIFF file(s), select the file(s), and click Open
  10. Next to the folder name under Type, click the drop-down and select your new WP XLIFF filter's name (this will select it for all files in the list)
  11. Complete the project wizard as usual to finish