Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / playonlinux / 0001-fix-locale.patch
blob2ae1a17ca8b9fbee9ff23364fd63b77ddf9eab77
1 diff --git a/python/lib/lng.py b/python/lib/lng.py
2 index a390d920..00c3527e 100755
3 --- a/python/lib/lng.py
4 +++ b/python/lib/lng.py
5 @@ -12,11 +12,7 @@ class Lang(object):
7 class iLang(object):
8 def __init__(self):
9 - if(os.environ["DEBIAN_PACKAGE"] == "TRUE"):
10 - languages = os.listdir('/usr/share/locale')
11 - else:
12 - languages = os.listdir(Variables.playonlinux_env+'/lang/locale')
14 + languages = os.listdir('@out@/share/playonlinux/lang/locale')
15 if(os.environ["POL_OS"] == "Mac"):
16 wxLocale = wx.Locale().FindLanguageInfo(os.environ["RLANG"])