예제 #1
0
def getReleaseLocalesForChunk(productName, appName, version, buildNumber,
                              sourceRepo, platform, chunks, thisChunk,
                              hg='https://hg.mozilla.org'):
    possibleLocales = getPlatformLocales(
        getShippedLocales(productName, appName, version, buildNumber,
                          sourceRepo, hg),
        (platform,)
    )[platform]
    return getLocalesForChunk(possibleLocales, chunks, thisChunk)
예제 #2
0
파일: l10n.py 프로젝트: bw1138/build-tools
def getReleaseLocalesForChunk(productName,
                              appName,
                              version,
                              buildNumber,
                              sourceRepo,
                              platform,
                              chunks,
                              thisChunk,
                              hg='https://hg.mozilla.org'):
    possibleLocales = getPlatformLocales(
        getShippedLocales(productName, appName, version, buildNumber,
                          sourceRepo, hg), (platform, ))[platform]
    return getLocalesForChunk(possibleLocales, chunks, thisChunk)
예제 #3
0
파일: l10n.py 프로젝트: magnyld/build-tools
def getReleaseLocalesFromJsonForChunk(stage_platform, chunks, thisChunk, jsonFile):
    possibleLocales = getPlatformLocalesFromJson(
        jsonFile, (stage_platform,))[stage_platform]
    return getLocalesForChunk(possibleLocales, chunks, thisChunk)
예제 #4
0
파일: l10n.py 프로젝트: bw1138/build-tools
def getReleaseLocalesFromJsonForChunk(stage_platform, chunks, thisChunk,
                                      jsonFile):
    possibleLocales = getPlatformLocalesFromJson(
        jsonFile, (stage_platform, ))[stage_platform]
    return getLocalesForChunk(possibleLocales, chunks, thisChunk)