Top Banner
Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003 Westminster, Colorado
29

Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

Jan 01, 2016

Download

Documents

Sybil Carter
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

Internationalization:Implementing the XLIFF

StandardJon Allen, Producer

instructional media + magic, inc.

JA-SIG Summer Conference 2003June 10, 2003

Westminster, Colorado

Page 2: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGThe Needs

• JA-SIG’s uPortal framework itself • must be available in many user

languages• and support language-aware channels by

providing user language preferences.

• Research and instruction has a number of translated documents with source and target—translated—content.

_____________________________These are two different purposes

Page 3: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGThe XLIFF standard

XML Localization Interchange File Format

“The purpose of this format is to store localizable data and carry it from one step of the localization process to the other,while allowing interoperability between tools.”

• Source text

• Translated text

• Information about the translation process and status

OASIS Translation Web Services Technical Committee

Page 4: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGSome Background

• Currently there exist a number of applications and workflows that have been developed to assist linguists to translate projects.

• These applications were typically developed to read in the Resource bundles of an application and expose each of the translatable messages. • Some examples of this might be TRADOS to translate

Microsoft RC files or KBabel to translate UNIX based PO files.

• Some of these translation assistant applications have been made XML aware in their latest versions

• Some have built in capability for interoperability with other translation applications using an XML based interchange format called XLIFF.

Page 5: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGWhat is XLIFF

• XLIFF is an initiative within OASIS to define the XML Localization Interchange File Format.

• The purpose of this format is to • Store localizable data• Carry it through steps of the localization

process• Allow interoperability between tools

Page 6: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGWhy XLIFF was created

• Tools for linguists stored translation memories in proprietary formats• Vendor lock-in

• Lack of Interoperability • Translations of the translations

• XML was a flexible and appealing Markup Language for building an interoperable standard

• Tools vendors were concentrating on being able to deal with many formats rather than improving features

• Lack of support for standardized localization workflow

Page 7: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGXLIFF History

• September 2000 group formed to look at the issue of localisation file interchange

• Original group included Oracle, Sun, IBM, Novell, Berlitz GlobalNET. Moravia-IT RWS and Alchemy joined soon after.

• Agreed spec 1.0 but didn’t publish due to legal issues (Intellectual Prop)

• Joined Oasis December 2001

• Working draft 2a, 15 October 2002

Page 8: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGCurrently involved with XLIFF• Alchemy Software• Bowne Global

Solutions• GlobalSight• HP• Lotus/IBM• Lionbridge• LRC• Moravia IT

• Novell• Oracle• Microsoft• RWS Group• SAP• SDL International• Sun Microsystems• Tektronix

Page 9: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGXLIFF - overview

• Contains the localisible content • Bi-lingual format• Meta data

• Workflow, Management information

• Support material • TMs, Alternate translation

Page 10: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGXLIFF elements - overview

• <file>• <header>

• <phase>

• <body>• <trans-unit>

– <source>– <target>

Page 11: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGXLIFF element – alt-trans

• Alternate translation – French translation available to French Canadian translators

• Used to aid workflow• Previous translations• Rejected translations

Page 12: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

XLIFF and the uPortal Framework

Page 13: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGChannel Developer Process

• Build XSLT (Skeleton)• Identify Translatable Units• Run ANT Target to generate XLIFF libraries• Translate XLIFF libraries (change flag from

in process to complete)• Run ANT Target to generate Localized XSLT

by combining "Skeleton" XSLT and "complete" XLIFF

• Framework chooses appropriate Localized XSLT according to user and portal settings

Page 14: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGLanguage Gathering

Page 15: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGExample XLIFF

Page 16: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGTechnical Approach (part 1)• Channel author writes XSL

• With namespace • xmlns:upl="http://www.ja-sig.org/uPortal/

internationalization/">

• And trans unit markings• <upl:tu> elements for Cdata• <meta name="test1" content="test2"

upl:content="content" /> for attributes

• XSL is the skeleton file • Channel author is the authority on what

elements of the markup should be translated.

Page 17: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGExample

Page 18: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGTechnical Approach (part 2)

• XSL skeleton becomes the input file to an XLIFF generation transformation.• Three templates

• Root template creates the XIFF Header• <upl:tu> template creates the CData source

and target blocks• upl: attributes template creates attribute

source and target blocks

Page 19: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGExample

Page 20: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGTechnical Approach (part 3)• After the XLIFF is generated the translations can

begin – either directly with the XML or using one of the localization tools

Page 21: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGTechnical Approach (part 4)

• After the translations are complete another transformation has been written to create localized versions of the original XSL skeleton.• A locale parameter is passed to the

transformation• The transformation uses the document

function to import the XLIFF files and replace the appropriate phrases

Page 22: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGExample

Page 23: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGExample Localized to Japanese

Page 24: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGWhy this approach?

• Run-time translations would be a performance problem

• Build time translations can be cached

Page 25: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGXLIFF and Non-XML Files

An XLIFF application by Peter Kharchenko

Page 26: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGOpportunities?

• Translation channel• Translation memories at a central

location• Other Opportunities?

Page 27: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

XLIFF for Instruction and Research

The XLIFF Viewer channel

Page 28: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGXLIFF Viewer Channel (1)

English Only

German Only

Page 29: Internationalization: Implementing the XLIFF Standard Jon Allen, Producer instructional media + magic, inc. JA-SIG Summer Conference 2003 June 10, 2003.

uP

ort

al

& J

A-S

IGXLIFF Viewer Channel (2)

Both Languages Side-by-Side