Last modified: 2014-11-17 10:35:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36760, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34760 - CLDR doesn't build pt files correctly
CLDR doesn't build pt files correctly
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CLDR (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n, testme
: 35487 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-27 20:26 UTC by Sam Reed (reedy)
Modified: 2014-11-17 10:35 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2012-02-27 20:26:10 UTC
Spun off form bug 34219

It would seem for cases like PT, there is a base language file, and then some variant (is that the right word?) overrides for PT itself, and for pt-br

Not using the base pt.xml means that the Language name list for Portuguese is very sparse in it's entries, as it only contains the "overrides", not including the base data

It wouldn't surprise me if this is also the case for other languages


(In reply to comment #6)
> (In reply to comment #3)
> > For your information, the language names are taken from CLDR, which contains
> > relatively few language names for Portuguese:
> > http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/cldr/CldrNames/CldrNamesPt.php?view=markup
> 
> I downloaded the core.zip file from CLDR and inside common/main, the pt.xml
> file contains more than 500 language names. It's possible that you're probably
> using just the pt-PT.xml, which seems to just contain the exceptions to the
> base pt.xml file.

(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #3)
> > > For your information, the language names are taken from CLDR, which contains
> > > relatively few language names for Portuguese:
> > > http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/cldr/CldrNames/CldrNamesPt.php?view=markup
> > 
> > I downloaded the core.zip file from CLDR and inside common/main, the pt.xml
> > file contains more than 500 language names. It's possible that you're probably
> > using just the pt-PT.xml, which seems to just contain the exceptions to the
> > base pt.xml file.
> 
> Similar looks to be for pt-br
> 
> It would seem that cldr doesn't honour fallbacks then... ie It should pull in
> pt.xml, and then overwrite any duplicate keys with from the pt-pt file to
> CldrNamesPt.php and pt-br file to CldrNamesPt_br.php
Comment 1 Sam Reed (reedy) 2012-02-27 20:29:37 UTC
Or seemingly the pt-pt hack works for pt-br (1074 lines in the file), but doesn't for vanilla pt (191 lines in file)

# hack to get pt-pt too
$languages['pt-pt'] = 'Foo';
Comment 2 Niklas Laxström 2012-02-28 07:05:27 UTC
This should have been fixed when I make the fallback chains of pt and pt-br include each other. CLDR definitely follows fallbacks but the meaning of plain pt code in MediaWiki and CLDR is different.
Comment 3 Siebrand Mazeland 2012-03-26 16:29:28 UTC
*** Bug 35487 has been marked as a duplicate of this bug. ***
Comment 4 Siebrand Mazeland 2013-02-26 08:52:14 UTC
Is this still an issue?
Comment 5 Andre Klapper 2013-03-20 14:35:07 UTC
malafaya: Is this still an issue?
Comment 6 Malafaya 2013-03-20 17:36:18 UTC
For pt (CldrNamesPt.php), yes. It doesn't include for example 'en' (English) and 'sv' (Swedish). on the other hand, pt-br (CldrNamesPt_br.php) seems quite complete. Maybe the fallback is the other way around?
Comment 7 Nemo 2013-03-20 18:22:47 UTC
(In reply to comment #6)
> For pt (CldrNamesPt.php), yes. It doesn't include for example 'en' (English)
> and 'sv' (Swedish). on the other hand, pt-br (CldrNamesPt_br.php) seems quite
> complete. Maybe the fallback is the other way around?

pt and pt-br both fall back to each other on MediaWiki, see https://commons.wikimedia.org/wiki/File:MediaWiki_fallback_chains.png
That said, I've no idea if it matters. :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links