original_docstring: Recursive method: Searches for the directory containing the translations and moves up if it doesn't find it.
          It will stop searching if the base path was reached. It requires self.i18n to be reseted to be used.
docstring: Recursive method: Searches for the directory containing the translations and moves up if it doesn't find it.
  It will stop searching if the base path was reached. It requires self.i18n to be reseted to be used.
docstring_tokens: Recursive method : Searches for the directory containing the translations and moves up if it doesn ' t find it . It will stop searching if the base path was reached . It requires self . i18n to be reseted to be used .
code: def move_to_translation_folder(self, new_path = None):
          """Recursive method: Searches for the directory containing the translations and moves up if it doesn't find it.
          It will stop searching if the base path was reached. It requires self.i18n to be reseted to be used."""
          new_path = new_path or self.i18n + "views/" + self.after_views() + "/"
  
          if os.path.isdir(new_path):
              self.i18n = new_path 
          else:
              new_path = os.path.abspath(os.path.join(new_path, os.pardir))
              if os.path.split(new_path)[1] == 'views':
                  self.i18n = self.default_path()
              else:
                  self.move_to_translation_folder(new_path + "/")
  
          return self
code_tokens: def move_to_translation_folder ( self , new_path = None ) : new_path = new_path or self . i18n + "views/" + self . after_views ( ) + "/" if os . path . isdir ( new_path ) : self . i18n = new_path else : new_path = os . path . abspath ( os . path . join ( new_path , os . pardir ) ) if os . path . split ( new_path ) [ 1 ] == 'views' : self . i18n = self . default_path ( ) else : self . move_to_translation_folder ( new_path + "/" ) return self
short_docstring: Recursive method: Searches for the directory containing the translations and moves up if it doesn't find it.
short_docstring_tokens: Recursive method : Searches for the directory containing the translations and moves up if it doesn ' t find it .
comment: """Recursive method: Searches for the directory containing the translations and moves up if it doesn't find it.
          It will stop searching if the base path was reached. It requires self.i18n to be reseted to be used."""