OpenPecha / Pecha.org

New Interfaces for Buddhist Text
https://pecha.org
1 stars 1 forks source link

Remove "int-he" and replace "int-en" with "lang-font" class #271

Open lobsam opened 2 months ago

lobsam commented 2 months ago

Description :

Sefaria has put in place in template file or in react, only two language system (ie; english and hebrew). And adding new languages makes it complicated.

for an example :

                            <span class="int-en">{% trans "Add Source Title" %}</span>
                            <span class="int-he">{% trans "Add Source Title" %}</span>

if pecha.org is switch to english, styled int-he makes hebrew(tibetan) language invisible. But when add new language (eg;chinese) then both strings get shown. and to solve it adding int-zh class would be impossible for adding future languages.

So the only option is to delete the int-he contained line and replace int-en class with lang-font class name. And replace in css int-en class to lang-font so that applied font-family wouldn't get effected.

This would make possible for adding more languages without any issue and remove the two language system from pecha.org.

Implementation steps: