Simple Multilingual Support for Tcl

نویسنده

  • Henry Spencer
چکیده

The first, and often largest, step toward internationalization of an interactive application is translation of its output messages, prompts, etc. into the desired language. This is typically done with a ‘‘message catalog’’: the program supplies a key of some kind, which is looked up in the catalog to yield the appropriate translation. While this basic approach is impossible to avoid (given the infeasibility of automated translation), the engineering details matter a great deal. Programmers can cope with almost infinitely messy interfaces if they must (as witness X programming before Tk), but convincing them to use a new interface voluntarily requires ease of use. Ideally, doing it right should be easier than doing it wrong. If there are concrete benefits from doing it right, doing it right can be slightly harder than doing it wrong. However, messagecatalog facilities are almost always quite a bit harder to use than puts. Hence applications typically use message catalogs only when it is explicitly demanded by the requirements, and retrofitting an application to use a message catalog is painful. A carefully designed message-catalog facility can be almost as easy to use as puts, and retrofitting it into a program can be relatively easy. The lookup key should be the message in the original language. Simple provisions for nested subtranslations, untranslated substrings, disambiguating tags, and either explicit (call a procedure) or implicit (done as part of output) translation are essential. Doing all this for Tcl takes care but is practical.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

When is an object not an object?

This paper describes an approach to designing and building Tcl extensions that can be flexibly and dynamically changed using either Tcl or C. In particular, extensions having an object-based interface are considered. This extension approach seeks to avoid the “chasm” found in migrating code from Tcl to C as it matures by freely mixing Tcl and C to create an object’s subcommands. The approach di...

متن کامل

Transcriber: Development and use of a tool for assisting speech corpora production

We present ``Transcriber'', a tool for assisting in the creation of speech corpora, and describe some aspects of its development and use. Transcriber was designed for the manual segmentation and transcription of long duration broadcast news recordings, including annotation of speech turns, topics and acoustic conditions. It is highly portable, relying on the scripting language Tcl/Tk with exten...

متن کامل

Creating a Multimedia Extension for Tcl Using the Java Media Framework

The Java Media Framework (JMF) provides a rich set of functionality for building multimedia applications. Using the JMF to build simple multimedia applications is trivial; however, using the JMF to build more complex, interactive multimedia presentations is a much more difficult task. With the recently introduced integration of Tcl and Java, the Tcl language can now be extended to provide a scr...

متن کامل

Tcl-MCMIS: Interpreted Management Access Facilities

Abstract. Programming OSI management communications is considered daunting because of the complexity of the service/protocol (CMIS/P) and the lack of standardized high-level Application Program Interfaces (APIs) that can harness the power and hide the protocol and abstract syntax complexity. In the OSIMIS platform, high-level C++ APIs, namely the Remote MIB and Shadow MIB, are provided to suppo...

متن کامل

WinACIF: A Telecom IC Support Tool Using Tcl/Tk

We discuss our use of Tcl/Tk to provide software support for telecommunications Integrated Circuits (ICs). Our Windows-based Advanced Computer Interface (WinACIF) program works in concert with reconfigurable hardware based on Field Programmable Gate Arrays (FPGAs) to provide essential coordination in laboratory data collection and analysis of a device under test. WinACIF replaces several MS-DOS...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997