commit 33f9cfb7961501b38c573eede468b011687f46de
Author: Richard Kimberly Heck <[email protected]>
Date:   Sun Jan 3 14:38:49 2021 -0500

    Capitalize labels of floats, etc. Fixes #11993.
    
    Patch from Daniel.
---
 lib/layouts/stdinsets.inc |    2 +-
 src/insets/InsetFloat.cpp |    4 ++--
 src/insets/InsetWrap.cpp  |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc
index e17f5a8..3d67509 100644
--- a/lib/layouts/stdinsets.inc
+++ b/lib/layouts/stdinsets.inc
@@ -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
diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp
index 7068b0a..db74e9e 100644
--- a/src/insets/InsetFloat.cpp
+++ b/src/insets/InsetFloat.cpp
@@ -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);
 
diff --git a/src/insets/InsetWrap.cpp b/src/insets/InsetWrap.cpp
index b05d5db..c862b17 100644
--- a/src/insets/InsetWrap.cpp
+++ b/src/insets/InsetWrap.cpp
@@ -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));
 }
 
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to