File: node27.html

package info (click to toggle)
viewmol 2.3-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 9,424 kB
  • ctags: 2,239
  • sloc: ansic: 29,098; sh: 909; makefile: 513; python: 238
file content (74 lines) | stat: -rw-r--r-- 3,830 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--****************************************************************************
*                                                                              *
*                                   Viewmol                                    *
*                                                                              *
*                            N O D E 2 7 . H T M L                             *
*                                                                              *
*                  Copyright (c) Joerg-R. Hill, December 2000                  *
*                                                                              *
********************************************************************************
*-->
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Adapting the Program to a Different Language</TITLE>
<META NAME="description" CONTENT="Adapting the Program to a Different Language">
<META NAME="keywords" CONTENT="viewmol">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="viewmol.css">

</HEAD>

<BODY LANG="EN" BGCOLOR="#FFFFFF">

<H1><A NAME="SECTION000100000000000000000">
Adapting the Program to a Different Language</A>
</H1>
V<SMALL>IEWMOL</SMALL> has been written to take full advantage of the language
independence of X windows. All program messages, menus, dialog box texts etc.
are stored outside of the program in resource files. Therefore it is possible
that different users can run the same V<SMALL>IEWMOL</SMALL> executable in different
languages on the same computer. Currently, five languages are supported:
English, French<A NAME="tex2html29"
  HREF="footnode.html#foot1159"><SUP>4</SUP></A>,
German, Spanish<A NAME="tex2html30"
  HREF="footnode.html#foot1160"><SUP>5</SUP></A>,
and Russian<A NAME="tex2html31"
  HREF="footnode.html#foot1161"><SUP>6</SUP></A>. To adapt V<SMALL>IEWMOL</SMALL> to another language only the <code>Xdefaults.&lt;language&gt;</code>
file has to be translated. For a native speaker of the language this will take
between 45 and 60 minutes.

<P>
The <code>Xdefaults.&lt;language&gt;</code> files provided with V<SMALL>IEWMOL</SMALL> have three
sections. The first section is related to the installation of external support
program, the second section contains default settings (see p.
<A HREF="node29.html#defaults"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="crossref.png"></A>). The third section contains all language dependent messages
and this is the only section which needs translation. To translate, translate
everything right of the colon. The strings '%s', '%d', or '%f' mark the
position of names or numbers which are filled in by the program and must
remain in the translated version at the appropriate position. After translation
install the new <code>Xdefaults.&lt;language&gt;</code> file as described in the
Installation section (cf. p. <A HREF="node3.html#installation"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="crossref.png"></A>) and V<SMALL>IEWMOL</SMALL> will
talk in your language. The author would appreciate to get a copy of the
translated resource file for inclusion in the next public release.

<P>
<BR><HR>
<ADDRESS>
<A HREF="mailto:joehill@users.sourceforge.net"><I>Jrg-Rdiger Hill</I></A><BR>Sun Dec 10 17:38:35 MET 2000
</ADDRESS>
</BODY>
</HTML>