Add Persian Language to Taiga

183 views
Skip to first unread message

Vahid

unread,
Apr 20, 2018, 2:12:53 AM4/20/18
to taigaio
Hi

i translated taiga back&front to Persian language (Farsi). i followed bellow steps to add it to taiga:

 - add locales to front (dist/locales/locale-<LANG_CODE>.json)
 - add locales to back (taiga/locale/<LANG_CODE>/LC_MESSAGES/django.po) and generate .mo file
 - enabled the new language in taiga-back/settings/common.py

now i have persian in language menu (profile edit page). but if i choose فارسی it load strings without translation (check screenshots)

whats the problem? encoding?!
2018-04-20_10-32-02.png
2018-04-20_10-33-27.png
2018-04-20_10-36-30.png
2018-04-20_10-37-04.png

Vahid

unread,
Apr 20, 2018, 7:08:55 PM4/20/18
to taigaio
Hi again, 

now it load persian strings. but i have many internal error in my browser. and also menu and pages dont work correct (even i cant change language!) . after change "fa" folder in /home/taiga/taiga-back/taiga/locale pages and function worked and i could change language to english again. maybe my .mo version have problem or maybe it have problem with my encoding.

i generete mo file with this softwate: https://poedit.net ,and i change encoding of .po and .mo to UTF-8-BOM

can you guide me is it correct or if not how can i do it?

also i see in common.py in /home/taiga/taiga-back/settings a line which it seems very useful for my language:

# Languages using BiDi (right-to-left) layout
LANGUAGES_BIDI
= ["he", "ar", "fa", "ur"]

but do you sure it work correct in taiga? i did not see any change in style after choose my rtl language.

Vahid

unread,
Apr 22, 2018, 2:42:45 PM4/22/18
to taigaio
is there anybody to help?!


On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:

Miguel González Álvarez

unread,
Apr 26, 2018, 4:04:42 AM4/26/18
to Vahid, taigaio
Hello Vahid!

Thank you very much for your work and sorry for the delay on my reply.  We were busy preparing for a new release. I will take a look today in order to add fa-IR to taiga.

Just a quick question, are Transifex translations up to date?

Regards!

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/b9ab78d0-cd32-4cde-a809-7c227c29e2cb%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Miguel González

Vahid

unread,
Apr 29, 2018, 9:03:14 AM4/29/18
to taigaio
Hi again

sorry Miguel. i was in travel. and your short answer:

YES. its 100% complete. (but i want to review it again in near future for better and clear translation)

and long answer according to my issue:

i tried to make .mo again and i did not change encoding of it. so it work now. change language work correct and after it all menu and function work without problem with persian strings.

but there is a minor problem yet. as you see in attach screenshot, i see many error in browser console. it seems it have problem with one character in persian. but i dont know its about what string which i can recheck it and solve issue.

also BIDI feature dont wok and after choose persian language, template have LTR style yet.

if there is any quastion i will answer it very soon now.

thank you


On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:
2018-04-29_17-08-44.png

Vahid

unread,
May 4, 2018, 4:39:39 AM5/4/18
to taigaio
why you check topics very late or why you dont answer to my issue ?


On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:

Miguel González Álvarez

unread,
May 4, 2018, 10:55:16 AM5/4/18
to Vahid, taigaio
Sorry Vahid.

The reason why we don't answer is that we need to look into the issue in more detail because it's been harder than we thought.


Vahid

unread,
May 4, 2018, 10:58:32 AM5/4/18
to taigaio
Thank you for answer Miguel. is there any detiles which i send for you to help solving this issue? or maybe you need my server detiles for direct check. please tell me if you need anything from me


On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:

Miguel González Álvarez

unread,
May 4, 2018, 11:02:46 AM5/4/18
to taigaio
Thank you very much Vahid for your support. We will contact you if we need anything more details.



--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Miguel González

Miguel González Álvarez

unread,
May 7, 2018, 3:44:06 PM5/7/18
to taigaio
Hello again Vahid.

We almost have Persian support! We only need to translate again 7 strings. Those problematic strings have a special format to allow pluralization. Take a look at this example:

This is the original string:

```
        "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
```

To translate this string, you only have to translate MESSAGE_ONE and MESSAGE_MANY: {var, plural, one{MESAGE_ONE} other{MESSAGE_MANY}}.

In this case something like this:

```
        "DISCOVER_SUBTITLE": "{projects, plural, one{... تک ...} other{# ...بسیاری...}}",
```

So, please, go to the Transifex project, review the missing translations and we will add them to Taiga.




Thank you!

--
Miguel González

Vahid

unread,
May 10, 2018, 1:42:21 PM5/10/18
to taigaio
Hi again Miguel

Sorry for late. i was sick this week. Thank you for your follow-up and support. i translated all remain strings according your guide. please check it again and ley me know if there need any other action's.

On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:

Vahid

unread,
May 16, 2018, 8:26:34 PM5/16/18
to taigaio
Hi,

whats new news? is there any other problem with persian string yet? do you test BIDI function for RTL style too?


On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:

Vahid

unread,
May 22, 2018, 11:46:02 PM5/22/18
to taigaio
Hi

Do you add persian language to new version of taiga? i upgraded my taiga to latest version (3.3.x) . now if i choose persian language (فارسی) in my profile, it dont load any string and show untranslated strings (see attached screenshot)


On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:
2018-05-23_08-12-32.jpg

Vahid

unread,
May 23, 2018, 12:04:11 AM5/23/18
to taigaio
Hi again

i re-upload locale-fa.json and now persian language is ok without error in browser console. so now we need to test another feature : BIDI

i see in common.py in /home/taiga/taiga-back/settings a line which it seems very useful for my language:

# Languages using BiDi (right-to-left) layout
LANGUAGES_BIDI 
= ["he", "ar", "fa", "ur"]

but do you sure it work correct in taiga? i did not see any change in style after choose my rtl language.

On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:

Miguel González Álvarez

unread,
May 23, 2018, 3:20:27 AM5/23/18
to Vahid, taigaio
The upcoming 3.3.4 patch release will include the up-to-date translation.

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Miguel González

Vahid

unread,
May 25, 2018, 6:56:55 AM5/25/18
to taigaio
Thank you Miguel , and can you explain BIDI Function? it must detect RTL language automatically and load RTL style for them, yes? is it work for you? 


On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:

Miguel González Álvarez

unread,
May 25, 2018, 12:39:03 PM5/25/18
to Vahid, taigaio
Hi Vahid.

I have to say it's very difficult to me to know if RTL is working properly.

To clarify, what do you see in https://tree.taiga.io when you activate فارسی‏ in https://tree.taiga.io/user-settings/user-profile? Is RTL style correct?

Best regards!

Vahid

unread,
May 25, 2018, 1:13:33 PM5/25/18
to taigaio
Hi Miguel.

RTL Style is Mirror of LTR Style. all elements in left side must go to right and All in Right side Must go to Left and also Text string must use RTL format too. you can see my exprience of فارسی language on tree.taiga.io in attached screenshot. as you see i dont see any change in theme style after change language to persian. for example, in a RTL view, left side menu (section which i named A) must go to section which i marked with B (and all other elements with same way). I hope you understand me.

On Friday, April 20, 2018 at 10:42:53 AM UTC+4:30, Vahid wrote:
2018-05-25_21-30-05.jpg

David Barragán

unread,
May 25, 2018, 2:59:19 PM5/25/18
to Vahid, taigaio
Hi Vahid, 

only one aclaration about this settings.

LANGUAGES_BIDI = ["he", "ar", "fa", "ur"]

this is related to the backend (django framework) so nothing change in the frontend of taiga. Right now there is nothing implemented to apply BIDI in taiga interface, only in the text editor where you can click over the RTL icon.
 

Regards

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+unsubscribe@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7
Reply all
Reply to author
Forward
0 new messages