Bug report #22076
Capitalize first letter in label not working
|Affected QGIS version:||3.6.2||Regression?:||Yes|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29889|
If the field used to label the layer contains values all capitalized, then the option "Capitalize first letter" is not working (nothing changes). While the expression `title("field")` works correctly.
#2 Updated by Alessandro Pasotti over 4 years ago
From the "Capitalize" function definition (Python):
In Python, the capitalize() method converts the first character of a string to capital (uppercase) letter. If the string has its first character as capital, then it returns the original string.
I'd close this as invalid or file a feature request to implement a "titleize" function.
#6 Updated by Harrissou Santanna over 4 years ago
Nyall Dawson wrote:
For what it's worth, if you search deep in the tracker this same issue has been discussed at least 3 or 4 times previously (also on the mailing list)
Indeed. Then imho such a situation shows that there's an issue (people don't seem to understand this label). Or a missing option (aka "titleize" ?) that would help them put it into perspective.