[LyX/master] More polishing of counter dialog. Thanks to Jürgen for help.

Jürgen Spitzmüller spitz at lyx.org
Sun May 3 07:14:16 UTC 2020


Am Sonntag, den 03.05.2020, 02:12 +0200 schrieb Richard Kimberly Heck:
> diff --git a/src/insets/InsetCounter.cpp
> b/src/insets/InsetCounter.cpp
> 
> index 32f7c64..a6e4d0d 100644
> 
> --- a/src/insets/InsetCounter.cpp
> 
> +++ b/src/insets/InsetCounter.cpp
> 
> @@ -60,12 +60,11 @@ InsetCounter::InsetCounter(InsetCounter const &
> ir)
> 
>  
> 
>  const map<string, string> InsetCounter::counterTable =
> 
>  {
> 
> -       {"set", N_("Set Counter")},
> 
> -       {"addto", N_("Add To Counter")},
> 
> -       {"reset", N_("Reset To 0")},
> 
> +       {"set", N_("Set Counter To")},
> 
> +       {"addto", N_("Increase Counter By")},
> 
> +       {"reset", N_("Reset Counter To 0")},
> 
>         {"save", N_("Save Value of Counter")},
> 
>         {"restore", N_("Restore Value of Counter")},
> 
> -       {"value", N_("Display Value of Counter")}
> 
>  };

Alas, this is still sorted alphabetically by keyword, probably since
you use a map.

Maybe use an enum rather than string keywords?

(Also the counters should be sorted alphabetically by [localized] GUIstring rather than by key) 

Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200503/5250ee0d/attachment.asc>


More information about the lyx-devel mailing list