| Application Behavior - Language and localization |
Applies to Self-Extracting, HTML Viewer, IE Browser publications. HTML Executable provides localization support for your publications and ebooks. Explanatory field text and dialog captions can display in the language of your choice when your publication is run. This page allows you to manage the localization of your publication and to load/save language files.
Resource Strings
Imagine you want to build a publication both in French and English. Instead of translating all texts in the different fields, finding all options, actions, etc... you just need to modify a list of strings: this is the goal of the resource string editor. Resources strings can be invoked with the percent symbol % inserted before and after a constant: %SAbout%. These "string identifiers" take the place of string variables or literals. Publications replace each string identifier with its string value at runtime. You can also put resource strings directly in your HTML pages (see below).
Modify the contents of the Value field, and press Apply to save the resource string's new value.
How to put a resource string directly into your HTML page.This only works in HTML Viewer and IE Browser publications.
<!--#resstring ID="[name of the resource string]" --> Just replace the [name of the resource string] by the name of the resource string you want. For instance: SPubCopyright. <!--#resstring ID="SPubCopyright" --> The copyright text of the publication will be inserted in the HTML page.
<script language="Javascript"> If we follow the same example as above, this will lead to: <script language="Javascript"> The result of this script is here: Strings for Dialog Boxes
They can be invoked with the following syntax [#ID] where ID is the "string identifier". Such IDs always begin with Y; example: [#YAbout] will be replaced by the value of "YAbout" which is "About".
About language files
Thus language files may be used in different publications. You can even share them with others.
Additional resource stringsSome resource strings are automatically created by HTML Executable when compiling your publication:
You can use these resource strings in your HTML pages and scripts. |
This is the online documentation of HTML Executable.
About HTML Executable
HTML Executable is a versatile HTML compiler and ebook compiler: it lets you create secure ebooks and desktop applications with your websites, HTML or PDF documents.
You can easily create attractive ebooks, full-featured HTML applications (RIA) and software, digital publications from your websites, PDF files and HTML documents for online or offline distribution.