isogeo_pysdk.translator module

Additional strings to be translated from Isogeo API.

class isogeo_pysdk.translator.IsogeoTranslator(lang='FR')

Bases : object

Makes easier the translation of Isogeo API specific strings.

Paramètres:

lang (str) – language code to apply. EN or FR.

tr(subdomain, string_to_translate='')

Returns translation of string passed.

Paramètres:
  • 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

Type renvoyé:

str