简体   繁体   中英

Are there any translation memory / repositories / glossaries for Delphi Run-time?

I need to prepare Delphi 2007 application for localization. Now, about 80% of what needs to be translated is actually Delphi run-time library. I cannot imagine this stuff needs to be re-translated over and over again, by each developer who localizes his/hers software.

So, I'm looking where I can get "translation memory" / "glossary" for Delphi 2007 run-time, either free or for money. I'm particularly interested in Traditional Chinese.

Take a look at the GNU Gettext for Delphi and C++ Builder .

This tool is able to translate all resourcestring defined in the exe into any language, on the fly. It is therefore able to translate the resourcestring used by the Delphi RTL, into any language.

AFAIK there are several pre-made translations available, for several languages (more than the official French / German / Japanese / English versions).

Update: I used some ideas of GetText for the i18n features of our mORMot framework , for the UI part. This will use plain text files for translation, instead of .po or other proprietary systems, and is more Delphi specific (eg dfm content are parsed). This is dedicated to our framework (eg it uses its RTTI classes), but it may be a good start if you want to write your own unit, with some enhancements compared to GetText or the Delphi IDE.

Delphi itself is not translated in Chinese... but I agree, some companies/translaters have certainly already did it.

For information, within the Delphi existing languages (French, German & Japanese), there are specific files with translations in sources subfolders, for example: ...\\RAD Studio\\8.0\\source\\vcl\\fr, ...\\RAD Studio\\9.0\\source\\rtl\\common\\de, ...

For instance, the begin of the French Vcl.Consts.pas :

{*******************************************************}
{                                                       }
{            Delphi Visual Component Library            }
{                                                       }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{                                                       }
{*******************************************************}

unit Vcl.Consts;

interface

resourcestring
  SOpenFileTitle = 'Ouvrir';
  SCantWriteResourceStreamError = 'Impossible d'#39'écrire dans un flux en lecture seule';
  SDuplicateReference = 'WriteObject appelé deux fois pour la même instance';
  SClassMismatch = 'La ressource %s est d'#39'une classe incorrecte';
  SInvalidTabIndex = 'Index d'#39'onglet hors limites';
  SInvalidTabPosition = 'Position d'#39'onglet incompatible avec le style d'#39'onglet en cours';
  SInvalidTabStyle = 'Style d'#39'onglet incompatible avec la position d'#39'onglet en cours';
  SInvalidBitmap = 'Image de bitmap non valide';
  SInvalidIcon = 'Image d'#39'icône non valide';
  SInvalidMetafile = 'MetaFichier incorrect';
  SInvalidPixelFormat = 'Format de pixel non valide';
  SInvalidImage = 'Image non valide';
  SBitmapEmpty = 'Bitmap vide';

A long time ago, IIRC it was Delphi 5, Borland released a translation repository file for its own localization tool supporting some languages (but not Chinese, though). It still works and can be used as a base for adding more translations, it was a good idea, but as many good ideas in Delphi it was quickly forgotten. IMHO I would not waste time in delivering localized IDE versions, I'd use those resources to deliver a "translation repository" for the RTL/VCL, which would be much more useful.

From my knowledge this DOES NOT exist...either payed of free. You have only the French/German/Japanese versions of the vcl.consts unit. For everything you need to be translated you need to do it by yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM