#NEWLINE# def create_lang_url( lang = None , url = None ) : #NEWLINE# #INDENT# from werkzeug.urls import url_quote_plus #NEWLINE# from kay.utils import url_for #NEWLINE# if ( not url ) : #NEWLINE# #INDENT# url = local . request . url #NEWLINE# #UNINDENT# return url_for ( 'i18n/set_language' , lang = url , next = url_quote_plus ( url ) )