Skip to content

Commit

Permalink
Use URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Mar 4, 2022
1 parent a046573 commit cf24955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,14 @@ \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 a subdirectory of the \filename{Resources} directory of the library with the name \filename{Language}.
They must be stored in the resources directory \filename{modelica://<LibraryName>/Resources/Language/}.

Two kind of files have to be provided:
\begin{enumerate}
\item Template file \filename{<LibraryName>.pot}.
\item Template file \filename{<LibraryName>.pot}, as the resource \filename{modelica://<LibraryName>/Resources/Language/<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}.
\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}.
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}.
\end{enumerate}
Expand Down

0 comments on commit cf24955

Please sign in to comment.