toolkit/locales/gen_multilocale.py
author Emilio Cobos Álvarez <emilio@crisal.io>
Wed, 23 Jan 2019 14:48:42 +0000
changeset 515269 08c85a7f6bccaf072f95d06c82c4e9162a311cad
parent 459731 5dae26ba399f28facf16ea6b74caf026810201f4
permissions -rw-r--r--
Bug 1521884 - Use proper case for maxLength attribute in datetimebox widget. r=Gijs In non-HTML documents, getAttribute is not case-insensitive. Differential Revision: https://phabricator.services.mozilla.com/D17355

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import print_function, unicode_literals

import sys


def main(output, *locales):
    locales = list(locales)
    if "en-US" not in locales:
        locales.append("en-US")

    print(",".join(locales), file=output)


if __name__ == '__main__':
    main(sys.stdout, *sys.argv[1:])