How to change the default language?

1,021 views
Skip to first unread message

Natalia Queiroz

unread,
Oct 29, 2015, 12:17:19 PM10/29/15
to DSpace Technical Support
Hi group,

I want to change the default language (us) to Portuguese (pt_BR).

How is that possible?

Thanks,

--


Natália Oliveira

Natalia Queiroz

unread,
Oct 30, 2015, 12:56:55 PM10/30/15
to DSpace Technical Support
Anyone?
--


Natália Oliveira

Fitchett, Deborah

unread,
Nov 2, 2015, 5:57:12 PM11/2/15
to dspac...@googlegroups.com

Are you using XMLUI? There’s some information at https://wiki.duraspace.org/display/DSDOC3x/XMLUI+Configuration+and+Customization#XMLUIConfigurationandCustomization-MultilingualSupport – it says that “To set a language other than English as the default language for the repository's interface, you can simply rename the translation catalogue for the new default language to "messages.xml".” (though you may also need to rebuild DSpace? And I’d save a copy of messages.xml first as messages_en.xml)

 

Deborah

--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


P Please consider the environment before you print this email.
"The contents of this e-mail (including any attachments) may be confidential and/or subject to copyright. Any unauthorised use, distribution, or copying of the contents is expressly prohibited. If you have received this e-mail in error, please advise the sender by return e-mail or telephone and then delete this e-mail together with all attachments from your system."

Andrea Schweer

unread,
Nov 2, 2015, 6:12:37 PM11/2/15
to Natalia Queiroz, DSpace Technical Support
Hi,

On 30/10/15 05:17, Natalia Queiroz wrote:
> I want to change the default language (us) to Portuguese (pt_BR).
>
> How is that possible?

Since Brazilian Portuguese is one of the supported languages, all you
should need to do is set the default locale configuration option to
pt_BR. This is done in dspace.cfg; the exact line depends on your
version of DSpace, but it looks like this:
https://github.com/DSpace/DSpace/blob/master/dspace/config/dspace.cfg#L1363

This is documented here (for DSpace 5.x):
https://wiki.duraspace.org/display/DSDOC5x/Localization+L10n

cheers,
Andrea

--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120

Claudia Jürgen

unread,
Nov 3, 2015, 3:26:03 AM11/3/15
to dspac...@googlegroups.com
Hello Natalia,

there is a setting

default.language

in the dspace.cfg.
This sets the language which is used as the metadata language qualifier.

The setting for determing the language of the Webui etc. are

default.locale
webui.supported.locales

and depend on the language catalogues already provided. You can overlay
the language catalogue to customize it.

Hope this helps

Claudia Jürgen
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia...@tu-dortmund.de
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax.

Natalia Queiroz

unread,
Nov 4, 2015, 1:03:43 PM11/4/15
to Andrea Schweer, DSpace Technical Support
Thanks all for the answers.

Even changing the default language to pt_BR, when I subscribe a new document the information required to fill are in english

I tried to change default.language = pt_BR in dspace.cfg but the still in english.

I have attached an picture
--


Natália Oliveira
Selection_003.png

Andrea Schweer

unread,
Nov 4, 2015, 2:52:53 PM11/4/15
to Natalia Queiroz, DSpace Technical Support
Hi Natalia,

On 05/11/15 07:03, Natalia Queiroz wrote:
> Thanks all for the answers.
>
> Even changing the default language to pt_BR, when I subscribe a new
> document the information required to fill are in english
>
> I tried to change default.language = pt_BR in dspace.cfg but the still
> in english.
>
> I have attached an picture

From your screenshot, you're using JSPUI. This means you can use the
mechanism described here:
https://wiki.duraspace.org/display/DSDOC5x/Localization+L10n#LocalizationL10n-Localizationofinput-forms.xmlandlicense.default
to create an input-forms_pt_BR.xml file where you translate the relevant
bits.

I don't read Portuguese, but it appears that this page here may have
some useful information for the submission form:
http://wiki.ibict.br/index.php/Formul%C3%A1rio_de_Entrada

Claudia Jürgen

unread,
Nov 5, 2015, 3:15:58 AM11/5/15
to dspac...@googlegroups.com

Hi Natalia,

there are more places than the message catalogue, during submissions the
input forms are used see:
https://wiki.duraspace.org/display/DSDOC5x/Localization+L10n#LocalizationL10n-Localizationofinput-forms.xmlandlicense.default

and there are email templates and so on.
https://wiki.duraspace.org/display/DSDOC5x/Localization+L10n

Hope this helps

Claudia Jürgen


Best read this section:

Natalia Queiroz

unread,
Nov 6, 2015, 8:34:09 AM11/6/15
to Andrea Schweer, DSpace Technical Support
Hello Andrea, thanks again for your help :)

I need that the Portuguese language show up on the field Language, how is that possible?

<input-type value-pairs-name="common_iso_languages">dropdown</input-type>

Thanks,


--


Natália Oliveira

Andrea Schweer

unread,
Nov 8, 2015, 3:00:56 PM11/8/15
to Natalia Queiroz, DSpace Technical Support
Hi Natalia,

On 07/11/15 02:34, Natalia Queiroz wrote:
> Hello Andrea, thanks again for your help :)
>
> I need that the Portuguese language show up on the field Language, how
> is that possible?
>
> <input-type value-pairs-name="common_iso_languages">dropdown</input-type>

You'll need to find the section common_iso_languages towards the bottom
of the input-forms.xml file. It starts like this:
<value-pairs value-pairs-name="common_iso_languages"
dc-term="language_iso">

Add a line for Portuguese -- at the same time, you can (but you don't
have to) remove any languages listed there that aren't used in your
repository. The order of languages in the file is the same order that
will be used for the selection list on the submission screen.

For each language in the list, there is an entry like so:

<pair>
<displayed-value>English (United States)</displayed-value>
<stored-value>en_US</stored-value>
</pair>

So just add eg:

<pair>
<displayed-value>Português brasileiro</displayed-value>
<stored-value>pt_BR</stored-value>
</pair>

and/or without the country variant:

<pair>
<displayed-value>Português</displayed-value>
<stored-value>pt</stored-value>
</pair>

(Apologies if I got the Portuguese language names wrong, I'm sure you
get the picture)

cheers,
Andrae

Natalia Queiroz

unread,
Nov 13, 2015, 1:01:42 PM11/13/15
to Andrea Schweer, DSpace Technical Support
Thanks Andrea :)
--


Natália Oliveira
Reply all
Reply to author
Forward
0 new messages