-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/i18n.pyc

σ
£ωqOc@@sΞdZddlmZddlZddlZddlZdad„Zd„Z	d„Z
d„Zd„Zd	„Z
dd
„Zdddd„Zd
„Zd„Zd„Zd„Zd„Zd„ZdS(s!i18n and l10n support for Bazaar.i(tabsolute_importNcC@stƒtj|ƒS(sJTranslate message. 
    
    :returns: translated message as unicode.
    (tinstallt
_translationstugettext(tmessage((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pytgettext#scC@stƒtj|||ƒS(s(Translate message with plural forms based on `number`.

    :param singular: English language message in singular form
    :param plural: English language message in plural form
    :param number: the number this message should be translated for

    :returns: translated message as unicode.
    (RRt	ungettext(tsingulartpluraltnumber((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pytngettext,s	cC@s|S(s?Mark message for translation but don't translate it right away.((tmsg((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pytN_9sc@s<tƒ|jdƒ}tj‰dj‡fd†|DƒƒS(s`Translate message per paragraph.

    :returns: concatenated translated message as unicode.
    u

c3@s'|]}|rˆ|ƒndVqdS(uN((t.0tp(R(s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pys	<genexpr>Hs(RtsplitRRtjoin(Rt
paragraphs((Rs//usr/lib/python2.7/dist-packages/bzrlib/i18n.pytgettext_per_paragraph>s	cC@stjƒadS(sMDo not allow i18n to be enabled.  Useful for third party users
    of bzrlib.N(t_gettexttNullTranslationsR(((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pytdisable_i18nKscC@s
tdk	S(s/Returns whether translations are in use or not.N(RtNone(((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pyt	installedRscC@stƒr
dSt|ƒadS(s$Enables gettext translations in bzr.N(Rtinstall_translationsR(tlang((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pyRWs	tbzrcC@sg|dkrtƒ}n|dk	r6|jdƒ}nd}tj|dt|ƒd|dtƒ}|S(sϋCreate a gettext translation object.
    
    :param lang: language to install.
    :param domain: translation domain to install.
    :param locale_base: plugins can specify their own directory.

    :returns: a gettext translations object to use
    t:t	localedirt	languagestfallbackN(Rt_get_current_localeRRttranslationt_get_locale_dirtTrue(Rtdomaintlocale_baseRR ((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pyR_s		cC@stƒtj|ƒdS(s~
    Add a fallback translations object.  Typically used by plugins.

    :param fallback: gettext.GNUTranslations object
    N(RRtadd_fallback(R((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pyR%vscC@s
dadS(sDisables gettext translations.N(RR(((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pyt	uninstall€scC@sαtjƒ}ttdtƒr^|dkrKtjjttj	|ƒƒ}ntjj
|dƒS|dkrˆtjjtt|ƒƒ}ntjjtjj
|dƒƒ}tjj
|ƒrΏ|Stjj
ttj|ƒddƒS(sReturns directory to find .mo translations file in, either local or system

    :param base: plugins can specify their own local directory
    tfrozenulocaleushareN(tsystgetfilesystemencodingtgetattrtFalseRtostpathtdirnametunicodet
executableRt__file__trealpathtexiststprefix(tbasetfs_enctdirpath((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pyR!†s!!cC@sxdD]}tjj|ƒrPqqWd}ddl}yddl}Wn!tk
rl|jƒd}n–X|jj	j
ƒ}|jj	jƒ}||kr¬||g}n	|g}g|D]}|jj|ƒ^qΌ}dj
g|D]}|rη|^qηƒ}|r|tjd<ndS(NtLANGUAGEtLC_ALLtLC_MESSAGEStLANGiR(R8sLC_ALLsLC_MESSAGESR;(R,tenvirontgetRtlocaletctypestImportErrortgetdefaultlocaletwindlltkernel32tGetUserDefaultLCIDtGetSystemDefaultLCIDtwindows_localeR(tiRR>R?t	lcid_usertlcid_systemtlcid((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pyt_check_win32_locale™s$

	%(cC@s›tjjdƒsQddlm}|jƒjdƒ}|rQ|tjd<|Sntjdkrjtƒnx*d	D]"}tjj|ƒ}|rq|SqqWdS(
NR8i(tconfigtlanguagetwin32R9R:R;(sLANGUAGEsLC_ALLsLC_MESSAGESsLANG(
R,R<R=tbzrlibRLtGlobalStackR(tplatformRKR(RLRRG((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pyR΄s


cC@sDtjjtttjƒƒƒ}td|d|ƒ}t|ƒ|S(stLoad the translations for a specific plugin.

    :param domain: Gettext domain name (usually 'bzr-PLUGINNAME')
    R#R$(	R,R-R.R/R1R(R)RR%(R#R$R ((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pytload_plugin_translationsΔs		
(t__doc__t
__future__RRRR,R(RRR
RRRRRRR%R&R!RKRRR(((s//usr/lib/python2.7/dist-packages/bzrlib/i18n.pyt<module>s&			
		
			
				

Copyright © 2017 || Recoded By Mr.Bumblebee