Opened 4 years ago
Closed 4 years ago
#18707 closed enhancement (fixed)
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 (9)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Fixed English dialects in TracLanguages.
@Klumbumbus:
For the other issues please find a solution.
follow-up: 4 comment:3 by , 4 years ago
My suggestions
- Revert for Changelog links
- I could try to add an option to suppress the additional text
follow-up: 5 comment:4 by , 4 years ago
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 likewikitr::/Help/WhateverPage
. You could set the default to{t} (анг)
or whatever fits best into Russian pages at TracLanguages.
comment:5 by , 4 years ago
Replying to Bjoeni:
Doesn't that already exist?
Yes. Also found that after reading docs. The description needed some finetuning thought: WikiMacros.
follow-up: 8 comment:7 by , 4 years ago
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?
comment:8 by , 4 years ago
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 usewikitr:{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.
comment:9 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I still don't really see the benefit from using wikitr: for the changelog page links, especially if on day the french or dutch page will no longer be updated we must go back to wiki: links for that language, as in this case we should really better link to the english page than to the translated changelog which misses the last 2 months.
However as the display is fixed and it is working right now I guess we can keep the wikitr: links and close this ticket.
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.