MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Repository_management",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "5855899": {
                "pageid": 5855899,
                "ns": 0,
                "title": "Renaming language codes",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{Warning|This page hasn't documented the process for splitting mixed-variant language codes.}}\n\nSometimes incorrect language code has been made available for translation which should be changed to a new one due to new knowledge. This page contains tips and instructions how to do such moves to ensure smooth transitions. This page assumes we are renaming <code>src</code> to <code>tgt</code>.\n\n== Prepare the target software ==\nThe target software should be able to redirect old language codes to new ones. In case of MediaWiki, there is <code>LanguageCode::$deprecatedLanguageCodeMapping</code>. <code>languages/messages/MessagesSrc.php</code> must have <code>$fallback = 'tgt';</code> and <code>languages/messages/MessagesTgt.php</code> should have <code>$fallback = 'src';</code>. Also all languages having <code>src</code> in their fallback chain should be updated to include <code>tgt</code> as well. These can be removed once move is over.\n\n== Prevent concurrent translation updates ==\nTo avoid unexpected processing of translation updates during move, run the following command when using <code>bash</code> shell to take an exclusive translation synchronization lock. Don't forget the dot at the beginning, otherwise the lock will not be held.\n<syntaxhighlight lang=bash>\n. /home/betawiki/config/bin/synclock\n</syntaxhighlight>\n\nThis lock will be held for duration of the session, e.g. until you exit <code>screen</code> where you used it, or log out from the ssh session if you took the lock outside of it.\n\n== Perform rename on repos ==\n\nFor each project, using mediawiki as an example.\n\nUpdate checkout:\n\n<pre>\nl10n-bot repomulti update mediawiki\n</pre>\n\nDo renames:\n<pre>\nphp /srv/mediawiki/targets/production/extensions/Translate/scripts/export-rename-language.php --group=core --target=. --source-language src --target-language tgt\n# Check matches\n</pre>\n\nVerify:\n<pre>\nrepomulti status mediawiki\n</pre>\n\nCommit:\n<pre>\nrepomulti commit mediawiki\n</pre>\n\n== Perform rename on wiki ==\n<pre>\ncd /srv/mediawiki/targets/productions/extensions/ReplaceText/maintenance\n# Get list of namespaces:\nphp replaceAll.php --listns\n# Preview\nphp replaceAll.php --dry-run --ns 8,9,1206,1207 --regex --rename '/src$' '/tgt'\n# Do it, 646 is FuzzyBot\nphp replaceAll.php --ns 8,9,1206,1207 --regex --rename --user 646 --yes --summary=\"Your summary here\" '/src$' '/tgt'\n</pre>\n\nThis will take a while.\n\n== Release translation synchronization lock ==\nThe lock will prevent all translation exports and imports, so it is important to release it after you have completed by closing any screens and logging out of the ssh session.\n\n== Verify and cleanup ==\n\nAfter this and repo updates are finished and merged, you can run <code>autoimport</code> or <code>autoimport-mediawiki</code> \u2013 there shouldn't be any changes but something might have got out of sync over time that shows up now.\n\nFinally the caches may need to be purged if didn't happen automatically:\n<pre>\n# Review\nfind /resources/caches/translatewiki.net -name \"src.cdb\"\n# Just Do It\nfind /resources/caches/translatewiki.net -name \"src.cdb\" -delete\n</pre>\n\nYou want to restrict this to only relevant groups in case the language code is also used in other projects where it was not renamed by changing the path to <code>/resources/caches/translatewiki.net/translate_groupcache-''message group id''</code>\n\n== See also ==\n* [[Translating:MediaWiki/New languages]]\n* [[Language support team]]\n\n[[Category:Help]]\n[[Category:Management]]\n[[Category:Languages]]"
                    }
                ]
            }
        }
    }
}