关于Glade无法设置中文

软件和网站开发以及相关技术探讨
回复
ovo-tim
帖子: 2
注册时间: 2022-04-30 13:08
系统: deepin
送出感谢: 0
接收感谢: 0

关于Glade无法设置中文

#1

帖子 ovo-tim » 2022-08-02 11:23

最近打算研究GTK发现了Glade,但无法设置中文(Minder也一样,怀疑是我的设置问题)


另外 设置-语言 中提示:
Not all translations for this language are installed . Use the InstaL L Misstng Packages button to download
and install all missing packages.


奉上 /usr/share/locale/zh_CN/LC_MESSAGES/ 可能有关
accountwizard_contacts.mo kcmusb.mo messageviewerheaderplugins.mo
accountwizard_ews.mo kcm_users.mo messageviewerplugins.mo
accountwizard_ical.mo kcmutils5.mo messageviewer_semantic_plugin.mo
accountwizard_imap.mo kcm_virtualkeyboard.mo messageviewer_text_calendar_plugin.mo
accountwizard_kolab.mo kcm_vulkan.mo messageviewer_text_vcard_plugin.mo
accountwizard_mailbox.mo kcm_wayland.mo milou.mo
accountwizard_maildir.mo kcm_workspace.mo muon.mo
accountwizard.mo kcm_xserver.mo notificationhelper.mo
accountwizard_pop3.mo kcodecs5_qt.qm okular_chm.mo
accountwizard_tine20.mo kcompletion5_qt.qm okular_comicbook.mo
accountwizard_vcarddir.mo kconfig5_qt.qm okular_djvu.mo
accountwizard_vcard.mo kconfigwidgets5.mo okular_dvi.mo
akonadi_archivemail_agent.mo kcontacts5.mo okular_epub.mo
akonadi_birthdays_resource.mo kcoreaddons5_qt.qm okular_fax.mo
akonadicontact5.mo kdbusaddons5_qt.qm okular_fictionbook.mo
akonadicontact5-serializer.mo kde5_xml_mimetypes.qm okular_ghostview.mo
akonadi_contacts_resource.mo kdeclarative5.mo okular_kimgio.mo
akonadi_davgroupware_resource.mo kdeconnect-app.mo okular_markdown.mo
akonadi_etesync_resource.mo kdeconnect-cli.mo okular.mo
akonadi_ews_resource.mo kdeconnect-core.mo okular_mobi.mo
akonadi_facebook_resource.mo kdeconnect-fileitemaction.mo okular_plucker.mo
akonadi-filestore.mo kdeconnect-indicator.mo okular_poppler.mo
akonadi_followupreminder_agent.mo kdeconnect-interfaces.mo okular_tiff.mo
akonadi_google_resource.mo kdeconnect-kcm.mo okular_txt.mo
akonadi_icaldir_resource.mo kdeconnect-kded.mo okular_xps.mo
akonadi_ical_resource.mo kdeconnect-kio.mo org.fcitx.fcitx5.kcm.mo
akonadi_imap_resource.mo kdeconnect-nautilus-extension.mo org.kde.plasma.emojier.mo
akonadi_kalarm_resource.mo kdeconnect-plugins.mo oxygen_style_config.mo
akonadi_maildir_resource.mo kdeconnect-settings.mo oxygen_style_demo.mo
akonadi_maildispatcher_agent.mo kdeconnect-sms.mo partitionmanager.mo
akonadi_mailfilter_agent.mo kdeconnect-urlhandler.mo pavucontrol.mo
akonadi_mailmerge_agent.mo kdecoration.mo phonon_gstreamer_qt.qm
akonadi_mbox_resource.mo kded_bolt.mo phonon_kde_plugin.mo
akonadi_migration_agent.mo kdelibs4support.mo phonon_vlc_qt.qm
akonadi_mixedmaildir_resource.mo kdenlive.mo pimdataexporter.mo
akonadi_newmailnotifier_agent.mo kdesu5.mo pimeventsplugin.mo
akonadinotes5.mo kdesud5.mo pinta.mo
akonadi_notes_agent.mo kdialog.mo plasmaactivitymanager.mo
akonadi_openxchange_resource.mo kdnssd5_qt.qm plasma_applet_org.kde.desktopcontainment.mo
akonadi_pop3_resource.mo kdoctools5.mo plasma_applet_org.kde.kdeconnect.mo
akonadi_search.mo keditbookmarks.mo plasma_applet_org.kde.kscreen.mo
akonadi_sendlater_agent.mo kfileaudiopreview5.mo plasma_applet_org.kde.latte.containment.mo
akonadi_singlefile_resource.mo kfilemetadata5.mo plasma_applet_org.kde.latte.plasmoid.mo
akonadi_tomboynotes_resource.mo kfind.mo plasma_applet_org.kde.milou.mo
akonadi_unifiedmailbox_agent.mo kfmclient.mo plasma_applet_org.kde.panel.mo
akonadi_vcarddir_resource.mo kfontinst.mo plasma_applet_org.kde.plasma.analogclock.mo
akonadi_vcard_resource.mo kgantt_qt.qm plasma_applet_org.kde.plasma_applet_dict.mo
akregator_konqplugin.mo kglobalaccel5_qt.qm plasma_applet_org.kde.plasma.appmenu.mo
akregator.mo khelpcenter5.mo plasma_applet_org.kde.plasma.battery.mo
aptitude.mo kholidays_calendar_plugin.mo plasma_applet_org.kde.plasma.binaryclock.mo
apt.mo khotkeys.mo plasma_applet_org.kde.plasma.bluetooth.mo
aria2.mo khtml5.mo plasma_applet_org.kde.plasma.calculator.mo
ark.mo khtmlsettingsplugin.mo plasma_applet_org.kde.plasma.calendar.mo
autorefresh.mo khtmltts.mo plasma_applet_org.kde.plasma.clipboard.mo
babelfish.mo ki18n5.mo plasma_applet_org.kde.plasma.colorpicker.mo
balooctl5.mo kicad.mo plasma_applet_org.kde.plasma.comic.mo
baloodb5.mo kiconthemes5.mo plasma_applet_org.kde.plasma.devicenotifier.mo
balooengine5.mo kinfocenter.mo plasma_applet_org.kde.plasma.digitalclock.mo
baloosearch5.mo kinit5.mo plasma_applet_org.kde.plasma.diskquota.mo
balooshow5.mo kio5_activities.mo plasma_applet_org.kde.plasma.fifteenpuzzle.mo
baloowidgets5.mo kio5_applications.mo plasma_applet_org.kde.plasma.fuzzyclock.mo
bluedevil.mo kio5_archive.mo plasma_applet_org.kde.plasma.icon.mo
breeze_kwin_deco.mo kio5_baloosearch.mo plasma_applet_org.kde.plasma.katesessions.mo
breeze_style_config.mo kio5_bookmarks.mo plasma_applet_org.kde.plasma.keyboardindicator.mo
byzanz.mo kio5_fish.mo plasma_applet_org.kde.plasma.keyboardlayout.mo
calendarsupport.mo kio5_info.mo plasma_applet_org.kde.plasma.kicker.mo
com.github.muriloventuroso.easyssh.mo kio5_kamera.mo plasma_applet_org.kde.plasma.kickoff.mo
contactprintthemeeditor.mo kio5_man.mo plasma_applet_org.kde.plasma.kimpanel.mo
contactthemeeditor.mo kio5.mo plasma_applet_org.kde.plasma.konsoleprofiles.mo
cryptopageplugin.mo kio5_mtp.mo plasma_applet_org.kde.plasma.lock_logout.mo
customtoolsplugin.mo kio5_nfs.mo plasma_applet_org.kde.plasma.manageinputmethod.mo
debconf.mo kio5_recentdocuments.mo plasma_applet_org.kde.plasma.mediacontroller.mo
devhelp.mo kio5_sftp.mo plasma_applet_org.kde.plasma.mediaframe.mo
dirfilterplugin.mo kio5_smb.mo plasma_applet_org.kde.plasma.minimizeall.mo
dolphin.mo kio5_tags.mo plasma_applet_org.kde.plasma.networkmanagement.mo
dolphin_servicemenuinstaller.mo kio5_thumbnail.mo plasma_applet_org.kde.plasma.nightcolorcontrol.mo
dpkg.mo kio5_timeline.mo plasma_applet_org.kde.plasma.notes.mo
dragonplayer.mo kio_akonadi.mo plasma_applet_org.kde.plasma.notifications.mo
drkonqi5.mo kioclient.mo plasma_applet_org.kde.plasma.pager.mo
exo-2.mo kio_desktop.mo plasma_applet_org.kde.plasma.panelspacer.mo
fcitx5-qt.mo kio_ldap.mo plasma_applet_org.kde.plasma.private.grouping.mo
fcitx-baidupinyin.mo kio_sieve.mo plasma_applet_org.kde.plasma.private.systemtray.mo
fcitx-configtool.mo kitemviews5_qt.qm plasma_applet_org.kde.plasma.quicklaunch.mo
fcitx-qt5.mo kitinerary.mo plasma_applet_org.kde.plasma.quickshare.mo
filelight.mo kjobwidgets5_qt.qm plasma_applet_org.kde.plasma.showActivityManager.mo
freespacenotifier.mo klipper.mo plasma_applet_org.kde.plasma.showdesktop.mo
fsview.mo kmail_checkbeforedeleting_plugins.mo plasma_applet_org.kde.plasma.systemmonitor.mo
galternatives.mo kmail_editorconvertertext_plugins.mo plasma_applet_org.kde.plasma.taskmanager.mo
garcon.mo kmail_editorgrammar_plugins.mo plasma_applet_org.kde.plasma.timer.mo
GConf2.mo kmail_editorinit_plugins.mo plasma_applet_org.kde.plasma.trash.mo
gdebi.mo kmail_editor_plugins.mo plasma_applet_org.kde.plasma.userswitcher.mo
gegl-0.4.mo kmail_editorsendcheck_plugins.mo plasma_applet_org.kde.plasma.volume.mo
gid-migrator.mo kmail.mo plasma_applet_org.kde.plasma.weather.mo
gnome-bluetooth-3.0.mo kmail_plugins.mo plasma_applet_org.kde.plasma.windowlist.mo
granite.mo kmail-refresh-settings.mo plasma-browser-extension.mo
gst-plugins-bad-1.0.mo kmailtransport_plugins.mo plasma-browser-integration-host.mo
gst-plugins-ugly-1.0.mo kmenuedit.mo plasma-browser-integration-reminder.mo
gwenview.mo kmimetypefinder5.mo plasma_calendar_astronomicalevents.mo
headerthemeeditor.mo knetattach5.mo plasma_containmentactions_applauncher.mo
imgalleryplugin.mo knewstuff5.mo plasma_containmentactions_contextmenu.mo
importwizard_plugins.mo knotes.mo plasma_containmentactions_lattecontextmenu.mo
inkscape.mo knotifications5_qt.qm plasma_containmentactions_switchwindow.mo
iso_15924.mo knotifyconfig5.mo plasma-discover.mo
iso_3166-1.mo konqueror.mo plasma-discover-notifier.mo
iso_3166-2.mo konsole.mo plasma_disks.mo
iso_3166_2.mo kontactinterfaces5.mo plasma_engine_applicationjobs.mo
iso_3166-3.mo korgac.mo plasma_engine_devicenotifications.mo
iso_3166.mo korganizer.mo plasma_engine_dict.mo
iso_4217.mo korganizer_plugins.mo plasma_engine_hotplug.mo
iso_639-2.mo kparts5.mo plasma_engine_keystate.mo
iso_639-3.mo kpeople5.mo plasma_engine_mpris2.mo
iso_639_3.mo kpmcore.mo plasma_engine_notifications.mo
iso_639.mo kpty5.mo plasma_engine_powermanagement.mo
juk.mo krdb.mo plasma_engine_soliddevice.mo
kaccess.mo kross5.mo plasma_engine_time.mo
kaccounts-providers.mo krunner.mo plasma_engine_weather.mo
kactivities5.mo kscreenlocker_greet.mo plasmaintegration5.mo
kaddressbook_importexportplugins.mo kscreenlocker.mo plasma_lookandfeel_org.kde.lookandfeel.mo
kaddressbook.mo kscreen.mo plasmanetworkmanagement_fortisslvpnui.mo
kaddressbook_plugins.mo kservice5.mo plasmanetworkmanagement_iodineui.mo
katebacktracebrowserplugin.mo ksgrd.mo plasmanetworkmanagement-kcm.mo
katebuild-plugin.mo kshellcmdplugin.mo plasmanetworkmanagement-kded.mo
katecloseexceptplugin.mo ksmserver.mo plasmanetworkmanagement_l2tpui.mo
katecolorpickerplugin.mo ksshaskpass.mo plasmanetworkmanagement-libs.mo
kate-ctags-plugin.mo kstart5.mo plasmanetworkmanagement_openconnectui.mo
kateexternaltoolsplugin.mo ksysguard_face_org.kde.ksysguard.applicationstable.mo plasmanetworkmanagement_openswanui.mo
katefilebrowserplugin.mo ksysguard_face_org.kde.ksysguard.barchart.mo plasmanetworkmanagement_openvpnui.mo
katefiletree.mo ksysguard_face_org.kde.ksysguard.facegrid.mo plasmanetworkmanagement_pptpui.mo
kategdbplugin.mo ksysguard_face_org.kde.ksysguard.linechart.mo plasmanetworkmanagement_sshui.mo
kategitblameplugin.mo ksysguard_face_org.kde.ksysguard.piechart.mo plasmanetworkmanagement_sstpui.mo
katekonsoleplugin.mo ksysguard_face_org.kde.ksysguard.processtable.mo plasmanetworkmanagement_strongswanui.mo
kate.mo ksysguard_face_org.kde.ksysguard.textonly.mo plasmanetworkmanagement_vpncui.mo
kateproject.mo ksysguardlsofwidgets.mo plasma-open-settings.mo
kate-replicode-plugin.mo KSysGuardSensorFaces.mo plasma_package_plasmashell.mo
katesearch.mo ksystemstats_plugins.mo plasma_packagestructure_comic.mo
katesnippetsplugin.mo ktexteditor5.mo plasma_runner_appstream.mo
katesql.mo ktexteditorpreviewplugin.mo plasma_runner_baloosearch5.mo
katesymbolviewer.mo ktextwidgets5.mo plasma_runner_bookmarksrunner.mo
katetextfilter.mo ktnef.mo plasma_runner_calculatorrunner.mo
katexmlcheck.mo ktraderclient5.mo plasma_runner_CharacterRunner.mo
katexmltools.mo kunitconversion5.mo plasma_runner_converterrunner.mo
kauth5_qt.qm kwalletd5.mo plasma_runner_datetime.mo
kbookmarks5_qt.qm kwalletmanager.mo plasma_runner_katesessions.mo
kbroadcastnotification.mo kwallet-query.mo plasma_runner_kill.mo
kcalc.mo kwidgetsaddons5_qt.qm plasma_runner_konsoleprofiles.mo
kcm5_device_automounter.mo kwin_clients.mo plasma_runner_krunner_dictionary.mo
kcm5_filetypes.mo kwindowsystem5_qt.qm plasma_runner_kwin.mo
kcm5_joystick.mo kwin_effects.mo plasma_runner_locations.mo
kcm5_kded.mo kwin.mo plasma_runner_placesrunner.mo
kcm_about-distro.mo kwin_scripting.mo plasma_runner_plasma-desktop.mo
kcm_access.mo kwin_scripts.mo plasma_runner_powerdevil.mo
kcm_activities5.mo kwrite.mo plasma_runner_recentdocuments.mo
kcm_akonadicontact_actions.mo kxmlgui5.mo plasma_runner_services.mo
kcm_autostart.mo language-selector.mo plasma_runner_sessions.mo
kcm_baloofile.mo latte-dock.mo plasma_runner_shell.mo
kcm_bluetooth.mo latte_indicator_org.kde.latte.default.mo plasma_runner_spellcheckrunner.mo
kcm_bolt.mo latte_indicator_org.kde.latte.plasma.mo plasma_runner_webshortcuts.mo
kcmbookmarks.mo libakonadi5.mo plasma_runner_windowedwidgets.mo
kcm_colors.mo libakonadi-calendar5.mo plasmashell.mo
kcm_componentchooser.mo libakonadi-calendar5-serializer.mo plasma_shell_org.kde.plasma.desktop.mo
kcm_cpu.mo libakonadi-kmime5.mo plasmashellprivateplugin.mo
kcm_cursortheme.mo libapt-pkg6.0.mo plasma-systemmonitor.mo
kcm_desktoppaths.mo libcwidget4.mo plasma_toolbox_org.kde.desktoptoolbox.mo
kcm_desktoptheme.mo libdebconf-kde.mo plasma_toolbox_org.kde.paneltoolbox.mo
kcmdevinfo.mo libdiscover.mo plasma_wallpaper_org.kde.color.mo
kcm_egl.mo libeventviews.mo plasma_wallpaper_org.kde.image.mo
kcm_energyinfo.mo libfolderarchivesettings.mo plasma_wallpaper_org.kde.potd.mo
kcm_feedback.mo libgrantleethemeeditor.mo polkit-kde-authentication-agent-1.mo
kcm_fonts.mo libgrantleetheme.mo powerdevilactivitiesconfig.mo
kcmformats.mo libgravatar.mo powerdevilglobalconfig.mo
kcm_glx.mo libincidenceeditors.mo powerdevil.mo
kcm_icons.mo libkalarmcal5.mo powerdevilprofilesconfig.mo
kcminit.mo libkalarmcal5-serializer.mo processcore.mo
kcm_interrupts.mo libkcalutils5.mo processui.mo
kcmkamera.mo libkdav.mo psensor.mo
kcmkclock.mo libkdepim.mo purpose_barcode.mo
kcmkeyboard.mo libkgapi_qt.qm purpose_bluetooth.mo
kcm_keys.mo libkholidays5_qt.qm purpose_email.mo
kcmkgamma.mo libkicker.mo purpose-fileitemaction.mo
kcmkonqhtml.mo libkimap5.mo purpose_imgur.mo
kcmkonq.mo libkirigami2plugin_qt.qm purpose_kdeconnect.mo
kcm_kscreen.mo libkldap5.mo purpose_kdeconnectsms.mo
kcmkwallet.mo libkmime5.mo purpose_ktp-sendfile.mo
kcmkwincommon.mo libkonq.mo purpose_nextcloud.mo
kcmkwincompositing.mo libkpackage5.mo purpose_pastebin.mo
kcm_kwindecoration.mo libkpimidentities5.mo purpose_phabricator.mo
kcm_kwin_effects.mo libkpimtextedit.mo purpose_reviewboard.mo
kcm_kwinrules.mo libksieve.mo purpose_saveas.mo
kcmkwinscreenedges.mo libksmtp5.mo purpose_youtube.mo
kcm-kwin-scripts.mo libktnef5.mo qaptbatch.qm
kcm_kwintabbox.mo libkworkspace.mo searchbarplugin.mo
kcm_kwin_virtualdesktops.mo libmailcommon.mo sieveeditor.mo
kcmkwm.mo libmailimporter.mo sieveeditor_plugins.mo
kcm_landingpage.mo libmailtransport5.mo solid5_qt.qm
kcm_launchfeedback.mo libmessagecomposer.mo soliduiserver5.mo
kcm_lookandfeel.mo libmessagecore.mo sonnet5_qt.qm
kcm_mobile_hotspot.mo libmessagelist.mo spectacle.mo
kcm_mobile_wifi.mo libmessageviewer.mo sweeper.mo
kcmmouse.mo libmimetreeparser.mo syntaxhighlighting5_qt.qm
kcm_nic.mo libmypaint.mo systemmonitor.mo
kcm_nightcolor.mo libnoteshared.mo systemsettings.mo
kcm_notificationhelper.mo libnotificationmanager.mo tabswitcherplugin.mo
kcm_notifications.mo liboxygenstyleconfig.mo thunar.mo
kcm_pci.mo libphonon_qt.qm tumbler.mo
kcmperformance.mo libplasma5.mo uachangerplugin.mo
kcm_pulseaudio.mo libpowerdevilcommonconfig.mo update-notifier.mo
kcmqtquicksettings.mo libpurpose_quick.mo userfeedbackprovider5_qt.qm
kcmsamba.mo libpurpose_widgets.mo vlc.mo
kcm_screenlocker.mo libqalculate.mo webarchiver.mo
kcm_sddm.mo libtemplateparser.mo webenginepart.mo
kcm_search.mo libwebengineviewer.mo webengineurlinterceptor.mo
kcmshell5.mo libxfce4ui.mo xdg-desktop-portal-kde.mo
kcm_smserver.mo libxfce4util.mo xdg-user-dirs.mo
kcm_solid_actions.mo lspclient.mo xfce4-notifyd.mo
kcm_splashscreen.mo lynx.mo xfce4-screensaver.mo
kcm_style.mo mboximporter.mo xfce4-session.mo
kcm_tablet.mo messageviewer_application_gnupgwks_plugin.mo xfce4-settings.mo
kcm_touchpad.mo messageviewer_application_mstnef_plugin.mo xfconf.mo
kcm_translations.mo messageviewer_bodypartformatter_pkpass.mo xfdesktop.mo
kcm_updates.mo messageviewerconfiguresettingsplugins.mo xfwm4.mo
头像
astolia
论坛版主
帖子: 5766
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 999 次

Re: 关于Glade无法设置中文

#2

帖子 astolia » 2022-08-03 12:13

glade的打包有问题,没有把语言包打包进去。
执行

代码: 全选

strace glade 2>&1 | fgrep glade.mo
就可以看到,glade.mo这个语言包是找不到的

你可以给上游(deepin或debian)报bug让他们改。也可以自己从源码包里提取出语言文件po/zh_CN.po,用

代码: 全选

msgfmt po/zh_CN.po -o glade.mo
生成glade.mo文件,然后放到上面strace列出的路径里
回复