Page MenuHomePhabricator

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


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

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


Related Gerrit Patches:

Event Timeline

Kareyac created this task.Aug 2 2019, 11:25 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 2 2019, 11:25 AM

@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 - 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.


In the caregory 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 but never worked. Look at the page beginning with Ստորոգութիւն: Ստորոգութիւն:Զգուշացման եւ տեղեկացման կաղապարներ

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 , but stuff like NS_CATEGORY and 'redirect' probably need a classic patch. See

(Looking at , it defines hy as a fallback language for hyw, so the current behavior is expected when there is no translation for hyw.)


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?

Aklapper added a comment.EditedAug 10 2019, 1:42 PM

@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 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

Xelgen added a subscriber: Xelgen.Aug 30 2019, 11:02 AM

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

Aklapper closed this task as Resolved.Wed, Mar 25, 2:25 PM
Aklapper reassigned this task from Kareyac to Ladsgroup.

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

Restricted Application added a project: User-Ladsgroup. · View Herald TranscriptWed, Mar 25, 2:25 PM
Maintenance_bot moved this task from Incoming to Done on the User-Ladsgroup board.Wed, Mar 25, 3:15 PM