From dae9befefcd7c22598be718f09c0ecc2b6970141 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 25 Sep 2019 15:49:11 -0300 Subject: [PATCH] fix: aur dist --- aur/panel_entry.py | 3 ++- aur/tray_entry.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/aur/panel_entry.py b/aur/panel_entry.py index 4f29f4eb..54cbca25 100644 --- a/aur/panel_entry.py +++ b/aur/panel_entry.py @@ -3,7 +3,8 @@ import os import sys import locale -system_locale = locale.getdefaultlocale()[0].split('_')[0] +system_locale = locale.getdefaultlocale() +system_locale = system_locale[0].split('_')[0] if system_locale and isinstance(system_locale, list) else 'en' if system_locale == 'pt': comment = "Gerencie seus aplicativos Flatpak / Snap / AUR " diff --git a/aur/tray_entry.py b/aur/tray_entry.py index 5995ca11..792409ba 100644 --- a/aur/tray_entry.py +++ b/aur/tray_entry.py @@ -3,7 +3,8 @@ import locale import os import sys -system_locale = locale.getdefaultlocale()[0].split('_')[0] +system_locale = locale.getdefaultlocale() +system_locale = system_locale[0].split('_')[0] if system_locale and isinstance(system_locale, list) else 'en' if system_locale == 'pt': comment = "Gerencie seus aplicativos Flatpak / Snap / AUR "