Modify

Opened 5 days ago

Last modified 4 days ago

#18707 new enhancement

wikitr: hide (en) label for links from en_GB and en_AU (MOTD)

Reported by: Bjoeni Owned by: stoecker
Priority: normal Milestone:
Component: Trac Version:
Keywords: Cc: stoecker, skyper

Description

See for example the Australian version https://josm.openstreetmap.de/wiki/En_AU:StartupPage, that page was recently updated with wikitr: links.

All links only exist in "normal" en (=en_US in our case) which means every link has the label "(en)" even though both source and target page are english, just different locales.
I'd suggest hiding that label when the language is the same (not just for english, even though that seems to be the only language with multiple locales in use at the moment, but also for cases like de_DE, de_AT, de_CH etc.)

Related:

Attachments (0)

Change History (8)

comment:1 Changed 5 days ago by Klumbumbus

I too don't like the wikitr links on the startup page as the links look ugly in JOSM and we have currently only 2 tralslations anyway.

comment:2 Changed 5 days ago by stoecker

Fixed English dialects in TracLanguages.

@Klumbumbus:
For the other issues please find a solution.

comment:3 Changed 5 days ago by stoecker

My suggestions

  • Revert for Changelog links
  • I could try to add an option to suppress the additional text

comment:4 in reply to:  3 ; Changed 5 days ago by Bjoeni

Thanks! That was quick!

Replying to stoecker:

My suggestions

  • Revert for Changelog links
  • I could try to add an option to suppress the additional text

Doesn't that already exist?
ticket:15994#comment:16

Maybe. Symbol doesn't really matter for me. The main thing is to have some sign that the linked page is not in my language, but in base langugage.

That is default for wikitr: now and can be configured at TracLanguages for each language. Default is {t} ({c}) which leads to appending " (en)". To strip it when unwanted in special cases use an empty spec like wikitr::/Help/WhateverPage. You could set the default to {t} (анг) or whatever fits best into Russian pages at TracLanguages.

comment:5 in reply to:  4 Changed 5 days ago by stoecker

Replying to Bjoeni:

Doesn't that already exist?

Yes. Also found that after reading docs. The description needed some finetuning thought: WikiMacros.

Last edited 5 days ago by stoecker (previous) (diff)

comment:6 Changed 5 days ago by stoecker

So the additional colon should be enough to fix the ugly links.

comment:7 Changed 4 days ago by Bjoeni

Updated the wikitr: links in the news section
https://josm.openstreetmap.de/wiki/StartupPageSource?action=diff&version=2694
However double colon didn't work, so I had to use wikitr:{t}: (double colon was replacing the link text as well and hiding the link).
Might even be better since it won't get lost in translation that easily.

Do you want to modify the macro to make it work or leave it as is?

Last edited 4 days ago by Bjoeni (previous) (diff)

comment:8 in reply to:  7 Changed 4 days ago by stoecker

Replying to Bjoeni:

Updated the wikitr: links in the news section
https://josm.openstreetmap.de/wiki/StartupPageSource?action=diff&version=2694
However double colon didn't work, so I had to use wikitr:{t}: (double colon was replacing the link text as well and hiding the link).
Might even be better since it won't get lost in translation that easily.

Do you want to modify the macro to make it work or leave it as is?

Fixed.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain stoecker.
as The resolution will be set.
to The owner will be changed from stoecker to the specified user.
The owner will change to Bjoeni
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from stoecker to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.