isogeo_pysdk.translator module

Additionnal strings to be translated from Isogeo API.

class isogeo_pysdk.translator.IsogeoTranslator(lang: str = 'FR')[source]

Bases: object

Makes easier the translation of Isogeo API specific strings.

Parameters:lang (str) – language code to apply. EN or FR.
tr(subdomain: str, string_to_translate: str = '') → str[source]

Returns translation of string passed.

Parameters:
  • subdomain (str) – subpart of strings dictionary. Must be one of self.translations.keys() i.e. ‘restrictions’
  • string_to_translate (str) – string you want to translate