[ https://issues.apache.org/jira/browse/LANG-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116832#comment-16116832 ]
Tooraj Jamal edited comment on LANG-1048 at 8/7/17 4:36 PM: ------------------------------------------------------------ I wanna take care of this. Shall I start it? Are you OK with [~jamessawle] 4 method suggestion? Would someone please assign it to me? Thank you was (Author: toorajam): I wanna take care of this. Shall I start it? Are you OK with [~jamessawle] 4 method suggestion? > Improve internationalisation by accepting more than one possible true string > value in BooleanUtils.toBoolean() > -------------------------------------------------------------------------------------------------------------- > > Key: LANG-1048 > URL: https://issues.apache.org/jira/browse/LANG-1048 > Project: Commons Lang > Issue Type: Improvement > Components: lang.* > Affects Versions: 3.3.2 > Reporter: Duncan Jones > Priority: Minor > Fix For: Patch Needed, Discussion > > > As part of a [recent ML > discussion|http://markmail.org/message/3yvgfm2fuqkvwb7q] it was noted that > {{BooleanUtils.toBoolean(String)}} is biased towards English speakers. > We could match the behaviour of this method for non-English users by adding: > {code:java} > boolean toBoolean(String str, String... trueStrings) > {code} > and match in a case-insensitive fashion. Anything that doesn't match a true > string is false. > The current {{toBoolean(String)}} method would just be a special case of this > new method, with the arguments {{toBoolean(str, "true", "on", "y", "t", > "yes")}}. -- This message was sent by Atlassian JIRA (v6.4.14#64029)