找到你要的答案

Q:How can I change GNUCash UI language? tl;dr:

Q:我如何能改变程序界面的语言吗? TL;DR:

I've been trying to change GNUCash UI language as it's described here: Link

...by running the following command in the terminal:

LANGUAGE=ar_SY LANG=ar_SY gnucash

But it returned the following:

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

Any solution please?

I think there must be a general way to run a GTK application with a specific language.

我一直试图改变程序界面语言作为它的描述如下:链接

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

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应用程序的一般方法。

answer1: 回答1:

There might be a problem in the .po translation files. In that file, the direction should be defined according to this article.

在PO翻译文件中可能会有问题。在该文件中,方向应根据本文定义。

answer2: 回答2:

tl;dr:

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

(change into the locale codes of your choice)


I know I'm a bit late to the game, but I was also running into issues with languages.

As an extra, I really want to keep my system locale at en_C.UTF-8 / C because the Dutch language prescribes a comma for decimal separator and completely messes with day-to-day programming tasks (especially in LibreOffice). So I need GnuCash to run in 'translation mode'.

Anyway, running

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

did not work for me either (just runs in English). Then, I found this link (accessed on Aug 19, 2015) about locale settings in GnuCash.

In the section 'OS dependend tweaking', at the end of the 'Changing the Language on Linux' sub-section, they hinted to also specify the LC_ALL environment variable:

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

This does the trick for me:

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

Perhaps this might work for you:

$ LANGUAGE=ar_SY LANG=ar_SY LC_ALL=ar_SY gnucash

TL;DR:

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

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


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

作为一个额外的,我真的想把我的系统区域设置在en_c.utf-8 / C因为荷兰语言规定为小数点分隔符逗号和完全搅乱日常编程任务(尤其在LibreOffice)。所以我需要在程序运行的翻译模式。

无论如何,运行

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

我也没有工作(只是用英语运行)。然后,我发现这个链接(访问在2015年8月19日)在GnuCash地区设置。

在部分的操作系统依赖的调整”,在“更改Linux”子节结束语言,他们暗示也指定lc_all环境变量:

如果你能以正确的语言得到的图形界面,但是你不能在所需的区域得到的账户,你必须添加lc_all变量,如下面的例子:

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
answer3: 回答3:

If anybody is interested, a solution that can be used on Mac OS X (Yosemite) is to add these lines in Gnucash (in this case for Italian):

export LANG=it_IT.UTF-8
export LANGUAGE=it_IT.UTF-8
export LC_ALL=it_IT.UTF-8

Following the advice on the above metioned link, these three lines should be added just above this part:

$EXEC "$bundle_contents/MacOS/$name-bin" $* $EXTRA_ARGS

Gnucash is an executable file located inside Gnucash.app that is present in your Applications folder (you should see Gnucash without .app extension). If you select it and in the dropdown menu you click on "Show Package Contents", you will find the Gnucash executable file in /Contents/MacOS folder. You can then modify the file with your preferred text editor.

如果有人感兴趣,一个解决方案,可以应用在Mac OS X(优诗美地国家公园)是在程序添加这些线(在这种情况下,意大利):

export LANG=it_IT.UTF-8
export LANGUAGE=it_IT.UTF-8
export LC_ALL=it_IT.UTF-8

下面对上述环节的建议,这三条线应加在这部分:

$EXEC "$bundle_contents/MacOS/$name-bin" $* $EXTRA_ARGS

程序是一个可执行文件位于Gnucash.app,目前在您的应用程序文件夹(你应该看到程序没有。APP推广)。如果你选择它,在下拉菜单中点击“显示包内容,你会发现程序中的可执行文件/内容/ MacOS文件夹。然后,可以使用首选文本编辑器修改该文件。

linux  localization  internationalization  gtk  gnucash