Page MenuHomePhabricator

Translation of Category namespace in hyw.wp is in Eastern Armenian instead of Western Armenian
Closed, ResolvedPublic

Description

Namespace Category in hywWP mistakely is in Eastern Armenian Կատեգորիա instead of Western Armenian Ստորոգութիւն

REDIRECT also mistakely is in Eastern Armenian ՎԵՐԱՀՂՈՒՄ instead of Western Armenian ՎԵՐԱՅՂՈՒՄ

Event Timeline

@Kareyac: Do you plan to fix this yourself, as you set yourself as assignee? If not, please provide steps to reproduce the problem and links where to see the problem. See https://www.mediawiki.org/wiki/How_to_report_a_bug - thanks!

@Aklapper Im ready to fix myself if know how. Im ready to ask someone else on my name or on name of hywWP community if need.

Ex.

In the caregory https://hyw.wikipedia.org/wiki/%D4%BF%D5%A1%D5%BF%D5%A5%D5%A3%D5%B8%D6%80%D5%AB%D5%A1:%D5%8D%D5%BA%D5%A1%D5%B6%D5%AB%D5%B8%D5%B5_%D6%84%D5%A1%D5%B2%D5%A1%D6%84%D5%B6%D5%A5%D6%80 subtitle is Ստորոգութիւն but the category namespace is Կատեգորիա. The upper category in the page visually begins with Ստորոգութիւն but leads to the catecory beginning with Կատեգորիա (actual namespase). The correct translation of "category" was suggested by MediaWiki:Edittools https://hyw.wikipedia.org/wiki/MediaWiki:Edittools but never worked. Look at the page beginning with Ստորոգութիւն: Ստորոգութիւն:Զգուշացման եւ տեղեկացման կաղապարներ https://hyw.wikipedia.org/wiki/%D5%8D%D5%BF%D5%B8%D6%80%D5%B8%D5%A3%D5%B8%D6%82%D5%A9%D5%AB%D6%82%D5%B6:%D4%B6%D5%A3%D5%B8%D6%82%D5%B7%D5%A1%D6%81%D5%B4%D5%A1%D5%B6_%D5%A5%D6%82_%D5%BF%D5%A5%D5%B2%D5%A5%D5%AF%D5%A1%D6%81%D5%B4%D5%A1%D5%B6_%D5%AF%D5%A1%D5%B2%D5%A1%D5%BA%D5%A1%D6%80%D5%B6%D5%A5%D6%80

Aklapper renamed this task from Category namespace in hywWP to Translation of Category namespace in hyw.wp is in Eastern Armenian instead of Western Armenian.Aug 2 2019, 12:35 PM
Aklapper updated the task description. (Show Details)

Thanks! If I understand correctly, then the translation of Category namespace on hyw.wp is in Eastern Armenian (hy) but it should be in Western Armenian (hyw).

Existing translations in MediaWiki itself are:

$:acko\> grep -r Կատեգորիա .
./languages/i18n/hy.json:	"pagecategories": "{{PLURAL:$1|Կատեգորիա|Կատեգորիաներ}}",
./languages/i18n/hy.json:	"nstab-category": "Կատեգորիա",
./languages/i18n/hy.json:	"upload-form-label-infoform-categories": "Կատեգորիաներ",
./languages/i18n/hy.json:	"randomincategory-category": "Կատեգորիա:",
./languages/i18n/hy.json:	"randomincategory-legend": "Կատեգորիայի պատահական էջ",
./languages/i18n/hy.json:	"mostlinkedcategories": "Կատեգորիաներ, որոնց շատ են հղվում",
./languages/i18n/hy.json:	"categories": "Կատեգորիաներ",
./languages/messages/MessagesHy.php:	NS_CATEGORY         => 'Կատեգորիա',
./languages/messages/MessagesHy.php:	NS_CATEGORY_TALK    => 'Կատեգորիայի_քննարկում',
./languages/messages/MessagesHy.php:	'Categories'                => [ 'Կատեգորիաները' ],
$:acko\> grep -r Ստորոգութիւն .
./languages/i18n/hyw.json:	"pagecategories": "{{PLURAL:$1|Ստորոգութիւն|Ստորոգութիւններ}}",
./languages/i18n/hyw.json:	"nstab-category": "Ստորոգութիւն",
./languages/i18n/hyw.json:	"randomincategory-category": "Ստորոգութիւն:",
./languages/i18n/hyw.json:	"categories": "Ստորոգութիւններ",
$:acko\> grep -r ՎԵՐԱՀՂՈՒՄ .
./languages/messages/MessagesHy.php:	'redirect'                  => [ '0', '#ՎԵՐԱՀՂՈՒՄ', '#REDIRECT' ],
$:acko\> grep -r ՎԵՐԱՅՂՈՒՄ .

NS_CATEGORYand #REDIRECT are not translated for hyw. (In general, you can improve hyw translations for words in quotation marks (") at https://translatewiki.net , but stuff like NS_CATEGORY and 'redirect' probably need a classic patch. See https://www.mediawiki.org/wiki/Gerrit/Tutorial

(Looking at https://phabricator.wikimedia.org/source/mediawiki/browse/master/languages/messages/MessagesHyw.php , it defines hy as a fallback language for hyw, so the current behavior is expected when there is no translation for hyw.)

Thanks!

I'm taking steps in translatewiki . Let's wait for their server update.

@Aklapper All necessary translations are made.

I'm not developer in MediaWiki. Can I ask you to make the patch for NS_CATEGORY and #REDIRECT?

@Kareyac: Sorry, I don't have time for this but please feel free to give it a try - You do not have to be a developer in MediaWiki. Follow https://www.mediawiki.org/wiki/Gerrit/Tutorial and clone the mediawiki/core repository, then edit the file languages/messages/MessagesHyw.php accordingly. Looking at other translation files in that folder will give you a hint.

Change 532089 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/core@master] languages: Add NS_CATEGORY and #REDIRECT for hyw

https://gerrit.wikimedia.org/r/532089

Change 532089 merged by jenkins-bot:
[mediawiki/core@master] languages: Add NS_CATEGORY and #REDIRECT for hyw

https://gerrit.wikimedia.org/r/532089

Aklapper reassigned this task from Kareyac to Ladsgroup.

As the patch in Gerrit has been merged, I assume that this task is fixed.