Semantic MediaWiki and related extensions
README

It provides "local" language functions independent of MediaWiki that are required by Semantic MediaWiki and its registration system.

JSON format

The location of the content files is determined by the $smwgExtraneousLanguageFileDir setting.

Field definitions

Example

{
    "fallback_language": false,
    "datatype": {
        "labels":{
            "_wpg": "Page"
        },
        "aliases":{
            "Page": "_wpg"
        }
    },
    "property": {
        "labels":{
            "_TYPE": "Has type"
        },
        "aliases": {
            "Has type": "_TYPE"
        }
    },
    "namespaces": {
        "labels":{
            "SMW_NS_PROPERTY": "Property"
        },
        "aliases": {
            "Property": "SMW_NS_PROPERTY"
        }
    },
    "date":{
        "precision": {
            "SMW_PREC_YMDTZ": "H:i:s T, j F Y"
        },
        "format": [
            [
                "SMW_Y"
            ]
        ],
        "months": [
            [
                "January",
                "Jan"
            ]
        ]
        "days":[
            [
                "Monday",
                "Mon"
            ]
        ]
    }
}

Technical notes

SMW
├─ LocalLanguage            # interface to the language functions
├─ JsonContentsFileReader   # access the contents of a JSON file
└─ FallbackFinder       # resolving a fallback language

About | General disclaimer | Privacy policy