class Language - jcobban/Genealogy GitHub Wiki
Up: Object-Oriented Access to Database Records
This class is derived from Record to implement the logical interface to a record in the Language table (Languages). Each entry in this table contains the description of a Language.
Fields
This record presents the following fields:
name | description | synonyms |
---|---|---|
'code639_1' | ISO 639-1 two character language code | 'code' |
'code639_2' | ISO 639-2 three character language code | 'code' |
'name' | name, the English exonym | |
'nativename' | native name or endonym | |
'article' | article | 'the' |
'possessive' | possessive | 'of' |
'conjunction' | conjunction | |
'dateprefix' | date prefix | |
'sorry' | A sentence which apologises for not being able to present the current page in the user's preferred language. This happens if a template for that language or dialect has not been implemented. Note that the actual name of the language in this sentence should be replaced by $nativename . This is to permit replacing that token with a country-qualified native name when it is displayed to the user. For example if this instance of Language was created using the code 'es-MX' then $nativename is replaced by "Español(México)". |
Table of Contents
- new Language($parms)
- $language->get($fieldname)
- $language->getName()
- $language->getNativeName()
- $language->getCountry()
- $language->getSorry()
- Language::validateLang($lang, $langtext)
Next: class LegacyHeader