Beispiel #1
0
def l10n_has_tag(ctx, tag, langfile=None):
    """Return boolean whether the given template's lang files have the given tag."""
    if langfile:
        return lang_file_has_tag(langfile, ctx['LANG'], tag)
    else:
        return template_has_tag(ctx['template'], ctx['LANG'], tag)
Beispiel #2
0
def l10n_has_tag(ctx, tag, langfile=None):
    """Return boolean whether the given lang file has the given tag."""
    langfile = langfile or ctx.get('langfile')
    return lang_file_has_tag(langfile, tag=tag)
Beispiel #3
0
def l10n_has_tag(ctx, tag, langfile=None):
    """Return boolean whether the given lang file has the given tag."""
    langfile = langfile or ctx.get('langfile')
    return lang_file_has_tag(langfile, tag=tag)