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

From Wordfast Wiki
Jump to: navigation, search
(edited from WFP4 to 5 interface)
m
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
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 '''Wordpress (WP) XLIFF''' files in [[Wordfast Pro]].  
  
There are two steps to translate WP XLIFF files in [[Wordfast Pro 5|Wordfast Pro 5]]:
+
__TOC__
# Create a conversion rules (*''.properties'') file in a text editor
 
# Add a file format filter to [[Wordfast Pro 5|Wordfast Pro 5]]
 
  
==Create a conversion rules (*''.properties'') file in a text editor==
+
==Update the XLIFF filter settings==
 +
 
 +
# Before creating your project, open preferences from the '''Project List''' view.
 +
# Scroll down to the section '''New Project Preferences''' > '''Filters'''.
 +
# Select the XLIFF (*.xliff) filter, then under '''Format Settings''' below, tick the box '''''Lock html tags and entities'''''.
 +
 
 +
[[File:Xliff.png]]
 +
 
 +
==Create your project==
 +
 
 +
# From the '''Project List''' view, click on '''''Create Project'''''.
 +
# Add the XLIFF file(s) and Wordfast should automatically detect the languages.
 +
# Choose the XLIFF filter (not the XLIFF 2.0).
 +
# Name your project, verify the location you will save it to, and your source and target languages.
 +
# Create or add TMs, glossaries, or blacklists as necessary.
 +
# Complete the project wizard as usual to finish.
 +
 
 +
<!--==Create a conversion rules (*''.properties'') file in a text editor==
  
 
# Open your preferred text editor (e.g., Notepad in Windows)
 
# Open your preferred text editor (e.g., Notepad in Windows)
Line 13: Line 28:
 
#: ''paragraphFormat.1=html-included
 
#: ''paragraphFormat.1=html-included
 
#: ''converter.regexp.collapsetags=true
 
#: ''converter.regexp.collapsetags=true
# Name and save the text file to a safe location and note the location
+
# Name and save the text file to a safe location and note the location.
 
# Go to the file and change the extension from ''.txt'' to ''.properties''
 
# Go to the file and change the extension from ''.txt'' to ''.properties''
 
#: 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 5|Wordfast Pro 5]]==
+
==Add a file format filter to Wordfast Pro==
  
# Open your WP XLIFF source file with your preferred text editor, note the encoding and language codes in the XML header, then close the file and return to [[Wordfast Pro 5|Wordfast Pro 5]]
+
# Open your WP XLIFF source file with your preferred text editor, note the encoding and language codes in the XML header, then close the file and return to Wordfast Pro.
# From the Project List view, click on {{menu|Create Project}}.
+
# From the '''Project List view''', click on '''''Create Project'''''.
 
# Name your project, verify the location you will save it to, and choose your source and target languages. Make sure your language codes match the codes in the XML header (step 1).
 
# Name your project, verify the location you will save it to, and choose your source and target languages. Make sure your language codes match the codes in the XML header (step 1).
 
# Create or add TMs, glossaries, or blacklists as necessary.
 
# Create or add TMs, glossaries, or blacklists as necessary.
# Under the {{menu|Source Files}} tab, click on {{menu|Create Filter}}.
+
# Under the '''''Source Files''''' tab, click on '''''Create Filter'''''.
# From the {{menu|Choose file format}} drop-down, select {{menu|Text based filter (*.xml)}}.
+
# From the '''''Choose file format''''' drop-down, select '''''Text based filter''''' (''*.xml'').
# Type an appropriate name for the new filter in the {{menu|Filter Name}} field.
+
# Type an appropriate name for the new filter in the "Filter Name" field.
# From the {{menu|Encoding}} drop-down, select the one that matches what you noted in step 1 of this section (likely UTF-8).
+
# From the '''''Encoding''''' drop-down, select the one that matches what you noted in step 1 of this section (likely UTF-8).
 
# Set target encoding as the same.
 
# Set target encoding as the same.
# Click the {{menu|Browse}} button next to {{menu|Extraction Rules}}, then locate and open your ''.properties'' file.
+
# Click the '''''Browse''''' button next to "Extraction Rules", then locate and open your ''.properties'' file.
# Type ''xliff'' in the {{menu|Extension}} field and click {{menu|OK}}.
+
# Type ''xliff'' in the "Extension" field and click '''''OK'''''.
# Choose {{menu|Add File}}, locate the folder containing the WP XLIFF file(s), select the file(s), and click {{menu|Open}}.
+
# Choose '''''Add File''''', locate the folder containing the WP XLIFF file(s), select the file(s), and click '''''Open'''''.
# Next to the file name under {{menu|Type}}, click the drop-down and select your new WP XLIFF filter's name.
+
# Next to the file name under '''''Type''''', click the drop-down and select your new WP XLIFF filter's name.
# Complete the project wizard as usual to finish.
+
# Complete the project wizard as usual to finish.-->
  
[[Category:Wordfast Pro 5]]
+
[[Category:Wordfast Pro]]

Latest revision as of 10:33, 17 December 2022

There are two steps to translate Wordpress (WP) XLIFF files in Wordfast Pro.

Update the XLIFF filter settings

  1. Before creating your project, open preferences from the Project List view.
  2. Scroll down to the section New Project Preferences > Filters.
  3. Select the XLIFF (*.xliff) filter, then under Format Settings below, tick the box Lock html tags and entities.

Xliff.png

Create your project

  1. From the Project List view, click on Create Project.
  2. Add the XLIFF file(s) and Wordfast should automatically detect the languages.
  3. Choose the XLIFF filter (not the XLIFF 2.0).
  4. Name your project, verify the location you will save it to, and your source and target languages.
  5. Create or add TMs, glossaries, or blacklists as necessary.
  6. Complete the project wizard as usual to finish.