Объедините 2 файла GetText

Вы можете попробовать HttpClient jar скачать последнюю версию HttpClient jar, добавить ее в свой проект и загрузить файл, используя следующий метод:

private void uploadFile(String filePath) throws ParseException, IOException {

HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(YOUR_URL);

FileBody filebodyVideo = new FileBody(new File(filePath));
StringBody title = new StringBody("Filename: " + filePath);
StringBody description = new StringBody("This is a video of the agent");
StringBody code = new StringBody(realtorCodeStr);

MultipartEntity reqEntity = new MultipartEntity();
reqEntity.addPart("filePath", filebodyVideo);
reqEntity.addPart("title", title);
reqEntity.addPart("description", description);
reqEntity.addPart("code", code);
httppost.setEntity(reqEntity);

// DEBUG
System.out.println( "executing request " + httppost.getRequestLine( ) );
HttpResponse response = httpclient.execute( httppost );
HttpEntity resEntity = response.getEntity( );

// DEBUG
System.out.println( response.getStatusLine( ) );
if (resEntity != null) {
System.out.println( EntityUtils.toString( resEntity ) );
} // end if

if (resEntity != null) {
  resEntity.consumeContent( );
} // end if

httpclient.getConnectionManager( ).shutdown( );
}

10
задан Vaughn Cato 24 December 2012 в 22:14
поделиться

2 ответа

Я уверен msgmerge может быть принужден в выполнение просто этого. (Я имею в виду, concat Ваши два .po файла, и позволяю ему уладить вещи.)

3
ответ дан 3 December 2019 в 21:23
поделиться

"WinMerge" может быть очень полезным

0
ответ дан 3 December 2019 в 21:23
поделиться
Другие вопросы по тегам:

Похожие вопросы: