Ejemplo n.º 1
0
def main():
    option = 'all'
    if len(sys.argv) > 1:
        option = sys.argv[1]

    os.chdir('..')
    os.chdir('i18n')

    products = None
    if option == 'all':
        products = [getProduct(p) for p in getPotFiles()]
    elif option in list(PRODUCTS.keys()):
        products = (getLongProductName(option), )

    if products:
        os.system(__I18NDUDE + (' list --products %s') % (' '.join(products)))
Ejemplo n.º 2
0
Archivo: chart.py Proyecto: dtgit/dtedu
def main():
    option = 'all'
    if len(sys.argv) > 1:
        option = sys.argv[1]

    os.chdir('..')
    os.chdir('i18n')

    products = None
    if option == 'all':
        products = [getProduct(p) for p in getPotFiles()]
    elif option in PRODUCTS.keys():
        products = (getLongProductName(option), )

    if products:
        os.system(__I18NDUDE + (' combinedchart -o plone.gif --title "Plone 3.0" --products %s') % (' '.join(products)))
Ejemplo n.º 3
0
def main():
    option = 'all'
    if len(sys.argv) > 1:
        option = sys.argv[1]

    os.chdir('..')
    os.chdir('i18n')

    products = None
    if option == 'all':
        products = [getProduct(p) for p in getPotFiles()]
    elif option in list(PRODUCTS.keys()):
        products = (getLongProductName(option), )

    if products:
        os.system(__I18NDUDE + (' list -t --products %s') % (' '.join(products)))
Ejemplo n.º 4
0
def main():
    option = "all"
    if len(sys.argv) > 1:
        option = sys.argv[1]

    os.chdir("..")
    os.chdir("i18n")

    products = None
    if option == "all":
        products = [getProduct(p) for p in getPotFiles()]
    elif option in PRODUCTS.keys():
        products = (getLongProductName(option),)

    if products:
        os.system(__I18NDUDE + (" list -t --products %s") % (" ".join(products)))