v0.3.4: still more titlecase tweaks...
because I'm commiting a bit too eagerly right now.
This commit is contained in:
parent
778ea640af
commit
5b8d10fd5a
|
@ -158,11 +158,6 @@ public class Messages {
|
||||||
);
|
);
|
||||||
|
|
||||||
public static String titleCase( String str ){
|
public static String titleCase( String str ){
|
||||||
//These languages don't do capitalization
|
|
||||||
if (lang == Languages.CHINESE || lang == Languages.KOREAN){
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
|
|
||||||
//English capitalizes every word except for a few exceptions
|
//English capitalizes every word except for a few exceptions
|
||||||
if (lang == Languages.ENGLISH){
|
if (lang == Languages.ENGLISH){
|
||||||
String result = "";
|
String result = "";
|
||||||
|
@ -178,7 +173,7 @@ public class Messages {
|
||||||
return capitalize(result);
|
return capitalize(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Otherwise, the language uses sentence case
|
//Otherwise, use sentence case
|
||||||
return capitalize(str);
|
return capitalize(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user