linuxfr.org icon indicating copy to clipboard operation
linuxfr.org copied to clipboard

bookmarks and links in news: replace flags with language description in French

Open Trim opened this issue 3 years ago • 2 comments

As discussed in these two suivis:

  • https://linuxfr.org/suivi/affichage-de-la-langue-des-liens
  • https://linuxfr.org/suivi/les-langues-ne-devraient-pas-etre-indiquees-avec-des-drapeaux-de-pays

For links in news, it adds French language description before the hit counter if Language is not French.

For bookmarks, it does the same and it removes too the useless <ul> HTML tag and directly set content with the link and the French language description.

Trim avatar Feb 28 '21 23:02 Trim

I've just seen there's a little thing to adjust: when we add a link in the redaction, the text "en allemand" is only shown after a page reload. That's not blocking, but I think I'll have time today to fix it.

Trim avatar Mar 01 '21 07:03 Trim

I've just seen there's a little thing to adjust: when we add a link in the redaction, the text "en allemand" is only shown after a page reload. That's not blocking, but I think I'll have time today to fix it.

Ok, I've just made changes on the CoffeeScript side, it works on my development environment, but it's first time I create a new .coffee file and use sprocks.

I've tried to run rails assets:precompile to ensure the import are well ordered on my development env, but I could have missed some things else ?

Trim avatar Mar 01 '21 15:03 Trim