]> git.lyx.org Git - features.git/commitdiff
Capitalize labels of floats, etc. Fixes #11993.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 3 Jan 2021 19:38:49 +0000 (14:38 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 3 Jan 2021 19:38:52 +0000 (14:38 -0500)
Patch from Daniel.

lib/layouts/stdinsets.inc
src/insets/InsetFloat.cpp
src/insets/InsetWrap.cpp

index e17f5a83802d27dedc5a0491c4511887549cb647..3d675091ccaaca3a0a738f440bab2203d2f93c2e 100644 (file)
@@ -16,7 +16,7 @@ OutlinerName index        "Index Entries" #no AddToToc (built-in)
 OutlinerName listing      "Listings" #no AddToToc (built-in)
 
 InsetLayout Marginal
-       LabelString           margin
+       LabelString           Margin
        LatexType             command
        LatexName             marginpar
        Font
index 7068b0ab07026443975851fd3b78e4dba78cce0e..db74e9ef1b35edeb306d5df06101fb394bcb5d2a 100644 (file)
@@ -900,10 +900,10 @@ void InsetFloat::setSubfloat(bool s, bool update_label)
 
 void InsetFloat::setNewLabel()
 {
-       docstring lab = _("float: ");
+       docstring lab = _("Float: ");
 
        if (params_.subfloat)
-               lab = _("subfloat: ");
+               lab = _("Subfloat: ");
 
        lab += floatName(params_.type);
 
index b05d5dba4790bf9634652b2992d10814259176a7..c862b175f7c9f08dbfb33439934597d085b2899f 100644 (file)
@@ -65,7 +65,7 @@ void InsetWrap::setCaptionType(std::string const & type)
 {
        InsetCaptionable::setCaptionType(type);
        params_.type = captionType();
-       setLabel(_("wrap: ") + floatName(type));
+       setLabel(_("Wrap: ") + floatName(type));
 }