PARINetwork/pari

Adding ?lang=<ISO 639-1 Code for language> to URL should redirect to the appropriate translation of the article

Ouverte

#339 ouverte le 20 sept. 2018

 (0 commentaire) (0 réaction) (0 personne assignée)Python (10 forks)auto 404
CMSMedium PrioritySEOSmall Workgood first issue

Métriques du dépôt

Stars
 (39 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Consider this example

English article https://ruralindiaonline.org/articles/pathways-to-the-clouds-driven-by-poverty

Hindi translation https://ruralindiaonline.org/articles/%E0%A4%97%E0%A4%B0%E0%A5%80%E0%A4%AC%E0%A5%8B%E0%A4%82-%E0%A4%A6%E0%A5%8D%E0%A4%B5%E0%A4%BE%E0%A4%B0%E0%A4%BE-%E0%A4%AA%E0%A4%B9%E0%A4%BE%E0%A4%A1%E0%A4%BC%E0%A5%8B%E0%A4%82-%E0%A4%AA%E0%A4%B0-%E0%A4%B8%E0%A4%A1%E0%A4%BC%E0%A4%95-%E0%A4%A8%E0%A4%BF%E0%A4%B0%E0%A5%8D%E0%A4%AE%E0%A4%BE%E0%A4%A3

The Hindi translation should also be accessible https://ruralindiaonline.org/articles/pathways-to-the-clouds-driven-by-poverty?lang=hi

If translation does not exist then there should be an appropriate message.

This interaction is very similar to listings e.g. Categories, Author page etc. For example Category: Things we do https://ruralindiaonline.org/stories/categories/things-we-do

Marathi articles of this category are accessible here: https://ruralindiaonline.org/stories/categories/things-we-do?lang=mr

Consider another example. Category Folklore does not have any Mizo articles. Thus the page https://ruralindiaonline.org/stories/categories/folklore?lang=lus has an appropriate message.

Guide contributeur