Unit PasDoc_Languages

Description

PasDoc language definitions and translations.

Overview

Classes, Interfaces, Objects and Records

Name Description
Record TLanguageRecord  
Class TPasDocLanguages Language class to hold all translated strings

Functions and Procedures

function LanguageFromIndex(i: integer): string;
function LanguageFromID(i: TLanguageID): string;
function SyntaxFromIndex(i: integer): string;
function SyntaxFromID(i: TLanguageID): string;
function IDfromLanguage(const s: string): TLanguageID;
function Translation(id: TTranslationID; lang: TLanguageID): string;
function LanguageFromStr(S: string; out LanguageId: TLanguageID): boolean;
function LanguageDescriptor(id: TLanguageID): PLanguageRecord;
function LanguageCode(const Language: TLanguageID): string;

Types

TLanguageID = (...);
TTranslationID = (...);
RTransTable = array[TTranslationID] of string;
PTransTable = ˆRTransTable;
PLanguageRecord = ˆTLanguageRecord;

Constants

DEFAULT_LANGUAGE = lgEnglish;
lgDefault = lgEnglish;

Description

Functions and Procedures

function LanguageFromIndex(i: integer): string;

Full language name

function LanguageFromID(i: TLanguageID): string;
 
function SyntaxFromIndex(i: integer): string;

Language abbreviation

function SyntaxFromID(i: TLanguageID): string;
 
function IDfromLanguage(const s: string): TLanguageID;

Search for language by short or long name

function Translation(id: TTranslationID; lang: TLanguageID): string;

Manual translation of id into lang

function LanguageFromStr(S: string; out LanguageId: TLanguageID): boolean;

Find a language with Syntax = S (case ignored). Returns True and sets LanguageId if found, otherwise returns False.

function LanguageDescriptor(id: TLanguageID): PLanguageRecord;

access LANGUAGE_ARRAY

function LanguageCode(const Language: TLanguageID): string;

Language code, using an official standardardized language names, suitable for Aspell or HTML.

Types

TLanguageID = (...);

An enumeration type of all supported languages

Values
  • lgBosnian
  • lgBrazilian_1252
  • lgBrazilian_utf8
  • lgBulgarian
  • lgCatalan
  • lgChinese_gb2312
  • lgCroatian
  • lgDanish
  • lgDutch
  • lgEnglish
  • lgFrench_ISO_8859_15
  • lgFrench_UTF_8
  • lgGerman_ISO_8859_15
  • lgGerman_UTF_8
  • lgIndonesian
  • lgItalian
  • lgJavanese
  • lgPolish_CP1250
  • lgPolish_ISO_8859_2
  • lgRussian_1251
  • lgRussian_utf8
  • lgRussian_866
  • lgRussian_koi8
  • lgSlovak
  • lgSpanish
  • lgSwedish
  • lgHungarian_1250
  • lgCzech_CP1250
  • lgCzech_ISO_8859_2
TTranslationID = (...);

An enumeration type of all static output texts. Warning: count and order changed!

Values
  • trNoTrans: no translation ID assigned, so far
  • trLanguage: the language name (English, ASCII), e.g. for file names.
  • trUnits: map
  • trClassHierarchy
  • trCio
  • trNestedCR
  • trNestedTypes
  • trIdentifiers
  • trGvUses
  • trGvClasses
  • trClasses: tables and members
  • trClass
  • trDispInterface
  • trInterface
  • trObjects
  • trObject
  • trRecord
  • trPacked
  • trHierarchy
  • trFields
  • trMethods
  • trProperties
  • trLibrary
  • trPackage
  • trProgram
  • trUnit
  • trUses
  • trConstants
  • trFunctionsAndProcedures
  • trTypes
  • trType
  • trVariables
  • trAuthors
  • trAuthor
  • trCreated
  • trLastModified
  • trSubroutine
  • trParameters
  • trReturns
  • trExceptionsRaised
  • trExceptions
  • trException
  • trEnum
  • trVisibility: visibilities
  • trPrivate
  • trStrictPrivate
  • trProtected
  • trStrictProtected
  • trPublic
  • trPublished
  • trAutomated
  • trImplicit
  • trDeprecated: hints
  • trPlatformSpecific
  • trLibrarySpecific
  • trExperimental
  • trOverview: headings
  • trIntroduction
  • trConclusion
  • trEnclosingClass
  • trHeadlineCio
  • trHeadlineConstants
  • trHeadlineFunctionsAndProcedures
  • trHeadlineIdentifiers
  • trHeadlineTypes
  • trHeadlineUnits
  • trHeadlineVariables
  • trSummaryCio
  • trDeclaration: column headings
  • trDescription: as column OR section heading!
  • trDescriptions: section heading for detailed descriptions
  • trName
  • trValues
  • trNone: empty tables
  • trNoCIOs
  • trNoCIOsForHierarchy
  • trNoTypes
  • trNoVariables
  • trNoConstants
  • trNoFunctions
  • trNoIdentifiers
  • trHelp: misc
  • trLegend
  • trMarker
  • trWarningOverwrite
  • trWarning
  • trGeneratedBy
  • trGeneratedOn
  • trOnDateTime
  • trSearch
  • trSeeAlso
  • trNested
  • trAttributes: add more here
  • trDummy
RTransTable = array[TTranslationID] of string;

array holding the translated strings, or empty for default (English) text.

PTransTable = ˆRTransTable;
 
PLanguageRecord = ˆTLanguageRecord;

language descriptor

Constants

DEFAULT_LANGUAGE = lgEnglish;
 
lgDefault = lgEnglish;
 

Authors

  • Johannes Berg <johannes AT sipsolutions.de>
  • Ralf Junker <delphi AT zeitungsjunge.de>
  • Andrew Andreev <andrew AT alteragate.net> (Bulgarian translation)
  • Alexander Lisnevsky <alisnevsky AT yandex.ru> (Russian translation)
  • Hendy Irawan <ceefour AT gauldong.net> (Indonesian and Javanese translation)
  • Ivan Montes Velencoso (Catalan and Spanish translations)
  • Javi (Spanish translation)
  • Jean Dit Bailleul (Frensh translation)
  • Marc Weustinks (Dutch translation)
  • Martin Hansen <mh AT geus.dk> (Danish translation)
  • Michele Bersini <michele.bersini AT smartit.it> (Italian translation)
  • Peter Simkovic <simkovic_jr AT manal.sk> (Slovak translation)
  • Peter Th_rnqvist <pt AT timemetrics.se> (Swedish translation)
  • Rodrigo Urubatan Ferreira Jardim <rodrigo AT netscape.net> (Brasilian translation)
  • Alexandre da Silva <simpsomboy AT gmail.com> (Brasilian translation - Update)
  • Alexsander da Rosa <alex AT rednaxel.com> (Brasilian translation - UTF8)
  • Vitaly Kovalenko <v_l_kovalenko AT alsy.by> (Russian translation)
  • Grzegorz Skoczylas <gskoczylas AT rekord.pl> (corrected Polish translation)
  • Jonas Gergo <jonas.gergo AT ch...> (Hungarian translation)
  • Michalis Kamburelis
  • Ascanio Pressato (Some Italian translation)
  • JBarbero Quiter (updated Spanish translation)
  • Liu Chuanjun <1000copy AT gmail.com> (Chinese gb2312 translation)
  • Liu Da <xmacmail AT gmail.com> (Chinese gb2312 translation)
  • DoDi
  • Rene Mihula <rene.mihula@gmail.com> (Czech translation)
  • Yann Merignac (French translation)
  • Arno Garrels <first name.name@nospamgmx.de>

Generated by PasDoc 0.15.0.