# Gramps Master starts in Arabic

**URL:** <https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843>\
**Category:** Development\
**Created:** [July 17, 2023, 9:14pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843 "2023-07-17T21:14:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [July 17, 2023, 9:14pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/1 "2023-07-17T21:14:37Z")

</div>

Did a fresh install of master repository, but Gramps keeps coming up in Arabic on a manjaro linux system.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [July 17, 2023, 10:10pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/2 "2023-07-17T22:10:23Z")

</div>

What are the values of your `LANG` and `LANGUAGE` environment variables?

---

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [July 17, 2023, 10:46pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/3 "2023-07-17T22:46:20Z")

</div>

en\_US.UTF-8 on linux, gramps -v shows Ar.AA.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [July 17, 2023, 11:03pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/4 "2023-07-17T23:03:36Z")

</div>

Which git commit? The commit is in the status bar.

---

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [July 17, 2023, 11:29pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/5 "2023-07-17T23:29:28Z")

</div>

1456d10 is the one I downloaded.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [July 17, 2023, 11:36pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/6 "2023-07-17T23:36:22Z")

</div>

That’s the latest version.

Did you actually install it or are you just running it from the git source?

Did you remember to build it with `python setup.py build`?

---

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [July 18, 2023, 3:33am UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/7 "2023-07-18T03:33:39Z")

</div>

Yes. I then deleted Gramps from system and did manual install of 5.1.6. Worked like a charm. Wiped gramps and did the same thing with master and now I get Resources not found. Reinstalled 5.1.6 and then copied over with master after doing build. Again starts up in Arabic. Closes I can figure is either its me or there is a problem with the locale files as using gramp -v shows language as AR.AA. I’ll work on it again tomorrow.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [August 14, 2023, 9:14pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/8 "2023-08-14T21:14:51Z")

</div>

> [@moorob](#):
>
> en\_US.UTF-8 on linux, gramps -v shows Ar.AA

In what variable is that in your Linux? LANG? Or LC\_TIME?

---

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [August 14, 2023, 9:38pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/9 "2023-08-14T21:38:22Z")

</div>

Fixed itself after a dozen tries.

---

<div class="post-metadata">

**Author:** ![prculley](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/prculley/32/41_2.png) [@prculley](https://gramps.discourse.group/u/prculley)\
**Post date:** [August 15, 2023, 5:14pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/10 "2023-08-15T17:14:24Z")

</div>

[Fix glocale problems on Windows by prculley · Pull Request #1516 · gramps-project/gramps · GitHub](https://github.com/gramps-project/gramps/pull/1516) may fix this.

---

<div class="post-metadata">

**Author:** ![GaryGriffin](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/garygriffin/32/6525_2.png) [@GaryGriffin](https://gramps.discourse.group/u/GaryGriffin)\
**Post date:** [August 15, 2023, 5:03am UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/11 "2023-08-15T05:03:11Z")

</div>

MacOS running Mojave. This is an old iMac (21.5-inch, Late 2013). I downloaded the Intel beta and when it starts it is in Arabic. When I run from command line, it also starts in Arabic. It had the following log info:

> مترجم القرابات العائلية غير متوفر للعة ‘ar’. يتم استعمال ‘الانكليزية’ بدلاً عنه.
> 
> 2023-08-14 19:27:33.727: WARNING: relationship.py: line 2621: مترجم القرابات العائلية غير متوفر للعة ‘ar’. يتم استعمال ‘الانكليزية’ بدلاً عنه.

The relevant env variables in the terminal window are:  
LANG=en\_US.UTF-8

The following files were created in the gramps52 folder (it did not exist before running)

- gramps.ini
- Relationships\_relview.ini
- plugins (directory which is empty)

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [August 15, 2023, 6:13am UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/12 "2023-08-15T06:13:47Z")

</div>

There’s some discussion of the beta starting in Arabic on some systems. The discussion on Language detection became pretty active today. A bit later in the conversation John IDs some long-standing language detection issues.

> <https://github.com/gramps-project/gramps/pull/1444#issuecomment-1677939439>
>
> @Nick-Hall 
> \> @jralls When you are looking at the code, perhaps you could check… why Gramps may start in Arabic instead of US English.
> We have a user reporting this on Manjaro and with LANG set to en\_US.UTF-8.
> 
> They reported
> \> en\_US.UTF-8 on linux, gramps -v shows Ar.AA.
> 
> Maybe, but it didn't report LANG set to Ar.AA, that's not a valid locale. If I run 
> \`\`\`
> LANGUAGE="ar:aa:en" ./Gramps.py -v
> \`\`\`
> gramps -v reports
> \`\`\`
> Environment settings:
> \---------------------
> LANG : ar\_AA.UTF-8
> LANGUAGE : ar:en
> \`\`\`
> Maybe that's what he meant. 
> 
> There is no \`AA\` country code. \`aa\` is the language code for \[Afar\](https://en.wikipedia.org/wiki/Afar\_language). I did install the \`ar\_SA.UTF8\` locale for testing this, and if LANGUAGE is to override LANG (and ISTR deciding to do that 10 or so years ago when I rewrote the locale code so that translations and formats would be consistent) it should be selecting a legit locale from what's available. Making one up won't work and will cause things affected by locale--number and date formats--to fall back to "C". Translations are set correctly and will result in the Gramps GUI being mostly in Arabic. Note that in my environment \`LANG\` and all the \`LC\_FOO\` variables are set to \`en\_US.UTF8\`, just as the user's are.
> 
> Nobody asked the user about the value of \`$LANGUAGE\`.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [August 15, 2023, 12:42pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/13 "2023-08-15T12:42:53Z")

</div>

> <https://github.com/gramps-project/gramps/pull/1444#issuecomment-1678859809>
>
> \> Another 5.2 beta user reports Arabic on macOS: an iMac running Mojave
> 
> My gu…ess is, that you see this when Gramps defaults to the 1st entry (index 0) in the internal language table, which starts with ar. I saw it happen when I messed with the code that processes the LC\_TIME environment variable in Windows.

---

<div class="post-metadata">

**Author:** ![GaryGriffin](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/garygriffin/32/6525_2.png) [@GaryGriffin](https://gramps.discourse.group/u/GaryGriffin)\
**Post date:** [August 15, 2023, 5:03pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/14 "2023-08-15T17:03:11Z")

</div>

More info on beta MacOS failure:

1. I suspect there is no BSDDB support since it is not found (see Databases)
2. Starts in Arabic

Running printenv (culled for relevance) yields:

> PWD=/Users/gary/Desktop/GrampsIntelBeta.app/Contents/MacOS  
> LANG=en\_US.UTF-8

Running beta gramps -v yields:

> ## Gramps Settings:
> 
> gramps : 5.2.0-beta1  
> o.s. : darwin  
> kernel : 18.7.0
> 
> ## Required:
> 
> Python : 3.11.4  
> Gtk++ : 3.24.38  
> pygobject : 3.44.1  
> Cairo : 1.17.8  
> pycairo : 1.24.0  
> Pango : 1.50.14  
> PangoCairo: 1.0
> 
> ## Recommended:
> 
> osmgpsmap : 1.0  
> Graphviz : 8.0.  
> Ghostscr. : 9.21  
> ICU : 3.11.4  
> PyICU : 2.7.2
> 
> ## Optional:
> 
> Gspell : not found  
> RCS : not found  
> PILLOW : 8.2.0  
> GExiv2 : 0.10  
> Exiv2 lib. : not found because exiv2 is not installed  
> geocodeglib: 1.0
> 
> ## Environment settings:
> 
> LANG : ar\_AA.UTF-8  
> LANGUAGE : ar:bg:ca:cs:da:de:de\_AT:el:en  
> GRAMPSI18N: /Users/gary/Desktop/GrampsIntelBeta.app/Contents/Resources/share/locale  
> GRAMPSHOME: not set  
> GRAMPSDIR : /Users/gary/Desktop/GrampsIntelBeta.app/Contents/Resources/lib/python3.1/site-packages/gramps  
> PYTHONPATH:  
> /Users/gary/Desktop/GrampsIntelBeta.app/Contents/Resources/lib/python3.11/site-packages/gramps  
> /Users/gary/Desktop/GrampsIntelBeta.app/Contents/Resources/lib/python3.11  
> /Users/gary/Desktop/GrampsIntelBeta.app/Contents/Resources/lib/python3.11/lib-dynload  
> /Users/gary/Desktop/GrampsIntelBeta.app/Contents/Resources/lib/python3.11/site-packages
> 
> ## System PATH env variable:
> 
> ```
> /Users/gary/Desktop/GrampsIntelBeta.app/Contents/MacOS
> usr/local/mysql/bin
> /Library/Frameworks/Python.framework/Versions/3.5/bin
> /usr/local/bin
> /usr/bin
> /bin
> /usr/sbin
> /sbin
> /Library/TeX/texbin
> /Users/gary/.local/bin
> /Users/gary/bin
> /Applications/GIMP-2.10.app/Contents/MacOS
> 
> ```
> 
> ## Databases:
> 
> bsddb :  
> version : not found  
> db version : not found  
> location : not found  
> sqlite3 :  
> version : 3.24.0  
> py version : 2.6.0

---

<div class="post-metadata">

**Author:** ![prculley](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/prculley/32/41_2.png) [@prculley](https://gramps.discourse.group/u/prculley)\
**Post date:** [August 15, 2023, 5:15pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/15 "2023-08-15T17:15:56Z")

</div>

[Fix glocale problems on Windows by prculley · Pull Request #1516 · gramps-project/gramps · GitHub](https://github.com/gramps-project/gramps/pull/1516) may fix this. Found it on Windows but seems to apply to everything.

---

<div class="post-metadata">

**Author:** ![GaryGriffin](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/garygriffin/32/6525_2.png) [@GaryGriffin](https://gramps.discourse.group/u/GaryGriffin)\
**Post date:** [August 16, 2023, 6:21pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/16 "2023-08-16T18:21:50Z")

</div>

Applied the patch for grampslocale.py and it fixes the Mac version.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [August 28, 2023, 11:37pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/17 "2023-08-28T23:37:28Z")

</div>

Was the patch applied to beta2?

A Gramps for Genealogists Facebook group member just tried the Mac beta2 and an Arabic problem persisted in the Dashboard Gramplet titles for an OS in Italian install.

> [Daniele Cordella](https://www.facebook.com/groups/370692133138445/user/1502352714/? __cft__ %5B0%5D=AZU-jmi76FcwRzBu_7s_vOh_cXUtlJFLGjZk8l60lHbyFGYqcdAUqjPVobVqL77t9sz8KJpx7trvbXGC_KJdyyR6ncq8IbjA8rV9FHCrTGipALeiBOykts31632GG6BMozf4hvDPeEgi9mSReJKxxYbp7_g58uSQtZJbr_8nOYDaEiyDCwepKga8quEJpkbyFlk& __tn__ =R%5D-R)
> 
> [Brian McCullough](https://www.facebook.com/groups/370692133138445/user/100011081207613/? __cft__ %5B0%5D=AZU-jmi76FcwRzBu_7s_vOh_cXUtlJFLGjZk8l60lHbyFGYqcdAUqjPVobVqL77t9sz8KJpx7trvbXGC_KJdyyR6ncq8IbjA8rV9FHCrTGipALeiBOykts31632GG6BMozf4hvDPeEgi9mSReJKxxYbp7_g58uSQtZJbr_8nOYDaEiyDCwepKga8quEJpkbyFlk& __tn__ =R%5D-R): in gramps 5.2 beta2 some lang files are not correctly found.
> 
> I use gramps in italian but attached is the page I see.
> 
> IMHO the text is in arabic, so in the first found lang (starting with ‘A’). This sounds like italian lang file is not found in some cases.  
> ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/3/31e783b48ffaf392672a3592bf0ec8486dde63b6.png)

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 28, 2023, 11:45pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/18 "2023-08-28T23:45:04Z")

</div>

> [@emyoulation](#):
>
> Was the patch applied to beta2?

Yes. It was fixed in 5.2.0-beta2.

Once a gramplet title has been created it won’t automatically change though.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [August 28, 2023, 11:50pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/19 "2023-08-28T23:50:24Z")

</div>

I’ll have to ask if that occurred for them with 5.1.6 version.

They did not mention having tried the beta1. But will have to confirm that.

 

> **Daniele Cordella** Did that happen for you in 5.1.6 too? Or in Beta1 maybe?
> 
> Dashboard gramplets are unique in that you can Relabel them. But once a name is established, it is locked in. And there is no method for changing the language when re-editing the label.
> 
> Could you try closing/removing all gramplets displayed in the Dashboard view, close Gramps, re-open and add the Gramplets back to the Dashboard.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [August 30, 2023, 7:43pm UTC](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843/20 "2023-08-30T19:43:17Z")

</div>

[Daniele Cordella](https://www.facebook.com/groups/370692133138445/user/1502352714/? __cft__ %5B0%5D=AZVWrSZi7EAvLdAYPm0jKSqugUHlNTsOqYmmrQ1kR1P-IqQZyh4CTxue37328cKV8xm6PBT1f97A75jgXjVBTyMhQsrYdZict2aHj3Z5ES-ihVKTAogZyWbYf_gOEsnm_SfA1RibUicE7nvxoUicxNFy& __tn__ =R%5D-R) replies:

> **Brian McCullough**  
> Did that happen for you in 5.1.6 too?

No, 100% no.

> **Brian McCullough**  
> Or in Beta1 maybe?

Beta1 is unusable. I get ALL in arabic.

> **Brian McCullough**  
> Dashboard gramplets are unique in that you can Relabel them. But once a name is established, it is locked in. And there is no method for changing the language when re-editing the label.
> 
> Could you try closing/removing all gramplets displayed in the Dashboard view, close Gramps, re-open and add the Gramplets back to the Dashboard.

Dropping gramplets, closing beta2, running beta2 again and adding gramplets once again the names are correctly displayed in italian.

[Next page](https://gramps.discourse.group/t/gramps-master-starts-in-arabic/3843.md?page=2)
