Home | History | Annotate | Download | only in app_engine_server

Lines Matching full:langname

113     langName = 'en'
124 langName = self.request.cookies['android_developer_pref_lang']
127 #logging.info('==========================EXCEPTION: NO LANG COOKIE FOUND, USING [%s]', langName)
128 logging.info('==========================REQ INIT name [%s] langName [%s] resetLangCookie [%s]', reqUri, langName, resetLangCookie)
133 name = self.PreprocessUrl(reqUri, langName)
147 if (urlLangName != langName) or (langName == 'en'):
159 if self.isCleanUrl(name, langName, isValidIntl, isStripped):
163 if not self.CreateResponse(name, langName, isValidIntl, resetLangCookie):
168 self.CreateResponse(contentUri, langName, False, resetLangCookie)
176 self.CreateResponse(name, langName, isValidIntl, resetLangCookie)
184 self.RedirToIntl(name, self.intlString, langName)
186 def isCleanUrl(self, name, langName, isValidIntl, isStripped):
195 # logging.info(' >>>> isCleanUrl name [%s] langName [%s] isValidIntl [%s]', name, langName, isValidIntl)
196 if (langName == 'en' and not isStripped) or isValidIntl or not ('.html' in name) or (not isValidIntl and not langName):
199 def PreprocessUrl(self, name, langName):
225 # logging.info('--->PREPROCESSING REDIRECT [%s] to [%s] with langName [%s]', name, uri, langName)
231 def RedirToIntl(self, name, intlString, langName):
234 For non-en langName, builds the intl/lang string from a
236 a version of the file in langName. For en langName, simply
245 if not (langName == 'en'):
246 builtIntlLangUri = ''.join([intlString, langName, '/', name, '?', self.request.query_string])
254 def CreateResponse(self, name, langName, isValidIntl, resetLangCookie):
272 langName: The language id. Used as necessary to reset the
277 language cookie to 'langName'
284 logging.info('PROCESSING %s langName [%s] isValidIntl [%s] resetLang [%s]',
285 name, langName, isValidIntl, resetLangCookie)
315 langName)
319 (langName, strftime("%a, %d %b %Y %H:%M:%S", localtime(expireDate))))