Skip to content

Model Languages

esseff edited this page Feb 14, 2024 · 3 revisions

Home > Model Development Topics > Model Languages

The human languages supported by a model.

This topic is under construction and/or revision.

Related topics

Topic contents

Introduction and outline

Content to follow.

[back to topic contents]

The languages statement

Each human language supported by a model has an associated language code given in the languages statement of the model.

A model is required to have a languages statement which declares at least one language.

For example,

languages
{
   EN, // English						
   FR  // Français
};

declares two languages EN and FR. These codes can be used in model code to provide language-specific documentation of model symbols. OpenM++ imposes no limitations on language codes, but it is strongly recommended to use the two-letter prefix of standard locale codes, as in the example above. Using upper case language codes helps them stand out in model code. So, the suggested code for Spanish is ES, and for German DE. The OpenM++ UI renders model-independent text, e.g. the word Run, using a human-language specific library. Libraries for EN and FR are currently available. If there is no library for a language specified in a model, the UI will display model-specific content in that language, but will fall back to one of the available libraries for model-independent text.

The first language listed in the languages statement is the default language of the model, which in this example is EN. The default language of the model is usually the language in which the source code is written, i.e. the choice of symbol names and the language of explanatory code comments. The language presented initially in the UI might not be the default language, but instead the language of the locale on the end user's device. An end user can switch languages dynamically in the UI.

The trailing comment after each language code provides a language-specific label for the language code declared previously in the line. The UI uses these labels to display human-language versions of the model's available languages when a user selects or changes the UI language.

[back to topic contents]

Home

Getting Started

Model development in OpenM++

Using OpenM++

Model Development Topics

OpenM++ web-service: API and cloud setup

Using OpenM++ from Python and R

Docker

OpenM++ Development

OpenM++ Design, Roadmap and Status

OpenM++ web-service API

GET Model Metadata

GET Model Extras

GET Model Run results metadata

GET Model Workset metadata: set of input parameters

Read Parameters, Output Tables or Microdata values

GET Parameters, Output Tables or Microdata values

GET Parameters, Output Tables or Microdata as CSV

GET Modeling Task metadata and task run history

Update Model Profile: set of key-value options

Update Model Workset: set of input parameters

Update Model Runs

Update Modeling Tasks

Run Models: run models and monitor progress

Download model, model run results or input parameters

Upload model runs or worksets (input scenarios)

Download and upload user files

User: manage user settings

Model run jobs and service state

Administrative: manage web-service state

Clone this wiki locally