ó PåNc@sôddlZddlZddlZddlZeeddƒdk rTejZneZej j eƒZ x<d D]4Z ej j e e dƒZej jeƒrsPqsqsWejdedeƒZd„Zd „Zeƒrêd „ZneZdS( iÿÿÿÿNtfrozent.s..tlocalethgtfallbackcCs†|dkr|S|jdƒ}djg|D]!}|rGtj|ƒpJd^q,ƒ}y|jtjdƒSWntk r|SXdS(s'Translate message. The message is looked up in the catalog to get a Unicode string, which is encoded in the local encoding before being returned. Important: message is restricted to characters in the encoding given by sys.getdefaultencoding() which is most likely 'ascii'. s u ttreplaceN(tNonetsplittjointttugettexttencodetencodingt LookupError(tmessaget paragraphstptu((s2/sys/lib/python2.7/site-packages/mercurial/i18n.pytgettexts 7 cCsPdtjkr"dtjkr"tStjjddƒjƒjdƒ}d|kS(NtHGPLAINt HGPLAINEXCEPTRt,ti18n(tostenvirontFalsetgettstripR(t exceptions((s2/sys/lib/python2.7/site-packages/mercurial/i18n.pyt_plain6s$cCs|S(N((R((s2/sys/lib/python2.7/site-packages/mercurial/i18n.pyt=s(Rs..(R RtsysRtgetattrRt executabletmodulet__file__tpathtdirnametbasetdirR t localedirtisdirt translationtTrueR Rt_(((s2/sys/lib/python2.7/site-packages/mercurial/i18n.pyts $