XML - PowerPoint PPT Presentation

About This Presentation
Title:

XML

Description:

Localizable contents can be successfully handled by XSL or DTD. XSL: transform the document according to location or language, example. ... – PowerPoint PPT presentation

Number of Views:25
Avg rating:3.0/5.0
Slides: 22
Provided by: peisha
Category:
Tags: xml | xsl

less

Transcript and Presenter's Notes

Title: XML


1
XML Localis/zation
  • Peishan T. Bartley

2
XML and Languages
  • XML supports any defined character sets.
  • With Unicode-8, an XML file can be multi-lingual.
  • Multi-lingual attributes.
  • Multi-lingual tests.
  • What about the elements?

3
Localization (or Localisation)
  • Internationalization to develop software so it
    can run in different international environments
    without adapting or recompiling.
  • Localization to make local Merriam-Webster
    Abridged.

4
Localization (or Localisation)
  • To localize translation reformatting layout
    re-evaluation.

5
Localization (or Localisation)
  • Examples
  • Format
  • Date
  • MM/DD/YY vs. DD/MM/YY
  • Address
  • 51 Wu-Chuan 6th St. Taichung, Taiwan 403
  • 403 ??????????51?
  • Colors
  • Dont use red ink to write the name of a Chinese.

6
XML and Localization
  • Localizable contents can be successfully handled
    by XSL or DTD.
  • XSL transform the document according to location
    or language, example.
  • DTD the power of attributes
  • ltlanguagegt
  • ltspangt - ltspan languageen translatenogt
    lt/spangt
  • ltstylegt - ltemphasisgt ltemphasize moregt

7
Challenges During the Localization Process
  • Software codes are placed in other peoples
    hands.
  • Software products may include multiple file
    formats.
  • Duplicate translation efforts means double costs.

8
Challenges During the Localization Process
  • Alternative process
  • Prepare the file by putting it in a container in
    which codes and translatable texts are separated.

9
XLIFF
  • XLIFF Born in 2001, XLIFF is the XML
    Localisation Interchange File Format.

10
XML and Localization
  • Why XML-based?
  • Easy to develop, and low on cost.
  • Supports any defined character sets as long as
    they are properly declared.
  • Has features (attributes and such) that can be
    used to facilitate localization.
  • Can be output to target media, such as HTML or
    PDF.
  • Extensible.

11
The Elements of XLIFF
  • Non-localization data Skeleton file.
  • Localization data Translation units.
  • Translation memory.

12
XLIFF - Translation Units
  • lttargetgt vs. ltsourcegt
  • and ltalt-transgt
  • lttrans-unit id1gt ltsource xmllangengtIts
    such a nice day today!lt/sourcegt lttarget
    xmllangzh-TWgt ?????? ?!lt/targetgt ltalt-tran
    sgt lttarget xmllangzh-CNgt???? ???!lt/target
    gt lt/alt-transgtlt/trans-unitgt

13
XLIFF - Translation Units
  • What about the inline codes?
  • Tag it
  • ltbpt id"1"gtlta href"http//www.simmons.edu/gsl
    is/"gtlt/bptgtSimmons GSLISltept
    id"1"gtlt/agtlt/eptgt

14
XLIFF - Translation Units
  • More elements
  • Internal-file
  • External-file
  • And powerful attributes
  • Phase
  • Count

15
XLIFF - Translation Units
  • Example
  • ltphase-groupgt ltphase phase-name'trans'
    process-name'translation' toolthisthing'
    contact-emailMr_translator_at_goodtranslation.com'
    date'2002-10-01T233223Z'/gt ltphase
    phase-name'edit' process-name'edit'
    toolthatthing' contact-emailMs_editor_at_prettyed
    iting.com' date'2002-10-02T142003Z'/gt
  • lt/phase-groupgt

16
XLIFF - Translation Units
  • Another example use attributes to record
    metadata.
  • lttrans-unit xmlspacepreserve id1001
    maxwidth15 minwidth8 size-unitchargt
  • ltsource xmllangengt Title lt/sourcegt
  • lttarget xmllangzh-twgt ?? lt/sourcegt
  • lt/trans-unitgt

17
XLIFF
  • So how do you do it?
  • Code the files manually, write a program to do
    it, or use the tools available.

18
XLIFF Tools
  • ENLASO Corp. Rainbow 4. http//xliff-tools.free
    desktop.org/wiki/Resources
  • Java.net Open Language Tools. https//open-langua
    ge-tools.dev.java.net/
  • Heartsome Holdings Ltd. http//www.heartsome.net
  • XLIFF Tools. http//xliff-tools.freedesktop.org/

19
Open Language Tools XLIFF Filter 1.2.4
20
XLIFF Editor
21
XML Localis/zation
  • Questions?
  • One non-XLIFF related thing. Characters codes.
Write a Comment
User Comments (0)
About PowerShow.com