如何使用pinax(django)更改项目中加载的默认语言

时间:2022-05-26 07:22:00

I'm working with the basic_project of Pinax and I need to change the default language of the application from english to french or to spanish

我正在使用Pinax的basic_project,我需要将应用程序的默认语言从英语更改为法语或西班牙语

I'd tried changing the variable

我试过改变变量

LANGUAGE_CODE = 'es',

LANGUAGE_CODE ='es',

but it remains in english, even the admin, so Im guessing this change does not have any effect at all.

但它仍然是英文,甚至是管理员,所以我猜这种改变根本没有任何影响。

where can I continue looking for more information about this?

我在哪里可以继续寻找更多相关信息?

In the past, in a Django application (not using pinax) I have changed that parameter and it did work.

在过去,在Django应用程序(不使用pinax)中,我更改了该参数,但它确实有效。

1 个解决方案

#1


It seems only the social_project has localization files available. Try copying the "es" directory to basic_project/locale and see if that works!

似乎只有social_project具有可用的本地化文件。尝试将“es”目录复制到basic_project / locale,看看是否有效!

#1


It seems only the social_project has localization files available. Try copying the "es" directory to basic_project/locale and see if that works!

似乎只有social_project具有可用的本地化文件。尝试将“es”目录复制到basic_project / locale,看看是否有效!