creativecommons / legaldb

CC Legal Database: curated repository of Case Law and Scholarship data from around the world in a Django based website.
https://LegalDB.CreativeCommons.org/
MIT License
45 stars 69 forks source link

[Bug] Spanish translation for specific template text not displaying #266

Open rypptc opened 1 week ago

rypptc commented 1 week ago

Description

The Spanish translation for specific text on the index.html template (located in legal_db/templates/legal_db/index.html) does not display on the site, despite the .po file containing the correct translation. Other translations on the site are working correctly.

Reproduction

This is evident when navigating to the Spanish version of the home page. The text not translated is the following:

This database includes case law and legal scholarship that relates to Creative Commons legal tools. Please note that the database is not comprehensive, and CC does not necessarily endorse the views of the courts or scholars whose decisions and writings are referenced. The content provided is purely informational, designed for those seeking to better understand the legal ecosystem in which the CC legal tools operate.

Expectation

The specific text in index.html should display in Spanish, as defined in the .po file, when the language is set to Spanish via the dropdown.

Screenshots

image

Environment

Additional context

The .po file for Spanish includes the correct translation, and other text on the site is displaying in Spanish as expected. The issue appears isolated to this specific block of text on index.html.

Resolution

rahulptl165 commented 1 hour ago

Hi, @rypptc I have created pull request for this issue. please review when you are free.

rypptc commented 33 minutes ago

Hi, @rahulptl165 I'm not a maintainer, so I cannot approve or merge a PR. However, I think that the problem may not be related with the blocktrans structure, since it worked fine in my local machine as it was before. There may be another problem related to the compilation process or a caching issue. Let's wait for the review by the maintainers of the project.