You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment we format our contacts as follows:
Individuals: First name capitalised, last name uppercase
Organisations: All in uppercase
But so far we have been doing this formatting manually, which takes quite a lot of time, and want to change to a new formatting system where we capitalise the first letter of each word of all names. We thought the Civinormalise extension might help us do this but it doesn't seem to work to revert all uppercase names to sentence case.
The text was updated successfully, but these errors were encountered:
@fbittencourthersan I wrote a patch for this but it wasn't accepted, and I never followed up to make it something that could be merged in. But #3 should work for you if you'd like to apply that patch.
I tried the suggested patch, but found it was negating proper case of names beginning with D', O', "Mc, etc.
As an alternative, I added a check for all-caps to existing line 152: if ((in_array(strtolower($word), $handles)) || (ctype_upper($word))) { $word = strtolower($word); }
This works well in the testing I have done.
I also added additional variations to existing line 124 $delimiters = array( "-", ".", "D'", "O'", "Mc", "Mac", "A'", "J'", "L'", " ",);
At the moment we format our contacts as follows:
Individuals: First name capitalised, last name uppercase
Organisations: All in uppercase
But so far we have been doing this formatting manually, which takes quite a lot of time, and want to change to a new formatting system where we capitalise the first letter of each word of all names. We thought the Civinormalise extension might help us do this but it doesn't seem to work to revert all uppercase names to sentence case.
The text was updated successfully, but these errors were encountered: