(path, locale, dir_name)
return
Uploads the specified localizable file to the translation system
Uploads the specified localizable file to the translation system
Uploads the specified localizable file to the translation system
def export_localizable_file(path, locale, dir_name):
    """Uploads the specified localizable file to the translation system"""
    print("Exporting {0}".format(path))

    if not os.path.exists(path):
        raise FileNotFoundError(path)

    file_name = os.path.basename(path)
    file_ext = os.path.splitext(file_name)[1][1:]

    if file_name == "InfoPlist.strings":
        file_name = INFO_PLIST_DICTIONARY[dir_name]

    # Now upload the file
    upload_file(path, file_ext, locale, file_name)
    return
def export_localizable_file ( path , locale , dir_name ) : print ( "Exporting {0}" . format ( path ) ) if not os . path . exists ( path ) : raise FileNotFoundError ( path ) file_name = os . path . basename ( path ) file_ext = os . path . splitext ( file_name ) [ 1 ] [ 1 : ] if file_name == "InfoPlist.strings" : file_name = INFO_PLIST_DICTIONARY [ dir_name ] # Now upload the file upload_file ( path , file_ext , locale , file_name ) return