Page MenuHomePhabricator

Investigate how Linter works on translatable pages
Closed, ResolvedPublic

Description

E.g. https://www.mediawiki.org/w/index.php?title=Extension:Babel&action=edit&lintid=1102

mysql:wikiadmin@db1077 [mediawikiwiki]> select * from linter where linter_id=1102;
+-----------+-------------+------------+--------------+------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| linter_id | linter_page | linter_cat | linter_start | linter_end | linter_params                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
+-----------+-------------+------------+--------------+------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|      1102 |       26386 |          2 |         6515 |       7684 | {"name":"tt","templateInfo":{"name":"Multi-part-template: {\"name\":\"translate\",\"attrs\":{},\"body\":{\"extsrc\":\"\\n<!--T:73-->\\nThis makes it easier to use babel with other userboxes.\\n\\n== Configuration == <!--T:23-->\\n\\n<!--T:24-->\\nBabel has six configuration variables which can be modified in <tvar|ls><code>{{ll|Manual:LocalSettings.php|LocalSettings.php}}</code></>.\\n\\n<!--T:25-->\\n; <tvar|var><code>$wgBabelLanguageCodesCdb</code></> : (string) the path of the language code database file, the default should suffice.\\n\\n<!--T:26-->\\n; <tvar|var><code>$wgBabelLanguageNamesCdb</code></> : (string) the path of the language name database file, the default should suffice.\\n\\n<!--T:27-->\\n; <tvar|var><code>$wgBabelCategoryNames</code></> : (array of string or boolean, indexed by the strings \\\"1\\\", \\\"2\\\", … \\\"5\\\", \\\"N\\\") where each entry is the name of a category for the skill level indicated by its index, possible variable elements are: <tvar|1><tt>%code%</tt></> (language code), <tvar|2><tt>%wikiname%</tt></> (the name of the language in the wiki's content language), and <tvar|3><tt>%nativename%</tt></> (the name of the language in its language). To disable adding a category for a particular level, set the corresponding value to false.\\n\\n<!--T:28-->\\n: For example:\\n\"}}"}} |
+-----------+-------------+------------+--------------+------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

Not sure what's going on with the templateInfo stuff.