linux - 如何更改 GNUCash UI 语言?

标签 linux localization internationalization gtk gnucash

我一直在尝试更改 GNUCash UI 语言,如下所述:Link

...通过在终端中运行以下命令:

LANGUAGE=ar_SY LANG=ar_SY gnucash

但它返回了以下内容:

The locale defined in the environment isn't supported. Falling back to the 'C' (US English) locale

有什么解决办法吗?

我认为必须有一种通用的方法来运行具有特定语言的 GTK 应用程序。

最佳答案

tl;博士:

$ LANGUAGE=nl_NL.UTF-8 LANG=nl_NL.UTF-8 LC_ALL=nl_NL.UTF-8 gnucash

(更改为您选择的区域设置代码)


我知道我有点晚了,但我也遇到了语言问题。

另外,我真的想将我的系统语言环境保持在 en_C.UTF-8/C 因为荷兰语规定了逗号作为小数点分隔符,完全扰乱了日常编程任务(尤其是在 LibreOffice 中)。所以我需要 GnuCash 在“翻译模式”下运行。

无论如何,运行

$ LANGUAGE=nl_NL.UTF-8 LANG=nl_NL.UTF-8 gnucash

对我也不起作用(仅以英语运行)。然后,我找到了this link (2015 年 8 月 19 日访问)关于 GnuCash 中的语言环境设置。

在“OS dependend tweaking”部分,在“Changing the Language on Linux”子部分的末尾,他们暗示还指定了 LC_ALL 环境变量:

If you can get the graphical interface in the correct language , but you can't get the accounts in the desired locale, you have to add the LC_ALL variable, like in the following example:

LANG=it_IT.UTF-8 LANGUAGE=it_IT.UTF8 LC_ALL=it_IT.UTF-8 gnucash

这对我有用:

$ LANGUAGE=nl_NL.UTF-8 LANG=nl_NL.UTF-8 LC_ALL=nl_NL.UTF-8 gnucash

也许这对你有用:

$ LANGUAGE=ar_SY LANG=ar_SY LC_ALL=ar_SY gnucash

关于linux - 如何更改 GNUCash UI 语言?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30000008/

相关文章:

android - 检测 Cordova 应用程序中的首选语言顺序

php - 是否有用于编辑 PO 文件的良好 (PHP) 前端

git - 创建 Git 分支 feature/x/y?

java - 服务或属性(property)未注册错误

swift - Xcode 10 中图像资源的本地化

ios - App Store 上的本地化评论

IOS应用强制使用英文作为语言

linux - 有点复杂的 ssh 问题。可以 ping,但不能 ssh,但只能从现场进行

linux - iptables如何只为几个IP指定端口转发

linux - 如何从 linux 终端发送电子邮件,将多个文件的内容作为邮件正文?