Page MenuHomePhabricator

Update home page text to include number of languages
Closed, ResolvedPublic

Description

The big sentence on the homepage could be more inviting to users if it specified that the library has content in multiple languages.

We could update the sentence from:

Over 90 of the world's top subscription-only databases, free for Wikipedians of all backgrounds

To:

Over 90 of the world's top subscription-only databases, with content in X languages, free for Wikipedians of all backgrounds

Where X is the total number of unique languages selected across our available resources.

Event Timeline

Ankit18gupta added a subscriber: Ankit18gupta.

Hi @Samwalton9 ,
I will be working on this task. Can you please tell me how to access X?

Hi @Ankit18gupta. You should be able to count the results of a queryset to count the number of unique languages for all Available partners.

Hi @Ankit18gupta. You should be able to count the results of a queryset to count the number of unique languages for all Available partners.

Could you also guide me to the target file? Since when I tried to search on my own I got many files containing this message in this folder.

@Ankit18gupta: Hi, do you plan to rework the patch?

Yes. I needed some guidance on how to proceed further in my PR. I was just waiting for the same.

(Why is this on Github and not in Gerrit, sigh...)

Hello @Ankit18gupta ,

To solve this issue, you will need to add a new context_data key/value pair, just like you added one in PR #956. The template variable you added does not exist anywhere, that is why you have to add it to get_context_data (https://github.com/WikipediaLibrary/TWLight/blob/master/TWLight/views.py#L34).

Hope this helps!

Hi @Ankit18gupta! How are you doing with this ticket? Do you need any additional help, or are you not available to work on this?

Hi @Ankit18gupta! How are you doing with this ticket? Do you need any additional help, or are you not available to work on this?

Hi @Scardenasmolinar , right now I am not available to work on this as I am out of town. I have also unassigned myself. Further, when I will be back to work, and if I find this issue still open I will be willing to work on this but till then you can assign it to someone else.