انجمنهای فارسی اوبونتو
کمک و پشتیبانی => انجمن عمومی => نویسنده: 🇬🇧بریتانیای کبیر🇬🇧 در 10 دی 1403، 06:53 بظ
-
آقای بهزادی بعد از بروزرسانی کاربراتور دیگه کار نمیکنه.
[hasan@debian ~]$ carburetor
Traceback (most recent call last):
File "/usr/bin/carburetor", line 46, in <module>
from carburetor import carburetor
File "/usr/share/carburetor/carburetor/carburetor.py", line 13, in <module>
from . import actions, ui
File "/usr/share/carburetor/carburetor/actions.py", line 19, in <module>
from . import config, ui
File "/usr/share/carburetor/carburetor/config.py", line 18, in <module>
countries_l10n = gettext.translation(
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/gettext.py", line 543, in translation
raise FileNotFoundError(ENOENT,
FileNotFoundError: [Errno 2] No translation file found for domain: 'iso3166-1'
-
خروجی این چیه؟
>>> import os, gettext, pycountry
>>> langs = {lang: os.listdir(pycountry.LOCALES_DIR+"/"+lang+"/LC_MESSAGES") for lang in os.listdir(pycountry.LOCALES_DIR)}
>>> print([lang for lang in langs if "iso3166-1.mo" not in langs[lang]])
-
خروجی این چیه؟
[hasan@debian ~]$ python3
Python 3.12.8 (main, Dec 13 2024, 13:19:48) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, gettext, pycountry
>>> langs = {lang: os.listdir(pycountry.LOCALES_DIR+"/"+lang+"/LC_MESSAGES") for lang in os.listdir(pycountry.LOCALES_DIR)}
>>> print([lang for lang in langs if "iso3166-1.mo" not in langs[lang]])
['bn_BD', 'zh_Hant', 'zh_Hans', 'kok', 'en', 'pa_PK']
>>>
['bn_BD', 'zh_Hant', 'zh_Hans', 'kok', 'en', 'pa_PK']
-
اگه زبان سیستمت یکی از زبانهای داخل سیاهه است، ممکنه به مشکل بخوره. این رو جایگزینش کن فعلاً:
https://framagit.org/tractor/carburetor/-/commit/620b7028