Esempio n. 1
0
def translate(request, translation_project, dir_path=None):
    if dir_path:
        pootle_path = translation_project.pootle_path + dir_path
        units_query = Unit.objects.filter(store__pootle_path__startswith=pootle_path)
    else:
        units_query = Unit.objects.filter(store__translation_project=translation_project)
    return translate_page(request, units_query)
Esempio n. 2
0
def translate(request, translation_project, dir_path=None):
    if dir_path:
        pootle_path = translation_project.pootle_path + dir_path
        request.directory = Directory.objects.get(pootle_path=pootle_path)
    else:
        request.directory = translation_project.directory
    return translate_page(request)
Esempio n. 3
0
File: view.py Progetto: julen/pootle
def translate(request, translation_project, dir_path=None):
    if dir_path:
        pootle_path = translation_project.pootle_path + dir_path
        request.directory = Directory.objects.get(pootle_path=pootle_path)
    else:
        request.directory = translation_project.directory
    return translate_page(request)
Esempio n. 4
0
def translate(request, translation_project, dir_path=None):
    if dir_path:
        pootle_path = translation_project.pootle_path + dir_path
        units_query = Unit.objects.filter(
            store__pootle_path__startswith=pootle_path)
    else:
        units_query = Unit.objects.filter(
            store__translation_project=translation_project)
    return translate_page(request, units_query)
Esempio n. 5
0
def translate(request, translation_project):
    return translate_page(request, translation_project.units)
Esempio n. 6
0
def translate(request, translation_project):
    units_queryset = Unit.objects.filter(
        store__translation_project=translation_project)
    return translate_page(request, units_queryset)
Esempio n. 7
0
def translate(request, translation_project):
    return translate_page(request, translation_project.units)
Esempio n. 8
0
def translate(request, translation_project):
    units_queryset = Unit.objects.filter(
        store__translation_project=translation_project)
    return translate_page(request, units_queryset)