Page MenuHomePhabricator

Create aliases for Romanian namespaces
Closed, ResolvedPublic

Description

contains the number of the impacted namespace and the name with the new diacritics

In preparation for a future change of the diacritics at the Romanian Wikipedia, we would like to request a change of the namespaces by replacing the old signs (ţ, ş) with the new ones (ț, ș). For compatibilty reasons, we would also like to keep the old names as aliases, in order to allow correct links until the change is fully implemented.

I'm attaching two csv files:

  • orig_namespaces.csv - contains the number of the impacted namespace and the name with the new diacritics. It should be used to put the default values
  • alias_namespaces.csv - contains the number of the impacted namespace and the name with the old diacritics.It should be used to define aliases.

The discussion about this change takes place at http://ro.wikipedia.org/wiki/Discu%C5%A3ie_Wikipedia:Corectarea_diacriticelor#Caractere_corecte_.C5.9Fi_anun.C5.A3 (in Romanian)


Version: unspecified
Severity: major

Attached:

Details

Reference
bz22616

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:04 PM
bzimport set Reference to bz22616.

Created attachment 7159
contains the number of the impacted namespace and the name with the old diacritics

Attached:

I want to add that I know that translations will probably be made through translatewiki.net, but we need those aliases before changing the translation.

(In reply to comment #2)

I want to add that I know that translations will probably be made through
translatewiki.net, but we need those aliases before changing the translation.

The custom namespaces (numbers 100 and higher) have to be translated in the wiki config, the built-in namespaces (numbers below 100) have to be translated at TranslateWiki.

Summary of the attached hard-to-open-because-of-the-MIME-type CSV files:

Rename the following custom namespaces, leaving the old names as aliases:
101: Discuție Portal -> Discuţie Portal
103: Discuție Proiec -> Discuţie Proiect

Create the following aliases once the translated namespace names have been added at TranslateWiki and pushed to the live site:

1: Discuție
3: Discuție Utilizator
5: Discuție Wikipedia
6: Fișier
7: Discuție Fișier
9: Discuție MediaWiki
11: Discuție Format
13: Discuție Ajutor
15: Discuție Categorie

Why create the aliases AFTER the translations have been pushed to the live site? This would mean breaking all the internal links to those namespaces for a while.

(In reply to comment #4)

Why create the aliases AFTER the translations have been pushed to the live
site? This would mean breaking all the internal links to those namespaces for a
while.

*Together* with pushing them, my mistake. I believe adding the (currently unnecessary) aliases now should also work.

Create the following aliases once the translated namespace names have been
added at TranslateWiki and pushed to the live site:

1: Discuție
3: Discuție Utilizator
5: Discuție Wikipedia
6: Fișier
7: Discuție Fișier
9: Discuție MediaWiki
11: Discuție Format
13: Discuție Ajutor
15: Discuție Categorie

You got it the other way around. These are the correct diacritics, they should be pushed in translatewiki. We need aliases using the old diacritics:

1: Discuţie
3: Discuţie Utilizator
5: Discuţie Wikipedia
6: Fişier
7: Discuţie Fişier
9: Discuţie MediaWiki
11: Discuţie Format
13: Discuţie Ajutor
15: Discuţie Categorie

Hi,

I'm bringing this bug back to attention hoping that someone will find the time to solve it. We have reached an agreement to pass to the correct diacritics at the Romanian Wikipedia and this is blocking all the other efforts.

Thanks.

jeluf wrote:

Did you already switch to the new diacritics? The aliases can't be set up as long as the namespaces still have the old name, the alias and the name would be identical.

If you're referring to the changes in TranslateWiki, we haven't done it yet. Still, as I said above, the way to do it without breaking functionality should be by first creating the aliases and THEN pushing changes to the live site. Is there a technical problem preventing the alias from being identical to the original?

gutzas wrote:

Seems like a summary is in order, so here.

The community at ro.wiki has decided in principle to migrate to the new diacritics, per Unicode 3.0 (see OP). Several namespaces use the affected characters (see comment 3).

And with that, allow me to introduce the vicious circle:

  • We can't start by using the new diacritics in the Wiki pages, because that would break all links to the respective namespaces, since they don't yet exist.
  • We can't start by changing the names of the namespaces in TranslateWiki, because that would break all links to the respective namespaces, since the ones currently referenced in the Wiki pages would cease to exist.

Hence the need for namespace aliases. Now that you understand the problem, what solution would you suggest?

jeluf wrote:

The two changes should be done at the same time.

I still don't see the reasons for this, but so be it. Let's say I do the changes in translatewiki tomorrow (EET), could you take care of both the translation push and the creation of aliases?

A TranslateWiki export will also add aliases for the old names. After you make the change in TranslateWiki, we can ask Siebrand to export the namespace names and deploy it after he's done that.

Core namespace names committed in r66591.

(In reply to comment #15)

Core namespace names committed in r66591.

Deployed.

jeluf wrote:

The following discussion pages couldn't be moved automatically. Please check them manually. They have been moved to "{{{original name}}}--DUP":

... 371075 (1,"Imagine:Sibiuphoto.jpg") -> (7,"Sibiuphoto.jpg") [[Discuție Fișier:Sibiuphoto.jpg]]
... * cannot resolve automatically; page exists with ID 276138 *
... * old title Sibiuphoto.jpg
...
* new title Sibiuphoto.jpg--DUP
... * using suffixed form [[Discuție Fișier:Sibiuphoto.jpg--DUP]] *
... resolving on page...
ok.
... 162877 (1,"Format:Revoluţionari_români_la_1848") -> (11,"Revoluţionari_români_la_1848") [[Discuție Format:Revoluţionari români la 1848]]
... * cannot resolve automatically; page exists with ID 177414 *
... * old title Revoluţionari_români_la_1848
...
* new title Revoluţionari_români_la_1848--DUP
... * using suffixed form [[Discuție Format:Revoluţionari români la 1848--DUP]] *
... resolving on page...
ok.
... 54302 (1,"Portal:Economie") -> (101,"Economie") [[Discuţie Portal:Economie]]
... * cannot resolve automatically; page exists with ID 39576 *
... * old title Economie
...
* new title Economie--DUP
... * using suffixed form [[Discuţie Portal:Economie--DUP]] *
... resolving on page...
ok.

I'm reopening this bug because the custom namespaces were not changes. These are "Discuție Proiect" and "Discuție Portal". Right now, this is a serious problem, as there is no uniformity between all the namespaces.

jeluf wrote:

Done.

Index: InitialiseSettings.php

  • InitialiseSettings.php (revision 863)

+++ InitialiseSettings.php (working copy)
@@ -2095,6 +2095,10 @@

   'Discussão_Em_tradução' => 109,
   'Discussão_em_tradução' => 109,      
),

+ 'rowiki' => array(
+ 'Discuţie_Portal' => 101,
+ 'Discuţie_Proiect'=> 103,
+ ),

'rowikibooks' => array(
	'Wikibooks' => NS_PROJECT,
	'Discuţie_Wikibooks' => NS_PROJECT_TALK,

@@ -3653,9 +3657,9 @@

),
'rowiki' => array( 
	100 => 'Portal',
  • 101 => 'Discuţie_Portal',

+ 101 => 'Discuție_Portal',

	102 => 'Proiect',
  • 103 => 'Discuţie_Proiect',

+ 103 => 'Discuție_Proiect',

),
'ruwiki' => array( 100 => 'Портал', 101 => 'Обсуждение_портала' ),
'scnwiki' => array(