Search Translations is a search tool that empower translators to search for messages they want to translate. Without the search tool, translators would have to browse through all the messages. This project aims at making translations consistent between translators and saving their time.
The tool offers an important missing feature, cross language search to search and translate messages from one language into another. Translators often want to check how a specific term was translated in a certain language across the project. They can switch the results to the translations of said messages, for instance to find the existing, missing or outdated translations of a certain term.
If you have a wiki and you want your wiki's interface to be translated into, say French, then go to Special:SearchTranslations, perform search queries and you will get the messages you want to translate to. For example, suppose you want to translate all messages with 'install' to French, but you do not know how the word has been translated into French, then you can lookup other translations for the word in French to see how the word was translated in French. You can then switch the tab to find all the untranslated messages for the word and translate it and therefore maintain consistency between translations. Moreover, you can also find all the outdated messages and update them. Without this tool, the above mentioned workflow would have been difficult. This tool makes the process from searching to editing translations easy.
The tool is available at the special page called Special:SearchTranslations. After performing a search, the results are categorized into four columns: translations in the language along with translated messages, untranslated messages and outdated messages matching the query in the source language respectively. There are language and group/subgroup filters to narrow down the search results. To select a filter just click on the link and to clear a filter, you can either re-click on the selected filters or reclick the items in the selected box at the top-left corner of the page.
This tool also optimizes your search by intelligently trying to predict what search options you may want to use in your search. You can search with wildcard (*) at the end of the string to get the messages containing the prefix. Search can also be performed with message keys. By default, the tool searches for any word in the query, but when there are many results retrieved, it also provides you with an option to get results for all the words in the query. If the case-sensitive checbox is selected, then the tool will perform case sensitive queries.
Finally, the above can also be done through inline searching. You can use various search operators like language and group to get filtered results prior to the search, in one click.
**Demo server link**
- Gerrit: [[ https://gerrit.wikimedia.org/r/#/q/project:mediawiki/extensions/Translate+owner:%22Phoenix303+%253Cdivyalife526%2540gmail.com%253E%22,p,003699e600035a87 | link ]]
- Phabricator: #Translation-search
- Github: [[ https://github.com/wikimedia/mediawiki-extensions-Translate | link ]]
**Resource which can make contributing to this project easier for newcomers**
- For anyone who wants to get involved in this project understanding the [[ https://www.mediawiki.org/wiki/Help:Extension:Translate/Components | components ]] of the Translate extension like Translation Memory, Message collection, Message groups, Message handle, Message index can be really helpful.
- This feature is not enabled by default and requires [[ https://www.mediawiki.org/wiki/Help:Extension:Translate/Configuration | configuration ]]. It is built on [[ https://www.elastic.co/ | ElasticSearch ]], so make sure to install it.
The project has been completed and thanks to my mentors @Nikerabbit and @Nemo_bis for helping me throughtout the project from the setup to the designing of user interface. During the project, I had some difficult time assessing the requirements but as I had more discussions with the mentors not only did I submit the patches but also they were reviewed and merged to production.