Stores languages and unifies translations.
Example::
| 1 2 3 4 5 |  | 
:param languages: Initial language or list of languages.
    Languages can be given as language codes or names, paths or names of
    language modules to load, or as :class:Language instances.
:param add_english: If True, English is added automatically.
:raises: :class:~robot.errors.DataError if a given language is not found.
:meth:add_language can be used to add languages after initialization.
Source code in src/robot/conf/languages.py
                    
    
Add new language.
:param lang: Language to add. Can be a language code or name, name or
    path of a language module to load, or a :class:Language instance.
:raises: :class:~robot.errors.DataError if the language is not found.
Language codes and names are passed to by :meth:Language.from_name.
Language modules are imported and :class:Language subclasses in them
loaded.
Source code in src/robot/conf/languages.py
              
    Base class for language definitions.
New translations can be added by extending this class and setting class attributes listed below.
Language :attr:code is got based on the class name and :attr:name
based on the docstring.
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
English
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Czech
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Dutch
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Bosnian
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Finnish
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
French
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
German
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Brazilian Portuguese
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Portuguese
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Thai
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Polish
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Ukrainian
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Spanish
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Russian
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Chinese Simplified
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Chinese Traditional
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Turkish
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Swedish
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Bulgarian
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Romanian
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Italian
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Hindi
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Vietnamese
New in Robot Framework 6.1.
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Japanese
New in Robot Framework 7.0.1.
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    
              Bases: Language
Korean
New in Robot Framework 7.1.
classmethod
  
¶
    Return language class based on given name.
Name can either be a language name (e.g. 'Finnish' or 'Brazilian Portuguese') or a language code (e.g. 'fi' or 'pt-BR'). Matching is case and space insensitive and the hyphen is ignored when matching language codes.
Raises ValueError if no matching language is found.
Source code in src/robot/conf/languages.py
              
    Language code like 'fi' or 'pt-BR'.
Got based on the class name. If the class name is two characters (or less), the code is just the name in lower case. If it is longer, a hyphen is added and the remainder of the class name is upper-cased.
This special property can be accessed also directly from the class.
Source code in src/robot/conf/languages.py
              
    Language name like 'Finnish' or 'Brazilian Portuguese'.
Got from the first line of the class docstring.
This special property can be accessed also directly from the class.