34
10 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Performing Translations

BI Publisher 10

Embed Size (px)

Citation preview

Page 1: BI Publisher 10

10Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Performing Translations

Page 2: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 2

Objectives

After completing this module, you should be able to do the following:

• Describe the types of translations and options available within BI Publisher for performing translations

• Create a localized template for translations by using Template Builder

• Create a translation file by using the BI Publisher Enterprise Edition

Page 3: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 3

Introducing Translation Types

• Two types of translations:– Localized Template (or Layout): A separate, translated RTF

based template– XML Localization Interchange File Format (XLIFF):

Generated from the original template

• File types that can be translated include:– RTF layout files– Style Templates– Sub Templates– BI Publisher layout files (.xpt)

Page 4: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 4

Translating by Using a Localized Template

RTF Localized Template Option

Page 5: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 5

Using the Localized Template Option: Process Overview

1. Design the localized RTF layout template, Sub Template, or Style Template.

2. Upload the localized file to Template Manager.

Page 6: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 6

Step 1: Designing the Localized Template

Edit the report and make the appropriate

entries.

Page 7: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 7

Step 2: Uploading the Localized File to Template Manager

1 2

Page 8: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 8

Translating by Using an XLIFF

XLIFF File Option

Page 9: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 9

The Structure of an XLIFF File

Excerpt from an XLIFF file that has not been

translated

Page 10: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 10

XLIFF File Attributes

Translation(Language/Territory)

source-language examples

target-language examples

From English/US to English/Canada

en-US en-CA

From English/US to Chinese/China

en-US zh-CN

From Japanese/Japan to French/France

ja-JP fr-FR

Table of translations

example

Source/target-language

codes

Page 11: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 11

XLIFF File Embedded Data Fields

Page 12: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 12

XLIFF File Elements

Original example updated with

Chinese translation

Original example: <source> and <target>

Page 13: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 13

Using the XLIFF Option: Process Overview

1. Generate the XLIFF from the RTF or BI Publisher (XPT) template.– Two methods for generating the XLIFF for a single template

file:— Generate the XLIFF by using Template Builder for MS Word (not

supported for XPT templates)— Generate the XLIFF from the Layout Properties page

2. Translate the strings.

3. Preview by using Template Builder.

4. Upload the translation.

Page 14: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 14

Step 1: Generating the XLIFF by Using Template Builder (Method 1)

3

2

1

Page 15: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 15

Step 1: Generating the XLIFF from the Layout Properties Page (Method 2)

1

2

3

4

Page 16: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 16

Step 2: Translating the Strings

Page 17: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 17

Step 3: Previewing by Using Template Builder

Page 18: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 18

Step 3: Previewing by Using Template Builder

Page 19: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 19

1

Step 4: Uploading the Translation

2

3

Page 20: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 20

Managing XLIFF Translations on BI Publisher Server

Two methods:

• Template translation: Extract and upload a separate localized translation for RTF Templates.

• Catalog translation: Extract and upload translations for all objects in a selected Catalog folder, into a single XLIFF file.

Page 21: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 21

The Overall Translation Process

1. You extract translatable strings for a Catalog or template translation.

2. BI Publisher creates an XLIFF file.

3. Strings are translated locally.

4. Upload the translated XLIFF file to the Catalog or template.

5. Assign the appropriate locale.

Page 22: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 22

Catalog Translations

Use the Export XLIFF command at the Catalog level to export the following objects:

• Folder

• Data Model

• Report Style Templates

• Sub Templates

• BI Publisher Layouts (XPT)

• RTF Layouts

Page 23: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 24

User Preferences

Based on Report Locale and UI

Language

Page 24: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 25

Exporting the XLIFF File for a Catalog Folder

1

2

3

Page 25: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 26

Viewing the Exported XLIFF File

Page 26: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 27

Importing the XLIFF File for a Catalog Folder

1

2

3

Page 27: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 28

Locale Selection Logic at Run Time

Translation is applied based on the user’s selected Report Locale as follows:

Page 28: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 29

Summary

In this module, you should have learned how to:

• Describe the types of translations and options available within BI Publisher for performing translations

• Create a localized template for translations by using Template Builder

• Create a translation file by using the BI Publisher Enterprise Edition

Page 29: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 30

Practice 10: Overview

This practice covers the following topics:

• Uploading a localized template to Template Manager

• Generating and uploading and XLIFF translation

Page 30: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 31

Quiz: Overview

This quiz examines your knowledge of the concepts discussed in the lesson.

Page 31: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 32

Quiz

You use Catalog translation when you only need the final report documents translated.

a. True

b. False

Page 32: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 33

Quiz

When you extract the translatable strings for a Catalog or template translation, BI Publisher creates an XLIFF file that contains the strings to be translated.

a. True

b. False

Page 33: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 34

Quiz

BI Publisher applies a translation based on the user's Report Locale setting. BI Publisher tries to match an RTF template named for the locale, followed by an attempt to match an XLIFF file named for the locale.

a. True

b. False

Page 34: BI Publisher 10

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.10 - 35

Quiz

Catalog translation enables the extraction of translatable strings from all objects contained in a selected Catalog folder into a single translation file.

a. True

b. False