Inherited by SMWLanguageAr, SMWLanguageArz, SMWLanguageDe, SMWLanguageEn, SMWLanguageEs, SMWLanguageFi, SMWLanguageFr, SMWLanguageHe, SMWLanguageId, SMWLanguageIt, SMWLanguageNl, SMWLanguageNo, SMWLanguagePl, SMWLanguagePt, SMWLanguageRu, SMWLanguageSk, SMWLanguageZh_cn, and SMWLanguageZh_tw.
Public Member Functions | |
| __construct () | |
| getNamespaces () | |
| Function that returns an array of namespace identifiers. | |
| getNamespaceAliases () | |
| Function that returns an array of namespace aliases, if any. | |
| getDatatypeLabels () | |
| Return all labels that are available as names for built-in datatypes. | |
| getDatatypeAliases () | |
| Return an array that maps aliases to internal type ids. | |
| getPropertyLabels () | |
| Function that returns the labels for predefined properties. | |
| getPropertyAliases () | |
| Aliases for predefined properties, if any. | |
| getPropertyId ($propName) | |
| Function receives property name (for example, `Modificatino date') and returns property id (for example, `_MDAT'). | |
| getDateFormats () | |
| Function that returns the preferred date formats. | |
| findMonth ($label) | |
| Function looks up a month and returns the corresponding number. | |
| getMonthLabel ($number) | |
| Return the name of the month with the given number. | |
Protected Attributes | |
| $m_DatatypeLabels | |
| $m_DatatypeAliases = array() | |
| $m_SpecialProperties | |
| $m_SpecialPropertyIds | |
| $m_SpecialPropertyAliases = array() | |
| $m_Namespaces | |
| $m_NamespaceAliases = array() | |
| $m_months = array( "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ) | |
| Twelve strings naming the months. | |
| $m_monthsshort = array() | |
| Twelve strings briefly naming the months. | |
| $m_dateformats = array( array( SMW_Y ), array( SMW_MY, SMW_YM ), array( SMW_DMY, SMW_MDY, SMW_YMD, SMW_YDM ) ) | |
| Preferred interpretations for dates with 1, 2, and 3 components. | |
| $m_useEnDefaultAliases = true | |
| Should English default aliases be used in this language? | |
Static Protected Attributes | |
| static | $enNamespaceAliases |
| Default English aliases for namespaces (typically used in all languages). | |
| static | $enDatatypeAliases |
| Default English aliases for namespaces (typically used in all languages). | |
| static | $enPropertyAliases |
| Default English aliases for special property names (typically used in all languages). | |
Definition at line 20 of file SMW_Language.php.
| SMWLanguage::__construct | ( | ) |
Definition at line 90 of file SMW_Language.php.
| SMWLanguage::getNamespaces | ( | ) |
Function that returns an array of namespace identifiers.
Definition at line 102 of file SMW_Language.php.
| SMWLanguage::getNamespaceAliases | ( | ) |
Function that returns an array of namespace aliases, if any.
Definition at line 115 of file SMW_Language.php.
References $enNamespaceAliases.
| SMWLanguage::getDatatypeLabels | ( | ) |
Return all labels that are available as names for built-in datatypes.
Those are the types that users can access via [[has type::...]] (more built-in types may exist for internal purposes but the user won't need to know this). The returned array is indexed by (internal) type ids.
Definition at line 140 of file SMW_Language.php.
| SMWLanguage::getDatatypeAliases | ( | ) |
Return an array that maps aliases to internal type ids.
All ids used here should also have a primary label defined in m_DatatypeLabels.
Definition at line 148 of file SMW_Language.php.
References $enDatatypeAliases.
| SMWLanguage::getPropertyLabels | ( | ) |
Function that returns the labels for predefined properties.
Definition at line 157 of file SMW_Language.php.
| SMWLanguage::getPropertyAliases | ( | ) |
Aliases for predefined properties, if any.
Definition at line 164 of file SMW_Language.php.
References $enPropertyAliases.
| SMWLanguage::getPropertyId | ( | $ | propName | ) |
Function receives property name (for example, `Modificatino date') and returns property id (for example, `_MDAT').
Property name may be localized one. If property name is not recognized, null value returned.
Definition at line 175 of file SMW_Language.php.
References $enPropertyAliases.
| SMWLanguage::getDateFormats | ( | ) |
| SMWLanguage::findMonth | ( | $ | label | ) |
Function looks up a month and returns the corresponding number.
Definition at line 200 of file SMW_Language.php.
| SMWLanguage::getMonthLabel | ( | $ | number | ) |
Return the name of the month with the given number.
Definition at line 215 of file SMW_Language.php.
SMWLanguage::$m_DatatypeLabels [protected] |
Reimplemented in SMWLanguageAr, SMWLanguageArz, SMWLanguageDe, SMWLanguageEn, SMWLanguageEs, SMWLanguageFi, SMWLanguageFr, SMWLanguageHe, SMWLanguageId, SMWLanguageIt, SMWLanguageNl, SMWLanguageNo, SMWLanguagePl, SMWLanguagePt, SMWLanguageRu, SMWLanguageSk, SMWLanguageZh_cn, and SMWLanguageZh_tw.
Definition at line 23 of file SMW_Language.php.
SMWLanguage::$m_DatatypeAliases = array() [protected] |
Reimplemented in SMWLanguageAr, SMWLanguageArz, SMWLanguageDe, SMWLanguageEn, SMWLanguageEs, SMWLanguageFr, SMWLanguageHe, SMWLanguageId, SMWLanguageIt, SMWLanguageNl, SMWLanguageNo, SMWLanguagePl, SMWLanguagePt, SMWLanguageRu, SMWLanguageSk, SMWLanguageZh_cn, and SMWLanguageZh_tw.
Definition at line 24 of file SMW_Language.php.
SMWLanguage::$m_SpecialProperties [protected] |
Reimplemented in SMWLanguageAr, SMWLanguageArz, SMWLanguageDe, SMWLanguageEn, SMWLanguageEs, SMWLanguageFi, SMWLanguageFr, SMWLanguageHe, SMWLanguageId, SMWLanguageIt, SMWLanguageNl, SMWLanguageNo, SMWLanguagePl, SMWLanguagePt, SMWLanguageRu, SMWLanguageSk, SMWLanguageZh_cn, and SMWLanguageZh_tw.
Definition at line 25 of file SMW_Language.php.
SMWLanguage::$m_SpecialPropertyIds [protected] |
Definition at line 26 of file SMW_Language.php.
SMWLanguage::$m_SpecialPropertyAliases = array() [protected] |
Reimplemented in SMWLanguageAr, SMWLanguageArz, SMWLanguageDe, SMWLanguageEn, SMWLanguageEs, SMWLanguageFr, SMWLanguageHe, SMWLanguageId, SMWLanguageIt, SMWLanguageNl, SMWLanguageNo, SMWLanguagePl, SMWLanguagePt, SMWLanguageRu, SMWLanguageSk, SMWLanguageZh_cn, and SMWLanguageZh_tw.
Definition at line 27 of file SMW_Language.php.
SMWLanguage::$m_Namespaces [protected] |
Reimplemented in SMWLanguageAr, SMWLanguageArz, SMWLanguageDe, SMWLanguageEn, SMWLanguageEs, SMWLanguageFi, SMWLanguageFr, SMWLanguageHe, SMWLanguageId, SMWLanguageNl, SMWLanguageNo, SMWLanguagePl, SMWLanguagePt, SMWLanguageRu, SMWLanguageSk, SMWLanguageZh_cn, and SMWLanguageZh_tw.
Definition at line 28 of file SMW_Language.php.
SMWLanguage::$m_NamespaceAliases = array() [protected] |
Definition at line 29 of file SMW_Language.php.
SMWLanguage::$m_months = array( "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ) [protected] |
Twelve strings naming the months.
English is always supported in Type:Date, but we still need the English defaults to ensure that labels are returned by getMonthLabel()
Reimplemented in SMWLanguageAr, SMWLanguageArz, SMWLanguageDe, SMWLanguageEn, SMWLanguageEs, SMWLanguageFi, SMWLanguageFr, SMWLanguageHe, SMWLanguageId, SMWLanguageNl, SMWLanguageNo, SMWLanguagePl, SMWLanguagePt, SMWLanguageRu, SMWLanguageZh_cn, and SMWLanguageZh_tw.
Definition at line 32 of file SMW_Language.php.
SMWLanguage::$m_monthsshort = array() [protected] |
Twelve strings briefly naming the months.
English is always supported in Type:Date, so the default is simply empty (no labels in addition to English)
Reimplemented in SMWLanguageAr, SMWLanguageArz, SMWLanguageDe, SMWLanguageEn, SMWLanguageEs, SMWLanguageFi, SMWLanguageFr, SMWLanguageHe, SMWLanguageId, SMWLanguageNl, SMWLanguageNo, SMWLanguagePl, SMWLanguagePt, and SMWLanguageRu.
Definition at line 35 of file SMW_Language.php.
SMWLanguage::$m_dateformats = array( array( SMW_Y ), array( SMW_MY, SMW_YM ), array( SMW_DMY, SMW_MDY, SMW_YMD, SMW_YDM ) ) [protected] |
Preferred interpretations for dates with 1, 2, and 3 components.
There is an array for each case, and the constants define the obvious order (e.g. SMW_YDM means "first Year, then Day, then Month). Unlisted combinations will not be accepted at all.
Reimplemented in SMWLanguageAr, SMWLanguageArz, SMWLanguageDe, SMWLanguageEn, SMWLanguageEs, SMWLanguageFr, SMWLanguageHe, SMWLanguageId, SMWLanguageNo, SMWLanguagePl, SMWLanguagePt, SMWLanguageRu, SMWLanguageZh_cn, and SMWLanguageZh_tw.
Definition at line 39 of file SMW_Language.php.
SMWLanguage::$m_useEnDefaultAliases = true [protected] |
Should English default aliases be used in this language?
Reimplemented in SMWLanguageEn.
Definition at line 41 of file SMW_Language.php.
SMWLanguage::$enNamespaceAliases [static, protected] |
Initial value:
array(
'Property' => SMW_NS_PROPERTY,
'Property_talk' => SMW_NS_PROPERTY_TALK,
'Type' => SMW_NS_TYPE,
'Type_talk' => SMW_NS_TYPE_TALK,
'Concept' => SMW_NS_CONCEPT,
'Concept_talk' => SMW_NS_CONCEPT_TALK
)
Definition at line 43 of file SMW_Language.php.
Referenced by getNamespaceAliases().
SMWLanguage::$enDatatypeAliases [static, protected] |
Initial value:
array(
'URL' => '_uri',
'Page' => '_wpg',
'String' => '_str',
'Text' => '_txt',
'Code' => '_cod',
'Boolean' => '_boo',
'Number' => '_num',
'Geographic coordinates'=> '_geo',
'Geographic coordinate' => '_geo', // deprecated, see Bug 30990
'Temperature' => '_tem',
'Quantity' => '_qty',
'Date' => '_dat',
'Email' => '_ema',
'Annotation URI' => '_anu',
'Telephone number' => '_tel',
'Record' => '_rec'
)
Definition at line 52 of file SMW_Language.php.
Referenced by getDatatypeAliases().
SMWLanguage::$enPropertyAliases [static, protected] |
Initial value:
array(
'Has type' => '_TYPE',
'Equivalent URI' => '_URI',
'Subproperty of' => '_SUBP',
'Subcategory of' => '_SUBC',
'Display units' => '_UNIT',
'Imported from' => '_IMPO',
'Corresponds to' => '_CONV',
'Provides service' => '_SERV',
'Allows value' => '_PVAL',
'Modification date' => '_MDAT',
'Creation date' => '_CDAT',
'Is a new page' => '_NEWP',
'Last editor is' => '_LEDT',
'Has improper value for' => '_ERRP',
'Has fields' => '_LIST',
'Has subobject' => '_SOBJ',
)
Definition at line 71 of file SMW_Language.php.
Referenced by getPropertyAliases(), and getPropertyId().
1.5.6