Skip to content

Commit

Permalink
replace angle brackets
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
gkurzbach and henrikt-ma committed May 6, 2022
1 parent 4cbf174 commit 280c678
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chapters/packages.tex
Expand Up @@ -336,16 +336,16 @@ \section{Multilingual Descriptions}\label{multilingual-descriptions}
\end{nonnormative}

The files to support translation must be provided by the developer of the library.
They must be stored in the resources directory \filename{modelica://<LibraryName>/Resources/Language/}.
They must be stored in the resources directory \filename{modelica://$\mathit{LibraryName}$/Resources/Language/}.

Two kind of files have to be provided:
\begin{enumerate}
\item Template file \filename{<LibraryName>.pot}, as the resource \filename{modelica://<LibraryName>/Resources/Language/<LibraryName>.pot}.
\item Template file \filename{$\mathit{LibraryName}$.pot}, as the resource \filename{modelica://$\mathit{LibraryName}$/Resources/Language/$\mathit{LibraryName}$.pot}.
It contains all necessary information to translate all descriptions, but no translations.
The pattern \filename{<LibraryName>} denotes the toplevel class name of the library.
\item One file for each supported language with the name \filename{<LibraryName>.<language>.po}, as the resource \filename{modelica://<LibraryName>/Resources/Language/<LibraryName>.<language>.po}.
The pattern \filename{$\mathit{LibraryName}$} denotes the toplevel class name of the library.
\item One file for each supported language with the name \filename{$\mathit{LibraryName}$.$\mathit{language}$.po}, as the resource \filename{modelica://$\mathit{LibraryName}$/Resources/Language/$\mathit{LibraryName}$.$\mathit{language}$.po}.
This file is a copy of the associated template file, but extended with the translations in the specified language.
The pattern \filename{<language>} stands for the ISO 639-1 language code, e.g. \filename{de} or \filename{en}.
The pattern \filename{$\mathit{language}$} stands for the ISO 639-1 language code, e.g., \filename{de} or \filename{en}.
\end{enumerate}

The files consist of a header and a body.
Expand Down

0 comments on commit 280c678

Please sign in to comment.