Page MenuHomePhabricator

Add MessagesSco.php
Closed, ResolvedPublic

Description

The languages/i18n/sco.json exists since April, 1 2014 and we even have a wiki https://sco.wikipedia.org/ without the corresponding MessagesSco.php.

At least the following should be initially added:

$namespaceNames = [
	NS_MEDIA            => 'Media',
	NS_SPECIAL          => 'Special',
	NS_MAIN             => '',
	NS_TALK             => 'Talk',
	NS_USER             => 'User',
	NS_USER_TALK        => 'User_talk',
	# NS_PROJECT set by $wgMetaNamespace
	NS_PROJECT_TALK     => '$1_talk',
	NS_FILE             => 'File',
	NS_FILE_TALK        => 'File_talk',
	NS_MEDIAWIKI        => 'MediaWiki',
	NS_MEDIAWIKI_TALK   => 'MediaWiki_talk',
	NS_TEMPLATE         => 'Template',
	NS_TEMPLATE_TALK    => 'Template_talk',
	NS_HELP             => 'Help',
	NS_HELP_TALK        => 'Help_talk',
	NS_CATEGORY         => 'Category',
	NS_CATEGORY_TALK    => 'Category_talk',
];

Also:

/** Only if the namespaces do vary between genders */
$namespaceGenderAliases = [
	NS_USER => [ 'male' => '', 'female' => '' ],
	NS_USER_TALK => [ 'male' => '', 'female' => '' ],
];

You could also add any other stuff that is listed at MessagesEn.php should you wish to also translate aliases, special page names, etc. You could see MessagesEs.php as an example or whichever other file you'd like to use.

@jrbs You have self-identified as a speaker with proficiency of Scots. Could you please at least try to translate the $namespaceNames or ask somebody with knowledge of Scots to provide them to us?

Thank you!

Event Timeline

MarcoAurelio created this task.

Given that the wiki does exist already and does have links to non-core namespaces (ie: Wikipedia); note-to-self to remember to add those as aliases for scowiki on InitialiseSettings.

Sure, I can get some translations, but will need to be next week to make way for other work. (Please do feel free to ping then.)

I'm not sure I know the translations for some of these, but I do know that "User" needs to be "Uiser".

Because Scots is primarily a spoken (not written) language, translations vary from place to place. It's also hard to really have a direct translation for a lot of these since the words just aren't used in spoken Scots. In any case, based on how the wiki already translates these, here's what I imagine they should be:

$namespaceNames = [
	NS_MEDIA            => 'Media',
	NS_SPECIAL          => 'Special',
	NS_MAIN             => '',
	NS_TALK             => 'Collogue',
	NS_USER             => 'Uiser',
	NS_USER_TALK        => 'Uiser_collogue',
	# NS_PROJECT set by $wgMetaNamespace
	NS_PROJECT_TALK     => '$1_collogue',
	NS_FILE             => 'File',
	NS_FILE_TALK        => 'File_collogue',
	NS_MEDIAWIKI        => 'MediaWiki',
	NS_MEDIAWIKI_TALK   => 'MediaWiki_collogue',
	NS_TEMPLATE         => 'Template',
	NS_TEMPLATE_TALK    => 'Template_collogue',
	NS_HELP             => 'Help',
	NS_HELP_TALK        => 'Help_collogue',
	NS_CATEGORY         => 'Category',
	NS_CATEGORY_TALK    => 'Category_collogue',
];

Edit: "Categories" is sometimes spelled "Categeries" but I'm not sure that's actually accurate Scots.

Thanks for the translations @jrbs

I've found, for example that User, according to http://www.dsl.ac.uk/entry/dost/usar should be Usar?

Collogue is recognized by the dictionary.

Special can also be Spetial.

Cannot find Template or Category.

I'll upload a patch nonetheless and mark it as WIP so it can be amended as needed.

Change 452582 had a related patch set uploaded (by MarcoAurelio; owner: MarcoAurelio):
[mediawiki/core@master] [WIP] Add MessagesSco.php

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

I've found, for example that User, according to http://www.dsl.ac.uk/entry/dost/usar should be Usar?

@AmaryllisGardener Good morning. What's your opinion on this one? Should the file use Uiser or Usar? Thank you.

I've found, for example that User, according to http://www.dsl.ac.uk/entry/dost/usar should be Usar?

@AmaryllisGardener Good morning. What's your opinion on this one? Should the file use Uiser or Usar? Thank you.

"Uiser" is already used throughout the interface on scowiki. But happy to hear their thoughts as well.

That's it. I'm happy to keep it, add it as alias or use one or another. Just asking to those who know :-)

Change 454339 had a related patch set uploaded (by MarcoAurelio; owner: MarcoAurelio):
[mediawiki/core@master] [WIP] Add MessagesBi.php

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

MarcoAurelio lowered the priority of this task from Medium to Low.Aug 21 2018, 7:29 PM

Change 452582 merged by jenkins-bot:
[mediawiki/core@master] Add MessagesSco.php

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

MarcoAurelio removed a project: Patch-For-Review.

It'll take a while until the changes appear on scowiki though. If urgent, we can cherry-pick to wmf.22 now but maybe we can let the MediaWiki train take care of all of this for us :)