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

From Wordfast Wiki
Jump to: navigation, search
 
(10 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 17: Line 32:
 
#: 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 ''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 ''Source Files'' tab, click on ''Create Filter''.
+
# Under the '''''Source Files''''' tab, click on '''''Create Filter'''''.
# From the ''Choose file format'' drop-down, select ''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 ''Filter Name'' field.
+
# Type an appropriate name for the new filter in the "Filter Name" field.
# From the ''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 ''Browse'' button next to '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 "Extension" field and click ''OK''.
+
# 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''.
+
# 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.
+
# 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.-->
  
Updated by [[User:Star|Star]] 03:00, 15 January 2019 (CEST)
+
[[Category:Wordfast Pro]]

Latest revision as of 21:03, 14 April 2021

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.