Current configuration on the wiki
This is a follow-up to Ib6a0afa5c3736f8b9b2e121cd752c53ee50fad75 The PHP logic for grammatical cases in Russian was growing. It was too long and not reusable is JavaScript. This patch moves all the logic to a JSON file, indexed by the grammatical case name and then by regular expressions that match the different word classes, with the values being the replacements that should be compatible with common regular expression replacement functions in modern programming languages. This patch doesn't introduce any functional changes and doesn't change any tests. The next steps, not necessarily in this order, are: * Make it work also with JavaScript. * Make JSON grammar data files loadable with ResourceLoader. * Convert most or all grammar rules for all the languages to JSON. * Make the data processing loop generic for all languages. * Convert it also in jquery.i18n (Milkshake). * Convert the test cases data from code to generic data. * Move the JSON data to a separate reusable repository. Change-Id: I0e8e1bfb9d3ec9f841f733356af32dad7d130e94 |
||
|---|---|---|
| cache | ||
| docs | ||
| extensions | ||
| images | ||
| includes | ||
| languages | ||
| maintenance | ||
| mw-config | ||
| resources | ||
| serialized | ||
| skins | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .gitreview | ||
| .jscsrc | ||
| .jshintignore | ||
| .jshintrc | ||
| .mailmap | ||
| .rubocop.yml | ||
| .travis.yml | ||
| api.php | ||
| api.php5 | ||
| autoload.php | ||
| composer.json | ||
| COPYING | ||
| CREDITS | ||
| FAQ | ||
| Gemfile | ||
| Gemfile.lock | ||
| Gruntfile.js | ||
| HISTORY | ||
| img_auth.php | ||
| img_auth.php5 | ||
| index.php | ||
| index.php5 | ||
| INSTALL | ||
| jsduck.json | ||
| load.php | ||
| load.php5 | ||
| opensearch_desc.php | ||
| opensearch_desc.php5 | ||
| package.json | ||
| phpcs.xml | ||
| profileinfo.php | ||
| profileinfo.php5 | ||
| README | ||
| README.mediawiki | ||
| RELEASE-NOTES-1.26 | ||
| StartProfiler.sample | ||
| thumb.php | ||
| thumb.php5 | ||
| thumb_handler.php | ||
| thumb_handler.php5 | ||
| UPGRADE | ||
| wiki.phtml | ||
== MediaWiki == MediaWiki is a free and open-source wiki software package written in PHP. It serves as the platform for Wikipedia and the other projects of the Wikimedia Foundation, which deliver content in over 280 languages to more than half a billion people each month. MediaWiki's reliability and robust feature set have earned it a large and vibrant community of third-party users and developers. MediaWiki is: * feature-rich and extensible, both on-wiki and with hundreds of extensions; * scalable and suitable for both small and large sites; * simple to install, working on most hardware/software combinations; and * available in your language. For system requirements, installation, and upgrade details, see the files RELEASE-NOTES, INSTALL, and UPGRADE. * Ready to get started? ** https://www.mediawiki.org/wiki/Download * Looking for the technical manual? ** https://www.mediawiki.org/wiki/Manual:Contents * Seeking help from a person? ** https://www.mediawiki.org/wiki/Communication * Looking to file a bug report or a feature request? ** https://bugs.mediawiki.org/ * Interested in helping out? ** https://www.mediawiki.org/wiki/How_to_contribute MediaWiki is the result of global collaboration and cooperation. The CREDITS file lists technical contributors to the project. The COPYING file explains MediaWiki's copyright and license (GNU General Public License, version 2 or later). Many thanks to the Wikimedia community for testing and suggestions.