Changeset 8441
- Timestamp:
- 07/27/07 22:00:44 (18 months ago)
- Files:
-
- 1 modified
-
trunk/src/common/xmpp/dispatcher_nb.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/common/xmpp/dispatcher_nb.py
r8014 r8441 24 24 ''' 25 25 26 import simplexml, sys 26 import simplexml, sys, locale 27 27 from xml.parsers.expat import ExpatError 28 28 from protocol import * … … 112 112 self._metastream.setAttr('xmlns:stream', NS_STREAMS) 113 113 self._metastream.setAttr('to', self._owner.Server) 114 if locale.getdefaultlocale()[0]: 115 self._metastream.setAttr('xml:lang', 116 locale.getdefaultlocale()[0].split('_')[0]) 114 117 self._owner.send("<?xml version='1.0'?>%s>" % str(self._metastream)[:-2]) 115 118
