Skip to content

Commit

Permalink
Update chapters/packages.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson and henrikt-ma committed Oct 12, 2022
1 parent 75461dd commit c04aa55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/packages.tex
Expand Up @@ -351,10 +351,10 @@ \section{Multilingual Descriptions}\label{multilingual-descriptions}
\begin{example}
Consider:
\begin{lstlisting}[language=modelica]
annotation(, Text(string = "1st Frequency is %f1."),
Text(string = "2nd Frequency "+"is "+String(f2)+"."), $\ldots$);
annotation($\ldots$, Text(string = "1st Frequency: %f1"),
Text(string = "2nd Frequency: " + String(w2 / (2 * pi)), $\ldots$);
\end{lstlisting}
In this example only the string \lstinline!"1st Frequency is %f1."! can be translated, and no strings from the second line.
In this example only \lstinline!"1st Frequency is %f1."! can be translated; the second \lstinline!Text.string! doesn't consist entirely of concatenated string literals, and is hence completely excluded from translation.
\end{example}

The files to support translation must be provided along with the library.
Expand Down

0 comments on commit c04aa55

Please sign in to comment.