]> git.lyx.org Git - features.git/commitdiff
Make module categories (almost) great again
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 4 Apr 2019 16:43:29 +0000 (18:43 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 4 Apr 2019 16:43:29 +0000 (18:43 +0200)
The category tag was rarely used and thus not very useful. This adds
categorization to most modules (the rest will follow) and uses the
\DeclareCategory tag we use in layouts rather than the extra syntax
we used in modules. Categories are now added to the po files and
translated.

Note that this is work in progress: the current categories are still
subject to change.

The ultimate goal of this is to sort the modules in the GUI by category
as we do with layouts, examples and templates (and add a filter to search
for specific modules)

As it is now (with the many modules we accumulated), the module selector
is not really usable anymore. If you don't happen to know how exactly a
module is named, selecting a module is really a PITA.

44 files changed:
lib/configure.py
lib/doc/Customization.lyx
lib/layouts/InStar.module
lib/layouts/algorithm2e.module
lib/layouts/braille.module
lib/layouts/endnotes.module
lib/layouts/enumitem.module
lib/layouts/eqs-within-sections.module
lib/layouts/fix-cm.module
lib/layouts/fixltx2e.module
lib/layouts/fixme.module
lib/layouts/foottoend.module
lib/layouts/graphicboxes.module
lib/layouts/hanging.module
lib/layouts/initials.module
lib/layouts/knitr.module
lib/layouts/logicalmkup.module
lib/layouts/minimalistic.module
lib/layouts/noweb.module
lib/layouts/paralist.module
lib/layouts/pdfcomment.module
lib/layouts/pdfform.module
lib/layouts/sectionbox.module
lib/layouts/shapepar.module
lib/layouts/soul.module
lib/layouts/subequations.module
lib/layouts/sweave.module
lib/layouts/tcolorbox.module
lib/layouts/theorems-ams-chap-bytype.module
lib/layouts/theorems-ams-extended-bytype.module
lib/layouts/theorems-ams-extended-chap-bytype.module
lib/layouts/theorems-ams-extended.module
lib/layouts/theorems-ams.module
lib/layouts/theorems-bytype.module
lib/layouts/theorems-chap-bytype.module
lib/layouts/theorems-chap.module
lib/layouts/theorems-named.module
lib/layouts/theorems-sec.module
lib/layouts/theorems-starred.module
lib/layouts/theorems-std.module
lib/layouts/todonotes.module
lib/layouts/varwidth.module
src/ModuleList.h
src/frontends/qt4/GuiDocument.cpp

index 680b7fe052a9105f417372f43fdb0ee776e0713f..1f962081eb64da944b6894c6bdf199f336d4a0a3 100644 (file)
@@ -1517,7 +1517,7 @@ def processModuleFile(file, filename, bool_docbook):
     remods = re.compile(b'\s*#\s*\\\\DeclareLyXModule\s*(?:\[([^]]*?)\])?{(.*)}')
     rereqs = re.compile(b'\s*#+\s*Requires: (.*)')
     reexcs = re.compile(b'\s*#+\s*Excludes: (.*)')
-    recaty = re.compile(b'\s*#+\s*Category: (.*)')
+    recaty = re.compile(b'\\s*#\\s*\\\\DeclareCategory{(.*)}\\s*$')
     redbeg = re.compile(b'\s*#+\s*DescriptionBegin\s*$')
     redend = re.compile(b'\s*#+\s*DescriptionEnd\s*$')
 
index 07895b67364bb7af83f9c19801a9419df4b0086d..c953b4266226b72f6c9254593829eaefaf157b8d 100644 (file)
@@ -8545,12 +8545,39 @@ A module must begin with a line like the following:
 \begin_layout LyX-Code
 #
 \backslash
-DeclareLyXModule[endnotes.sty]{Endnotes} 
+DeclareLyXModule[endnotes.sty]{Endnotes}
+\change_inserted -712698321 1554395911
+
+\end_layout
+
+\begin_layout LyX-Code
+
+\change_inserted -712698321 1554395924
+
+\size small
+#
+\backslash
+DeclareCategory{Foot- and Endnotes}
+\change_deleted -712698321 1554395911
+
+\size default
+\change_unchanged
+
 \end_layout
 
 \begin_layout Standard
-The mandatory argument, in curly brackets, is the name of the module, as
- it should appear in 
+The mandatory argument
+\change_inserted -712698321 1554395956
+ of 
+\family typewriter
+
+\backslash
+DeclareLyXModule
+\change_unchanged
+
+\family default
+, in curly brackets, is the name of the module, as it should appear in 
 \begin_inset Flex Noun
 status collapsed
 
@@ -8598,10 +8625,28 @@ to
 \end_inset
 
 '.
+
+\change_inserted -712698321 1554396133
+ The 
+\family typewriter
+
+\backslash
+DeclareCategory
+\family default
+ declaration is not strictly mandatory, but you should add it, since it
+ is helpful to find the module.
+ Please have a look at the existing module categories and if appropriate,
+ use one of those.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Standard
-The module declaration should then be followed by lines like the following:
+The module 
+\change_inserted -712698321 1554395988
+and category 
+\change_unchanged
+declaration should then be followed by lines like the following:
 \begin_inset Foot
 status collapsed
 
index d436ac7091ac4bf8eb96f2bcbf10afe55665599f..bfdec71e2046733e6fe742ba2f0d1b529030ae6d 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Title and Preamble Hacks}
+#\DeclareCategory{Fixes and Hacks}
 #DescriptionBegin
 #Provides two new styles:
 #1. An 'In Preamble' style that puts whatever is entered into it into the preamble.
index f47a705f306018a9422d92fad18a07395659ce12..43893f460a4b2a38f523fe196aae9b02ee6e6fa6 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[algorithm2e.sty]{Algorithm2e}
+#\DeclareCategory{Floats}
 #DescriptionBegin
 # Use the algorithm2e package for algorithm floats rather
 # than LyX's home-brewed algorithm floats. Use the Algorithm
index 0cfd7e02aed4884776f2decc741b65825def96f1..b7cfff704a5f7171591a9af54d8b0bc0da7e2e03 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[braille.sty]{Braille}
+#\DeclareCategory{Accessibility}
 #DescriptionBegin
 #Defines an environment to typeset Braille.
 #For more details see Braille.lyx in examples.
index 0f29b75418420265ea5c48064ce54adb59271182..f9f0467227519eb5c2bb4fe1b55e30b27ba8c5ef 100644 (file)
@@ -1,4 +1,5 @@
-#\DeclareLyXModule[endnotes.sty]{Endnote}
+#\DeclareLyXModule[endnotes.sty]{Endnotes}
+#\DeclareCategory{Foot- and Endnotes}
 #DescriptionBegin
 #Adds an endnote inset, in addition to footnotes. You will need to add 
 #\theendnotes in TeX-code where you want the endnotes to appear.
index 4ab1418c37003efca78dc917bf06c226bb993b18..0837f4889a60bf5c57fc3fb0c0a8fd12054969c5 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[enumitem.sty]{Customisable Lists (enumitem)}
+#\DeclareCategory{List Enhancements}
 #DescriptionBegin
 # Controls the layout of enumerate, itemize, description, and list/labeling.
 # See section Customized Lists of the User's Guide for a detailed description.
index 11e0b54285eb896c224df97cd6dc2476783499b8..dfc6d69ed9cda1a687f12782a8008b9512a7d578 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Number Equations by Section}
+#\DeclareCategory{Maths}
 #DescriptionBegin
 #Resets the equation number at section start and prepends
 #the section number to the equation number, as in '(2.1)'.
index 377582fb60fb5da68649468d1b599150d15aec7b..e1991c1b1d7eb2717ce2644676106f0c289f2712 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Fix cm}
+#\DeclareCategory{Fixes and Hacks}
 #DescriptionBegin
 #Fix-cm improves the appearance of Computer Modern fonts and makes them
 #available with arbitrary sizes. For details see the documentation
index 36aa278837c7b748eb3999a099857970004c9ab5..bad78d6b33083880142dc9440c9b5daf9f666177 100644 (file)
@@ -1,4 +1,5 @@
-#\DeclareLyXModule{Fix LaTeX}
+#\DeclareLyXModule{Fix LaTeX (Obsolete)}
+#\DeclareCategory{Fixes and Hacks}
 #DescriptionBegin
 #Loads the LaTeX package fixltx2e which contains some bug fixes for LaTeX.
 #Those fixes were not part of older LaTeX kernels because of backward compatibility.
index 7e6fc5bff555582fd9707bfbee6e0e02018fbe4a..d98d47a387bc2ade6365cd291c695be548e43584 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[fixme.sty]{FiXme}
+#\DeclareCategory{Annotations}
 #DescriptionBegin
 #Provides 'FiXme' (marginal) annotations for document revision purposes.
 #A list of annotations can be produced by using the 'List of FIXMEs' paragraph style.
index fd8af1a3e74e950347c820402c1356f59904d758..3ba3afd6a29dac28ccf48c96fc1a52c0705be892 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[endnotes.sty]{Foot to End}
+#\DeclareCategory{Foot- and Endnotes}
 #DescriptionBegin
 #Sets all footnotes as endnotes. You will need to add \theendnotes 
 #in TeX-code where you want the endnotes to appear.
index e045608b44e11ebd1e97f798dd87d3095a70cf80..d65347b093b6c7bb8980d6ee745317497d9ecda8 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{GraphicBoxes}
+#\DeclareCategory{Boxes}
 #DescriptionBegin
 #Boxes to scale and rotate its contents
 #DescriptionEnd
index 757e34d6cedb901ee995ff2a9b92b69b1dbbe9a5..a9ac37d47f2cdc47a9dd412f9c5580a78c4ea42a 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Hanging}
+#\DeclareCategory{Paragraph Styles}
 #DescriptionBegin
 #Adds an environment for hanging paragraphs. 
 #Hanging paragraph is a paragraph in which the first line is set to the left margin, but all subsequent lines are indented.
index c7a4e1b82e43c81d78c73da54adcd4e7bd0a1481..aedd3da1be861be17418e2453b28dbc2b5e00a95 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Initials}
+#\DeclareCategory{Paragraph Styles}
 #DescriptionBegin
 #Define a style for paragraphs with an initial.
 #See the EmbeddedObjects manual for a detailed description.
index a3c808f4fd911f7fdd8b5b5ea2a2197cc77a0cb5..6ba0a6becb5bd3f4f57c37f8a0100b54f11899f0 100644 (file)
@@ -1,9 +1,9 @@
 #\DeclareLyXModule[knitr->latex]{Rnw (knitr)}
+#\DeclareCategory{Literate Programming}
 #DescriptionBegin
 #Uses the knitr package in R for dynamic report generation. This R package has to be installed for this module to work: install.packages('knitr'). Note it depends on R >= 2.14.1.
 #For more info see http://yihui.name/knitr
 #DescriptionEnd
-#Category: literate
 #Excludes: lilypond | sweave
 
 Format 72
index 5176b2b5f0db15d82ba37a6a6244b443b9132066..c1f6bdf9e49d085fc10514e5772b4ce00a9ec2fb 100644 (file)
@@ -1,8 +1,8 @@
 #\DeclareLyXModule{Logical Markup}
+#\DeclareCategory{Text Markup}
 #DescriptionBegin
 #Defines some character styles for logical markup: noun, emph, strong, and code.
 #DescriptionEnd
-#Category: charstyles
 
 # Author : Martin vermeer <martin.vermeer@hut.fi>
 
index cdda4bb3858deea69c6036e4e3c499025c04771c..554754459b801d5f640627f66291767f3645bead 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Minimalistic}
+#\DeclareCategory{Fixes and Hacks}
 #DescriptionBegin
 # Redefines several insets (Index, Branch, URL) as being Minimalistic. 
 #DescriptionEnd
index 028ecb05296365c733adb12c0a73634ddd44f849..bff358691068b897b1c7b30cf60eeafb65035a03 100644 (file)
@@ -1,8 +1,8 @@
 #\DeclareLyXModule[literate->latex,noweb.sty]{Noweb}
+#\DeclareCategory{Literate Programming}
 #DescriptionBegin
 #Allows to use Noweb as a literate programming tool.
 #DescriptionEnd
-#Category: literate
 
 Format 72
 Input litinsets.inc
index 448b86d2e4a14a7c06a7091c84fb4144f7d77170..9542e5f97786b389728f678863eb003543466c20 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[paralist.sty]{Paragraph Lists (paralist)}
+#\DeclareCategory{List Enhancements}
 #DescriptionBegin
 # The package paralist provides some new list environments.
 # Itemized and enumerated lists can be typeset within paragraphs, as
index 80c114082c88aee7d4794e13b5c6903fb59b7a03..93322a062ee6979f96300de72c84eb3f4f5f567e 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[datetime.sty,fmtcount.sty]{PDF Comments}
+#\DeclareCategory{Annotations}
 #DescriptionBegin
 #Provides various kinds of annotations for the PDF output. The module uses
 #the pdfcomment package. Please consult the LyX example file PDF-comment.lyx
index b5d8942bd7e272d3256fd6bc2f72280a001b6e2c..700dc8544b5cee0974b26723cfe8e556dedd6183 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{PDF Form}
+#\DeclareCategory{Annotations}
 #DescriptionBegin
 #Provides fields and buttons for PDF forms. The module uses
 #the LaTeX package hyperref. Please consult the LyX example file PDF-form.lyx
index 24f67b5204e2875812a083219315c953b3f53c22..68c477e03c1e5aa8edeb1ed902648ada2167ee05 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[sectionbox.sty]{Section Boxes}
+#\DeclareCategory{Boxes}
 #DescriptionBegin
 #Defines Boxes with section header. Mainly intended for
 #the SciPoster class.
index fb8464aeec8ab59c95983379b323b541d6e289ab..1a0fd84a40d54ee9281b38d5044e06eb36fd50ef 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[shapepar.sty]{Custom Paragraph Shapes}
+#\DeclareCategory{Paragraph Styles}
 #DescriptionBegin
 #Provides several paragraph shapes as well as commands to define custom
 #shapes. For a description see LyX's Additional
index 05849355ee8d7ff7f674a93f539e0730ac6a3bdb..8738889611f8b4573d6da0131f35c5e51cad0d03 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[soul.sty]{Hyphenatable Text Markup (Soul)}
+#\DeclareCategory{Text Markup}
 #DescriptionBegin
 #Defines text styles to highlight, space-out, strike-through,
 #underline and capitalize/small-cap text by means of the soul package.
index ce69bea11fd6555daef0a2fe3f90fcd172f23536..d1f3c82bcd64dda7e3fbe245412ddebfd6350963 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Subequations}
+#\DeclareCategory{Maths}
 #DescriptionBegin
 #Provide a straightforward way to segregate subequations in LyX. See the subequations.lyx example file.
 #DescriptionEnd
index 7ca439d8aa5de411573d44a18145c9139ea3962c..5ae235145a9b4d61a148fb632fd809933ddc2168 100644 (file)
@@ -1,9 +1,9 @@
 #\DeclareLyXModule[sweave->latex,fancyvrb.sty]{Sweave}
+#\DeclareCategory{Literate Programming}
 #DescriptionBegin
 #Allows to use the statistical language S/R as a literate programming tool via the Sweave() function.
 #For more info see the LyX example file sweave.lyx.
 #DescriptionEnd
-#Category: literate
 #Excludes: lilypond
 
 Format 72
index c0f7394ea5d90d6eb090bcc4f50d332c07f0d99d..7f9ebdb7a158afcfaeb0d6dff54070f587cda5c6 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[tcolorbox.sty,environ.sty,etoolbox.sty,pgf.sty]{Fancy Colored Boxes}
+#\DeclareCategory{Boxes}
 #DescriptionBegin
 #Adds custom insets that support colored boxes via the tcolorbox package.
 #See the tcolorbox documentation for details.
index 4871242d37666d20d237a9a497a47e9137cdb9a8..02dfd40a9a81fb6104767df11d12af71449a2d45 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Theorems (AMS, Numbered by Type within Chapters)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Defines theorem environments and the proof environment using the extended
 #AMS machinery. Both numbered and unnumbered types are provided. Contrary to the
index dbcca8f5e0237e0e470524520f9736866a8437e1..990b9faaf40b45a79f6d5bbc38519f12c0d207ca 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Theorems (AMS-Extended, Numbered by Type)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Defines some additional theorem environments for use with the
 #AMS theorems packages. Includes Criterion, Algorithm, Axiom,
index 2f846897e6ea02e27c3a3af7c7707363213ec186..c09346ff6ca0d2b871bbac409630e89c611d234b 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Theorems (AMS-Extended, Numbered by Type within Chapters)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Defines some additional theorem environments for use with the
 #AMS theorems packages. Includes Criterion, Algorithm, Axiom,
index 2c0581cb193680f88c8546a23b4422d9626c549d..59ab8078ab9a95f2bead92931a76cdef9a8926da 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Theorems (AMS-Extended)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Defines some additional theorem environments for use with the
 #AMS theorems packages. Includes Criterion, Algorithm, Axiom,
@@ -7,7 +8,6 @@
 #forms.
 #DescriptionEnd
 #Requires: theorems-ams
-#Category: theorems
 
 # Original Author : David L. Johnson <dlj0@lehigh.edu>
 # Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
index d0ee647b3f35cf9060f6c053c983d97efd4b4461..e3325396177dbe40fba631130c694d9f0766289d 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Theorems (AMS)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Defines theorem environments and the proof environment using the extended 
 #AMS machinery. Both numbered and unnumbered types are provided. By default, 
@@ -6,7 +7,6 @@
 #changed by loading one of the 'Theorems (Numbered by ...)' modules.
 #DescriptionEnd
 #Excludes: theorems-std | theorems-starred
-#Category: theorems
 
 # Original Author : David L. Johnson <dlj0@lehigh.edu>
 # Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
index e570d114b0fbe82899f73bb89a5c6d7989dfced4..1abb188620c918bdadc6a07c1ca93c33fc3cf7db 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Theorems (Numbered by Type)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Defines some theorem environments for use with non-AMS classes. Contrary to the
 #plain Theorem module, the different theorem types provided here each have a separate
index d298283e9522c687395283a67eb58df4433906f0..664d1365234224859fd59d4180cad1f8c792ce0a 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Theorems (Numbered by Type within Chapters)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Defines some theorem environments for use with non-AMS classes. Contrary to the
 #plain Theorem module, the different theorem types provided here each have a separate
index b3fbb7cdf4256b3e2277cbb43bc58de409ae6a0f..3b1c2277ebd2062c6083f1736d1f2a89f107de1a 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Theorems (Numbered by Chapter)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Numbers theorems and the like by chapter (i.e., the counter is reset at
 #each chapter start). Use this module only with document classes that provide a chapter
@@ -6,7 +7,6 @@
 #DescriptionEnd
 #Requires: theorems-std | theorems-ams
 #Excludes: theorems-sec
-#Category: theorems
 
 # Author: Richard Heck <rgheck@comcast.net>
 
index ae17d4b6899535aa13c877770ca5582bcca93e71..072fe402e44490b60f8bcff93a26cade3250024d 100644 (file)
@@ -1,5 +1,6 @@
 #% Do not delete the line below; configure depends on this
 #\DeclareLyXModule{Named Theorems}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 # Facilitates the use of named theorems. The name of the theorem
 # goes into the 'Additional Theorem Text' argument.
index 032e47519c16d1f5f8731d6736d80fecdf5475bd..0c5317fab30a5b9e94ed14334b75b147cc43f664 100644 (file)
@@ -1,11 +1,11 @@
 #\DeclareLyXModule{Theorems (Numbered by Section)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Numbers theorems and the like by section (i.e., the counter is reset at
 #each section start).
 #DescriptionEnd
 #Requires: theorems-std | theorems-ams
 #Excludes: theorems-chap
-#Category: theorems
 
 # Author: Richard Heck <rgheck@comcast.net>
 
index 3fe87ff6a691bff73c2808424bc157ca7c1cc53d..62cd989b8b1c88ef9d46d38b6dd61ab562b5730d 100644 (file)
@@ -1,10 +1,10 @@
 #\DeclareLyXModule{Theorems (Unnumbered)}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Defines only unnumbered theorem environments, and the proof environment, using 
 #the extended AMS machinery. 
 #DescriptionEnd
 #Excludes: theorems-std | theorems-ams
-#Category: theorems
 
 # Author: Richard Heck <rgheck@comcast.net>
 
index 33f8585dc246b92f68a8b8f440d6864ab3986204..01106f88153782e2b9676f82ab27e02029cb7635 100644 (file)
@@ -1,11 +1,11 @@
 #\DeclareLyXModule{Theorems}
+#\DeclareCategory{Theorems}
 #DescriptionBegin
 #Defines some theorem environments for use with non-AMS classes. By default, 
 #the theorems are numbered consecutively throughout the document. This can be
 #changed by loading one of the 'Theorems (Numbered by ...)' modules.
 #DescriptionEnd
 #Excludes: theorems-ams | theorems-starred
-#Category: theorems
 
 # Author: Richard Heck <rgheck@comcast.net>
 
index 1b184a55bd02fae339d7248983f535f3dc07499b..d0739457996e5a33331dc30c9c9eda41d0104edf 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[todonotes.sty]{TODO Notes}
+#\DeclareCategory{Annotations}
 #DescriptionBegin
 #Provides custom insets to insert TODO items in your document
 #(using the todonotes package). In order to generate a 'List of TODOs',
index 996f6c978dcf432aa29f3b53a124935a87037a68..8c0e3da31e3213305dd8fc48228546225d8b3adf 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule{Variable-width Minipages}
+#\DeclareCategory{Boxes}
 #DescriptionBegin
 # Adds a 'Minipage (Var. Width)' inset using the varwidth LaTeX package.
 # The varwidth package provides a variable-width minipage, whose resulting
index e2d4a28f02dcf955aa7095d3a37ec9c688a0135a..9194f031e04c03556933c21f3661ef4e46fa3db2 100644 (file)
@@ -31,12 +31,12 @@ namespace lyx {
  *  The requires and excludes are given in comments within the module file,
  *  which must begin roughly so:
  *   #\DeclareLyXModule{Theorems (By Section)}
+ *   #\DeclateCategory{Theorems}
  *   #DescriptionBegin
  *   #Numbers theorems and the like by section.
  *   #DescriptionEnd
  *   #Requires: theorems-std | theorems-ams
  *   #Excludes: theorems-chap
- *   #Category: theorems
  *  The description is used in the gui to give information to the user. The
  *  Requires, Excludes, and Category lines are read by the configuration script
  *  and written to a file lyxmodules.lst in the user configuration directory.
index 371099c67ffd8777b22e38dc3f0839b4b13fd69d..59e04aa73e6e32b1aa1ae043f70cc80d94da165a 100644 (file)
@@ -2902,7 +2902,8 @@ void GuiDocument::updateModuleInfo()
        if (!cat.empty()) {
                if (!desc.empty())
                        desc += "\n";
-               desc += bformat(_("Category: %1$s."), cat);
+               desc += bformat(_("Category: %1$s."),
+                               translateIfPossible(cat));
        }
 
        vector<string> pkglist = getPackageList(modName);