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

From Wordfast Wiki
Jump to: navigation, search
m
 
(17 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 4|Wordfast Pro 4]]. 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 4|Wordfast Pro 4]]:
+
__TOC__
# Create a conversion rules (*''.properties'') file in a text editor
 
# Add a file format filter to [[Wordfast Pro 4|Wordfast Pro 4]]
 
  
==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 4|Wordfast Pro 4]]==
+
==Add a file format filter to Wordfast Pro==
  
# 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 and language codes in the XML header, then close the file and return to Wordfast Pro.
# Under {{menu|Create Project}}, select {{menu|Use the advanced project wizard}}
+
# From the '''Project List view''', click on '''''Create Project'''''.
# In wizard step 3 of 6 {{menu|Add Source Files}}, select {{menu|Create Filter Type}}
+
# 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).
# From the {{menu|Choose file format}} drop-down, select {{menu|Text based filter (*.xml)}}
+
# Create or add TMs, glossaries, or blacklists as necessary.
# Type an appropriate name for the new filter in the {{menu|Filter Name}} field
+
# Under the '''''Source Files''''' tab, click on '''''Create Filter'''''.
# From the {{menu|Encoding}} drop-down, select the one that matches what you noted in step 1 of this section
+
# From the '''''Choose file format''''' drop-down, select '''''Text based filter''''' (''*.xml'').
# Click the {{menu|Browse}} button next to {{menu|Extraction Rules}}, then locate and open your ''.properties'' file
+
# Type an appropriate name for the new filter in the "Filter Name" field.
# Type ''xliff'' in the {{menu|Extension}} field and click {{menu|OK}}
+
# From the '''''Encoding''''' drop-down, select the one that matches what you noted in step 1 of this section (likely UTF-8).
# Choose {{menu|Add File}}, locate the folder containing the WP XLIFF file(s), select the file(s), and click {{menu|Open}}
+
# Set target encoding as the same.
# Next to the folder name under {{menu|Type}}, click the drop-down and select your new WP XLIFF filter's name (this will select it for all files in the list)
+
# Click the '''''Browse''''' button next to "Extraction Rules", then locate and open your ''.properties'' file.
# Complete the project wizard as usual to finish
+
# Type ''xliff'' in the "Extension" field and click '''''OK'''''.
 +
# 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 '''''Type''''', click the drop-down and select your new WP XLIFF filter's name.
 +
# Complete the project wizard as usual to finish.-->
  
[[Category:Wordfast Pro 4]]
+
[[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.