BennyLauth / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

add English namespace strings as global aliases for any locale #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since an SVN commit from 2012-10-19, the image URL parsing got broken in some 
cases. By the way: The version was changed from 3.0.20 to 3.1.01 on 2012-10-19 
and 3.0.20 were never released. Is it possible to release the state from 
2012-10-18 as 3.0.20 decrease the waiting time for 3.1.01?

Parsing result till 2012-10-18 (correct):

<div>
    <a class="image" href="File:Waterberg_Nashorn1.jpg" title="Breitmaulnash?rner in Namibia"><img src="Waterberg_Nashorn1.jpg" alt="Breitmaulnash?rner in Namibia" width="150" /></a>
</div>
...

Parsing result since 2012-10-19 (wrong):

<div>
    <a href="File:Waterberg Nashorn1.jpg|150px|" id="w">Breitmaulnash?rner in Namibia</a>
</div>
...

Wiki source:

<?xml version="1.0"?><api><query><normalized><n 
from="Wikipedia:Hauptseite/Artikel_des_Tages/Samstag" 
to="Wikipedia:Hauptseite/Artikel des Tages/Samstag" /></normalized><pages><page 
pageid="964898" ns="4" title="Wikipedia:Hauptseite/Artikel des 
Tages/Samstag"><revisions><rev 
xml:space="preserve">{{Shortcut|WP:ADTSA}}{{Wikipedia:Hauptseite/Artikel des 
Tages/Bearbeitungshinweise}}
                &lt;onlyinclude&gt;{{AdT-Vorschlag
                |DATUM            = 01.09.2012
                |LEMMA            = Nashörner
                |BILD             = File:Waterberg Nashorn1.jpg
                |BILDGROESSE      = 150px
                |BILDUMRANDUNG    = 
                |BILDBESCHREIBUNG = Breitmaulnashörner in Namibia
                |TEASERTEXT       = Die '''[[Nashörner]]''' (Rhinocerotidae) oder auch '''Rhinozerosse''' zählen zu den markantesten Säugetieren mit ihrem großen Kopf und den namengebenden ein bis zwei Hörnern. Heute gibt es noch fünf Arten, die zur Familie der Unpaarhufer (Perissodactyla) gehören. Das Breitmaul- und das Spitzmaulnashorn lebt in Afrika mit einem Bestand von etwa 25.000 Tieren. Die drei asiatischen Arten sind stark gefährdet und werden auf nur noch 3.500 Tiere geschätzt. Ein Nashorn kommt auf ein Gewicht von 500 bis 3.600 kg, ist bis zu 45 km/h (12,5 m/s) schnell und übertrifft damit knapp menschliche Spitzensportler. Im Lauf kann es abrupt die Richtung wechseln. Sie sind scheue Tiere, die menschliche Nähe meiden. Die Familie der Nashörner war eine der vielfältigsten und erfolgreichsten in der Geschichte der Säugetiere. In ihrer 50&amp;nbsp;Millionen Jahre langen Entwicklungsgeschichte war sie über weite Teile Eurasiens, Afrikas und Nordamerikas verbreitet. Ihr Niedergang begann vor rund 6 bis 5&amp;nbsp;Millionen Jahren in Verbindung mit klimatischen und damit einhergehenden Landschaftsveränderungen, die zum Aussterben der nordamerikanischen sowie zahlreicher weiterer Nashornvertreter im ursprünglichen Verbreitungsgebiet führten.}}&lt;/onlyinclude&gt;
                [[Kategorie:Wikipedia:Hauptseite/Artikel des Tages|Samstag]]</rev></revisions></page></pages></query></api>

Original issue reported on code.google.com by sven.strohschein@googlemail.com on 9 Nov 2012 at 9:58

GoogleCodeExporter commented 9 years ago
The 3.0.x development was moved to another SVN branch.
See:
  http://code.google.com/p/gwtwiki/wiki/Development
  http://code.google.com/p/gwtwiki/wiki/ReleaseNotes

The 3.1 trunk will contain API changes in the future.

Original comment by axelclk@gmail.com on 10 Nov 2012 at 10:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
that was because I reset the localised namespaces to the ones of MediaWiki but 
apparently, "File" and "Image" are aliases for any language (probably all 
English namespace strings - I need to investigate further) - these 2 are fixed 
in r8222 at least for the 3.1 branch (in trunk)

Original comment by nico.kru...@googlemail.com on 12 Nov 2012 at 1:31

GoogleCodeExporter commented 9 years ago
Hi,

Thank you. I have switched to the 3.0 branch, where the error doesn't exist. 
But of course it should still get fixed for the trunk version. :-)

Original comment by sven.strohschein@googlemail.com on 12 Nov 2012 at 2:39

GoogleCodeExporter commented 9 years ago
actually, the error also exists in 3.0 if you use a German locale since the 
English "File" alias is not set there either...
a fix is on the way though

Original comment by nico.kru...@googlemail.com on 12 Nov 2012 at 2:41

GoogleCodeExporter commented 9 years ago
committed r8224 which should fix this for 3.0

Original comment by nico.kru...@googlemail.com on 12 Nov 2012 at 2:53

GoogleCodeExporter commented 9 years ago
committed r8227 for 3.1

Original comment by nico.kru...@googlemail.com on 12 Nov 2012 at 3:05

GoogleCodeExporter commented 9 years ago

Original comment by nico.kru...@googlemail.com on 12 Nov 2012 at 3:07