Hello,


  Language names in English starts with upper case, but in Spanish and 
other languages, these names start with lower case 
(http://www.wordreference.com/enfr/English , 
http://www.wordreference.com/enes/English ). Java shows the language name 
in this original format. You can try next java function:

____________

import java.util.Locale;

public class ShowLocale {
  public static void main (String [] args) {
    System.out.println (new Locale("en").getDisplayLanguage(new 
Locale("US")));
    System.out.println (new Locale("en").getDisplayLanguage(new 
Locale("es")));
    System.out.println (new Locale("es").getDisplayLanguage(new 
Locale("US")));
    System.out.println (new Locale("es").getDisplayLanguage(new 
Locale("es")));
  }
}
_____________


  To harmonize language names, its first letter could be capitalized in 
DSpace code.


  Cheers,


Juan


El lunes, 29 de agosto de 2016, 13:01:35 (UTC+2), Claudia Jürgen escribió:
>
>
> Hello Àlex, 
>
> the language names are not part of the i18n catalogue. 
> They come from: 
>
> https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html#getDisplayLanguage()
>  
>
> For example in the jspui it is used here: 
>
> https://github.com/DSpace/DSpace/blob/dspace-5.4/dspace-jspui/src/main/webapp/layout/navbar-default.jsp#L133
>  
>
> Hope this helps 
>
> Claudia Jürgen 
>
> Am 29.08.2016 um 12:33 schrieb Àlex Magaz Graça: 
> > El 18/08/16 a las 02:12, OScar Hernandez escribió: 
> >> Hi, 
> >> 
> >> I'm setting DSpace 5.4, I hope you can help me to solve the following 
> >> case. 
> >> 
> >> In the interface, the language menu shows the options "English" and 
> >> "español", but the last label starts with lower case then i need 
> changes 
> >> to "Español". 
> >> I mean "español" to "Español". 
> >> 
> >> I tried to make it through the files in the folder i18, but its not out 
> >> there. 
> >> 
> >> Thanks in advance. 
> >> 
> >> 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> >> Groups "DSpace Community" group. 
> >> To unsubscribe from this group and stop receiving emails from it, send 
> >> an email to [email protected] <javascript:> 
> >> <mailto:[email protected] <javascript:>>. 
> >> To post to this group, send email to [email protected] 
> <javascript:> 
> >> <mailto:[email protected] <javascript:>>. 
> >> Visit this group at https://groups.google.com/group/dspace-community. 
> >> For more options, visit https://groups.google.com/d/optout. 
> > Hi Oscar, 
> > 
> > These strings aren't from DSpace, they come from Java's Locale class. 
> > See here: 
> > 
> > 
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/viewArtifacts/Navigation.java#L138
>  
> > 
> > 
> > Cheers, 
> > Àlex 
> > 
>
> -- 
> 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 
> [email protected] <javascript:> 
> 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. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to