<div dir="rtl"><div dir="ltr">I'm really happy that this is brought up.<br><br></div><div dir="ltr">We have a similar issue in ContentTranslation, where we have to say things like "Translate this article from __________" ( <a href="https://phabricator.wikimedia.org/T105588">https://phabricator.wikimedia.org/T105588</a> ). In English it doesn't look like a problem, because you can simply put a language name in the space and it will be correct, but in Russian and in many other languages every language name will have a different ending according to the Russian grammar. It's not easily predictable if you want to cover all the words in a language, but since the number of language names in the world is fairly limited (in practice - less than one thousand), a few lines of code can resolve it.<br></div><div dir="ltr"><br>As a pet project I started implementing a solution for something like this that would allow doing this in Russian:<br><a href="https://gerrit.wikimedia.org/r/#/c/172501/">https://gerrit.wikimedia.org/r/#/c/172501/</a><br><br></div><div dir="ltr">I also made a simplistic extension called "TestLanguageNameGrammar" that should help translators see how the different language names appear with the different grammar rules. After some cleanup it hope to get it deployed on <a href="http://translatewiki.net">translatewiki.net</a> for the translators' benefit.<br></div><div dir="ltr"><br></div><div dir="ltr">Once it's merged it will be possible to do it in all MediaWiki-based software, and similar patches will have to be written for other languages by people who know these languages.<br></div><div dir="ltr"><br></div><div dir="ltr">Niklas suggested doing it with less code and more data (see the comments on the patch), but it's generally conceivable.<br><br></div><div dir="ltr">Erik, until we have a nice solution (hopefully soon, once I get that patch merged), please<br>1. just take the translated names from CLDR<br>2. create a bug similar to <a href="https://phabricator.wikimedia.org/T105588">https://phabricator.wikimedia.org/T105588</a> for your project, and list the relevant message there<br><br></div><div dir="ltr">For names of projects like "Wikipedia", "Wikisource", etc., you should use the WikimediaMessages extension. It can also be used to write grammar rules for project names if needed (see the file WikimediaGrammarForms.php there; it is maintained according to community feedback and usually shouldn't directly bother extension developers very much, but it's useful to be familiar with it).<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>--<br>Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי<br><a href="http://aharoni.wordpress.com" target="_blank">http://aharoni.wordpress.com</a><br>‪“We're living in pieces,<br>I want to live in peace.” – T. Moore‬</div></div>
<br><div class="gmail_quote"><div dir="ltr">2015-09-16 1:34 GMT+03:00 Erik Bernhardson <span dir="ltr"><<a href="mailto:ebernhardson@wikimedia.org" target="_blank">ebernhardson@wikimedia.org</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Within search we are moving forward with cross-wiki searching. <div><br></div><div><br></div><div>This means if you go to <a href="http://de.wikipedia.org" target="_blank">de.wikipedia.org</a> and search for ''Ревест-Сен-Мартен" we should show a message like:</div><div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>No results found on the German Wikipedia</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>Showing results from the Russian Wikipedia</div></blockquote><br></div></div><div>Except of course, it should be (beware machine translation):</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>Keine Ergebnisse auf dem deutschen Wikipedia gefunden</div></div><div><div>Zeige Ergebnis aus der russischen Wikipedia</div></div></blockquote><div><br></div>So somehow, we have to map from a wiki id (ruwiki, enwiki, dewiki, etc) to a localized (not for that wiki, for every other wiki in all languages) version of that project name. How can we go about this?<br><div><br></div></div>
<br>_______________________________________________<br>
Mediawiki-i18n mailing list<br>
<a href="mailto:Mediawiki-i18n@lists.wikimedia.org">Mediawiki-i18n@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n" rel="noreferrer" target="_blank">https://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n</a><br>
<br></blockquote></div><br></div>