Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gerd Kurzbach <Gerd.Kurzbach@esi-group.com>
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
3 people committed Mar 4, 2022
1 parent 81aa782 commit b9482c9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions chapters/packages.tex
Expand Up @@ -393,7 +393,7 @@ \section{Multilingual Descriptions}\label{multilingual-descriptions}
Short class definitions do not appear here.
Texts in such classes belong to the enclosing full class definition.

After the `msgid` keyword the text string which shall be translated follows.
After the \lstinline!msgid! keyword the text string which shall be translated follows.
It should contain the original string from the Modelica text representation.
Since in Modelica control sequences also start with a backslash and another backslash is used to use sequences literally or to hide double quotes, no change is required here.
But Modelica allows strings to go over more than one line, gettext does not.
Expand All @@ -415,7 +415,7 @@ \section{Multilingual Descriptions}\label{multilingual-descriptions}
\end{nonnormative}

The keyword \lstinline!msgstr! is followed by the translation of \lstinline!msgid!.
With regard to control characters and line breaks, the same rules apply as for msgid.
With regard to control characters and line breaks, the same rules apply as for \lstinline!msgid!.
In the template file this string is empty by definition.
If this is empty in a language specific file the contents of \lstinline!msgid! may be used instead.

Expand All @@ -424,12 +424,12 @@ \section{Multilingual Descriptions}\label{multilingual-descriptions}
\item description strings of component declarations and classes
\item strings in the following annotations:
\begin{itemize}
\item Text.string, Text.textString
\item missingInnerMessage, obsolete, unassignedMessage
\item Dialog.[group|tab]
\item Dialog.[load|save]Selector.[caption|filter]
\item Documentation.[info|revisions]
\item Figure.title, Plot.title, Curve.legend
\item \lstinline!Text.string!, \lstinline!Text.textString!
\item \lstinline!missingInnerMessage!, \lstinline!obsolete!, \lstinline!unassignedMessage!
\item \lstinline!Dialog.group!, \lstinline!Dialog.tab!
\item \lstinline!Dialog.loadSelector.caption!, \lstinline!Dialog.loadSelector.filter!, \lstinline!Dialog.saveSelector.caption!, \lstinline!Dialog.saveSelector.filter!
\item \lstinline!Documentation.info!, \lstinline!Documentation.revisions!
\item \lstinline!Figure.title!, \lstinline!Plot.title!, \lstinline!Curve.legend!
\end{itemize}
\end{itemize}

Expand Down

0 comments on commit b9482c9

Please sign in to comment.