(path)
return
Uploads the specified XIB file to the translation system.
    This method first converts the file to the .strings format,
    and then uploads it to the translation system.
Uploads the specified XIB file to the translation system.
    This method first converts the file to the .strings format,
    and then uploads it to the translation system.
Uploads the specified XIB file to the translation system . This method first converts the file to the . strings format and then uploads it to the translation system .
def export_xib(path):
    """Uploads the specified XIB file to the translation system.
    This method first converts the file to the .strings format,
    and then uploads it 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_name_noext = os.path.splitext(file_name)[0]
    strings_file_name = "{0}.strings".format(file_name_noext)
    strings_path = os.path.join(TEMP_DIR, strings_file_name)

    # Now we should generate a `.strings` file from this XIB
    xib_to_strings(path, strings_path)

    # Now that strings file is generated, we can upload it
    upload_file(strings_path, "strings", API_BASELOCALE, strings_file_name)
    return
def export_xib ( path ) : print ( "Exporting {0}" . format ( path ) ) if not os . path . exists ( path ) : raise FileNotFoundError ( path ) file_name = os . path . basename ( path ) file_name_noext = os . path . splitext ( file_name ) [ 0 ] strings_file_name = "{0}.strings" . format ( file_name_noext ) strings_path = os . path . join ( TEMP_DIR , strings_file_name ) # Now we should generate a `.strings` file from this XIB xib_to_strings ( path , strings_path ) # Now that strings file is generated, we can upload it upload_file ( strings_path , "strings" , API_BASELOCALE , strings_file_name ) return