parameters: (path)
return_statement: return
docstring: 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.
docstring_summary: 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.
docstring_tokens: 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 .
function: 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
function_tokens: 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