isogeo_pysdk.translator module¶
Additionnal 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.
Parameters: lang (str) – language code to apply. EN or FR. -
tr
(subdomain, string_to_translate='')¶ 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
Return type: str
-