Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1048 lines
39 KiB

  1. --- a/src/main.cpp
  2. +++ b/src/main.cpp
  3. @@ -73,9 +73,9 @@
  4. if(GlobalConfig().firstRun())
  5. {
  6. - if(QMessageBox::question(0, QObject::tr("Pierwsze uruchomienie"),
  7. - QObject::tr("To jest pierwsze uruchomienie programu QNapi. Czy chcesz go "
  8. - "teraz skonfigurować?"), QMessageBox::Yes | QMessageBox::No )
  9. + if(QMessageBox::question(0, QObject::tr("First Run"),
  10. + QObject::tr("This is the first launch of the program QNapi. Do you want to "
  11. + "configure settings?"), QMessageBox::Yes | QMessageBox::No )
  12. == QMessageBox::Yes )
  13. {
  14. app.showSettings();
  15. @@ -119,8 +119,8 @@
  16. if(invalidLang)
  17. {
  18. - if(QMessageBox::question(0, "QNapi", "Niepoprawny kod językowy!\n"
  19. - "Czy chcesz pobrać napisy w domyślnym języku?",
  20. + if(QMessageBox::question(0, "QNapi", "Invalid language code!\n"
  21. + "Do you want to download the subtitles in the default language?",
  22. QMessageBox::Yes | QMessageBox::No)
  23. != QMessageBox::Yes)
  24. {
  25. @@ -216,7 +216,7 @@
  26. {
  27. Q_UNUSED(sig);
  28. - qDebug() << "\nQNapi: usuwanie plików tymczasowych...";
  29. + qDebug() << "\nQNapi: deleting temporary files...";
  30. QString tmpPath = GlobalConfig().tmpPath();
  31. --- a/src/qnapi.cpp
  32. +++ b/src/qnapi.cpp
  33. @@ -76,7 +76,7 @@
  34. }
  35. else
  36. {
  37. - errorMsg = QString("Nieobsługiwany silnik pobierania: %1.").arg(engine);
  38. + errorMsg = QString("Unsupported download engine: %1.").arg(engine);
  39. return false;
  40. }
  41. }
  42. @@ -149,7 +149,7 @@
  43. if(!result)
  44. {
  45. - errorMsg = "Nie znaleziono napisów!";
  46. + errorMsg = "No subtitles found!";
  47. }
  48. return result;
  49. --- a/src/qnapiapp.cpp
  50. +++ b/src/qnapiapp.cpp
  51. @@ -86,43 +86,43 @@
  52. void QNapiApp::createTrayIcon()
  53. {
  54. - getAction = new QAction(tr("Pobierz napisy"), 0);
  55. + getAction = new QAction(tr("Download subtitles"), 0);
  56. connect(getAction, SIGNAL(triggered()), this, SLOT(showOpenDialog()));
  57. - scanAction = new QAction(tr("Skanuj katalogi"), 0);
  58. + scanAction = new QAction(tr("Scan catalogs"), 0);
  59. connect(scanAction, SIGNAL(triggered()), this, SLOT(showScanDialog()));
  60. - convertAction = new QAction(tr("Konwertuj napisy"), 0);
  61. + convertAction = new QAction(tr("Convert subtitles"), 0);
  62. connect(convertAction, SIGNAL(triggered()), this, SLOT(showConvertDialog()));
  63. - napiGetAction = new QAction(tr("Pobierz napisy"), 0);
  64. + napiGetAction = new QAction(tr("Download subtitles"), 0);
  65. connect(napiGetAction, &QAction::triggered, [this] { showOpenDialog("NapiProjekt"); });
  66. - napiCreateUserAction = new QAction(tr("Załóż konto"), 0);
  67. + napiCreateUserAction = new QAction(tr("Create an account"), 0);
  68. connect(napiCreateUserAction, &QAction::triggered, [this] { showCreateAccount("NapiProjekt"); });
  69. - osGetAction = new QAction(tr("Pobierz napisy"), 0);
  70. + osGetAction = new QAction(tr("Download subtitles"), 0);
  71. connect(osGetAction, &QAction::triggered, [this] { showOpenDialog("OpenSubtitles"); });
  72. - osAddAction = new QAction(tr("Dodaj napisy"), 0);
  73. + osAddAction = new QAction(tr("Upload subtitles"), 0);
  74. connect(osAddAction, SIGNAL(triggered()), this, SLOT(showOSUploadDialog()));
  75. - osCreateUserAction = new QAction(tr("Załóż konto"), 0);
  76. + osCreateUserAction = new QAction(tr("Create an account"), 0);
  77. connect(osCreateUserAction, &QAction::triggered, [this] { showCreateAccount("OpenSubtitles"); });
  78. - napisy24GetAction = new QAction(tr("Pobierz napisy"), 0);
  79. + napisy24GetAction = new QAction(tr("Download subtitles"), 0);
  80. connect(napisy24GetAction, &QAction::triggered, [this] { showOpenDialog("Napisy24"); });
  81. - napisy24CreateUserAction = new QAction(tr("Załóż konto"), 0);
  82. + napisy24CreateUserAction = new QAction(tr("Create an account"), 0);
  83. connect(napisy24CreateUserAction, &QAction::triggered, [this] { showCreateAccount("OpenSNapisy24ubtitles"); });
  84. - settingsAction = new QAction(tr("Opcje"), 0);
  85. + settingsAction = new QAction(tr("Settings"), 0);
  86. connect(settingsAction, SIGNAL(triggered()), this, SLOT(showSettings()));
  87. - aboutAction = new QAction(tr("O programie"), 0);
  88. + aboutAction = new QAction(tr("About"), 0);
  89. connect(aboutAction, SIGNAL(triggered()), this, SLOT(showAbout()));
  90. - quitAction = new QAction(tr("Zakończ"), 0);
  91. + quitAction = new QAction(tr("Quit"), 0);
  92. connect(quitAction, SIGNAL(triggered()), this, SLOT(tryQuit()));
  93. napiSubMenu = new QMenu(0);
  94. @@ -178,7 +178,7 @@
  95. if(!openDialog)
  96. {
  97. openDialog = new QNapiOpenDialog(0,
  98. - tr("Wybierz jeden lub więcej plików z filmami"),
  99. + tr("Select one or more video files"),
  100. GlobalConfig().previousDialogPath(),
  101. QNapiOpenDialog::Movies);
  102. }
  103. --- a/src/qnapicli.cpp
  104. +++ b/src/qnapicli.cpp
  105. @@ -108,7 +108,7 @@
  106. lang = QNapiLanguage(p).toTwoLetter();
  107. if(lang.isEmpty())
  108. {
  109. - printCli(QString("Niepoprawny kod jezykowy: %1").arg(p));
  110. + printCli(QString("Invalid language code: %1").arg(p));
  111. return false;
  112. }
  113. }
  114. @@ -171,7 +171,7 @@
  115. }
  116. if((mode == CM_CONSOLE || mode == CM_QUIET) && (movieList.isEmpty())) {
  117. - printCli("Nie znaleziono pliku!");
  118. + printCli("File not found!");
  119. return EC_MOVIE_FILE_NOT_FOUND;
  120. }
  121. @@ -183,20 +183,20 @@
  122. if(!QNapi::checkP7ZipPath())
  123. {
  124. - printCli("Sciezka do programu p7zip jest nieprawidlowa! Sprawdz swoje ustawienia.");
  125. + printCli("Path to the program p7zip is incorrect! Check your settings.");
  126. return EC_P7ZIP_UNAVAILABLE;
  127. }
  128. if(!QNapi::checkTmpPath())
  129. {
  130. - printCli("Nie można pisac do katalogu tymczasowego! Sprawdz swoje ustawienia.");
  131. + printCli("Can not write to the temporary directory! Check your settings.");
  132. return EC_CANNOT_WRITE_TMP_DIR;
  133. }
  134. if(!napi.addEngines(GlobalConfig().enginesList()))
  135. {
  136. - printCli(QString("Blad: ") + napi.error());
  137. + printCli(QString("Error: ") + napi.error());
  138. return EC_UNSUPPORTED_ENGINE;
  139. }
  140. @@ -208,19 +208,19 @@
  141. foreach(QString movie, movieList)
  142. {
  143. - printCli(QString(QString(" * Pobieranie napisow dla '%1'")).arg(QFileInfo(movie).fileName()));
  144. + printCli(QString(QString(" * Download subtitle for '%1'")).arg(QFileInfo(movie).fileName()));
  145. napi.setMoviePath(movie);
  146. if(!napi.checkWritePermissions())
  147. {
  148. - printCli(QString(" Brak uprawnien zapisu do katalogu '%1'!").arg(QFileInfo(movie).path()));
  149. + printCli(QString(" No permission to write to the directory '%1'!").arg(QFileInfo(movie).path()));
  150. return EC_NO_WRITE_PERMISSIONS;
  151. }
  152. napi.clearSubtitlesList();
  153. - printCli(QString(QString(" Obliczanie sum kontrolnych...")));
  154. + printCli(QString(QString(" Calculation of checksums...")));
  155. napi.checksum();
  156. bool found = false;
  157. @@ -230,9 +230,9 @@
  158. {
  159. foreach(QString e, napi.listLoadedEngines())
  160. {
  161. - printCli(QString(QString(" Szukanie napisow [%1] (%2)...").arg(lang, e)));
  162. + printCli(QString(QString(" Search subtitle [%1] (%2)...").arg(lang, e)));
  163. found = napi.lookForSubtitles(lang, e) || found;
  164. - printCli(QString(QString(" Szukanie napisow w jezyku zapasowym [%1] (%2)...").arg(langBackup, e)));
  165. + printCli(QString(QString(" Search subtitle for another language [%1] (%2)...").arg(langBackup, e)));
  166. found = napi.lookForSubtitles(langBackup, e) || found;
  167. }
  168. }
  169. @@ -240,7 +240,7 @@
  170. {
  171. foreach(QString e, napi.listLoadedEngines())
  172. {
  173. - printCli(QString(QString(" Szukanie napisow [%1] (%2)...").arg(lang, e)));
  174. + printCli(QString(QString(" Search subtitle [%1] (%2)...").arg(lang, e)));
  175. found = napi.lookForSubtitles(lang, e) || found;
  176. if(sp == SP_BREAK_IF_FOUND && found)
  177. @@ -250,7 +250,7 @@
  178. if(!found && !langBackup.isEmpty()) {
  179. foreach(QString e, napi.listLoadedEngines())
  180. {
  181. - printCli(QString(QString(" Szukanie napisow w jezyku zapasowym [%1] (%2)...").arg(langBackup, e)));
  182. + printCli(QString(QString(" Search subtitle for another language [%1] (%2)...").arg(langBackup, e)));
  183. found = napi.lookForSubtitles(langBackup, e) || found;
  184. if(sp == SP_BREAK_IF_FOUND && found)
  185. @@ -262,7 +262,7 @@
  186. if(!found)
  187. {
  188. - printCli(QString(QString(" Nie znaleziono napisow!")));
  189. + printCli(QString(QString(" Subtitles not found!")));
  190. return EC_SUBTITLES_NOT_FOUND;
  191. }
  192. @@ -281,8 +281,8 @@
  193. {
  194. bool ok = false;
  195. - printCli(QString(" 0)\tNie pobieraj napisow dla tego filmu"));
  196. - printCli(" Znalezione napisy:");
  197. + printCli(QString(" 0)\tDo not download subtitle for this video"));
  198. + printCli(" Found subtitles:");
  199. int i = 1;
  200. @@ -309,7 +309,7 @@
  201. while(!ok)
  202. {
  203. - std::cout << " Wybierz napisy do pobrania: ";
  204. + std::cout << " Select subtitles to download: ";
  205. char line[8];
  206. std::cin.getline(line, 8);
  207. @@ -317,13 +317,13 @@
  208. if(!ok)
  209. {
  210. - printCli(" Wpisz liczbe!");
  211. + printCli(" Enter a number!");
  212. std::cin.clear();
  213. }
  214. else if((selIdx > list.size()) || (selIdx < 0))
  215. {
  216. ok = false;
  217. - printCli(" Wpisz liczbe z listy!");
  218. + printCli(" Enter a number from the list!");
  219. }
  220. }
  221. @@ -336,30 +336,30 @@
  222. if(selIdx == -1) continue;
  223. - printCli(QString(QString(" Pobieranie napisow z serwera...")));
  224. + printCli(QString(QString(" Server to download subtitle from...")));
  225. if(!napi.download(selIdx))
  226. {
  227. - printCli(QString(QString(" Nie udalo sie pobrac napisow!")));
  228. + printCli(QString(QString(" Unable to download subtitles!")));
  229. return EC_COULD_NOT_DOWNLOAD;
  230. }
  231. - printCli(QString(QString(" Rozpakowywanie napisow...")));
  232. + printCli(QString(QString(" Unpacking subtitle file...")));
  233. if(!napi.unpack(selIdx))
  234. {
  235. - printCli(QString(QString(" Nie udało sie poprawnie rozpakowac napisow!")));
  236. + printCli(QString(QString(" Failed to unpack the subtitle file!")));
  237. return EC_COULD_NOT_UNARCHIVE;
  238. }
  239. if(napi.ppEnabled())
  240. {
  241. - printCli(QString(QString(" Przetwarzanie pobranych napisow...")));
  242. + printCli(QString(QString(" Processing downloaded subtitle file...")));
  243. napi.pp();
  244. }
  245. - printCli(QString(QString(" Dopasowywanie napisow...")));
  246. + printCli(QString(QString(" Adjusting the subtitle...")));
  247. if(!napi.match())
  248. {
  249. - printCli(QString(QString(" Nie udalo sie dopasowac napisow!")));
  250. + printCli(QString(QString(" Could not adjust the subtitle!")));
  251. return EC_COULD_NOT_MATCH;
  252. }
  253. @@ -371,7 +371,7 @@
  254. void QNapiCli::printHeader()
  255. {
  256. - printCli(QString("QNapi %1, %2\nwersja Qt: %3\n")
  257. + printCli(QString("QNapi %1, %2\nQt version: %3\n")
  258. .arg(QNAPI_DISPLAYABLE_VERSION)
  259. .arg(QNAPI_URL)
  260. .arg(qVersion()));
  261. @@ -379,25 +379,25 @@
  262. void QNapiCli::printHelp()
  263. {
  264. - printCli(QString("QNapi rozprowadzany jest na warunkach licencji GNU General Public License v2.\n"));
  265. - printCli(QString("Skladnia: %1 [opcje] [lista plikow]").arg(QFileInfo(arguments().at(0)).fileName()));
  266. - printCli(QString("Dostepne opcje:"));
  267. - printCli(QString(" -c, --console pobieranie napisow z konsoli"));
  268. - printCli(QString(" -q, --quiet pobiera napisy nie wypisujac zadnych komunikatow"));
  269. - printCli(QString(" ani nie pokazujac zadnych okien (implikuje -d)\n"));
  270. - printCli(QString(" -s, --show-list pokazuj liste napisow (dziala tylko z -c)"));
  271. - printCli(QString(" -d, --dont-show-list nie pokazuj listy napisow (dziala tylko z -c)\n"));
  272. - printCli(QString(" -l, --lang [jezyk] preferowany jezyk napisow"));
  273. - printCli(QString(" -lb,--lang-backup [jezyk] zapasowy jezyk napisow\n"));
  274. - printCli(QString(" -o, --options wywoluje okno konfiguracji programu (tylko GUI)\n"));
  275. - printCli(QString(" -h, --help pokazuje tekst pomocy"));
  276. - printCli(QString(" -hl,--help-languages listuje jezyki, w jakich mozna pobierac napisy\n"));
  277. + printCli(QString("QNapi is distributed under the GNU General Public License v2.\n"));
  278. + printCli(QString("Syntax: %1 [options] [list of files]").arg(QFileInfo(arguments().at(0)).fileName()));
  279. + printCli(QString("Available options:"));
  280. + printCli(QString(" -c, --console Download subtitles using console"));
  281. + printCli(QString(" -q, --quiet Download subtitles quietly without showing"));
  282. + printCli(QString(" any messages or windows (implies -d)\n"));
  283. + printCli(QString(" -s, --show-list show a list of subtitles (works only with -c)"));
  284. + printCli(QString(" -d, --dont-show-list do not show a list of subtitles (works only with -c)\n"));
  285. + printCli(QString(" -l, --lang Preferred subtitle language"));
  286. + printCli(QString(" -lb,--lang-backup Alternative subtitle language\n"));
  287. + printCli(QString(" -o, --options Show program options (only GUI)\n"));
  288. + printCli(QString(" -h, --help Show help text"));
  289. + printCli(QString(" -hl,--help-languages Lists the languages in which able to download subtitles\n"));
  290. }
  291. void QNapiCli::printHelpLanguages()
  292. {
  293. - printCli(QString("Oto lista rozpoznawanych przez QNapi jezykow i odpowiadajacym"));
  294. - printCli(QString("im dwuliterowych kodow:\n"));
  295. + printCli(QString("List of languages recognized by QNapi, including corresponding"));
  296. + printCli(QString("two-letter language codes:\n"));
  297. QNapiLanguage L, LB;
  298. QStringList langs = L.listLanguages();
  299. @@ -411,13 +411,13 @@
  300. L.setLanguage(GlobalConfig().language());
  301. LB.setLanguage(GlobalConfig().languageBackup());
  302. - printCli(QString("\nAktualnie ustawiony domyslny jezyk napisow: %1 (%2)")
  303. + printCli(QString("\nCurrent default subtitle language: %1 (%2)")
  304. .arg(L.toFullName()).arg(L.toTwoLetter()));
  305. if(LB.toFullName().isEmpty()) {
  306. - printCli(QString("Brak ustawionego zapasowego jezyka napisow"));
  307. + printCli(QString("No alternative subtitle language has been set"));
  308. } else {
  309. - printCli(QString("Aktualnie ustawiony zapasowy jezyk napisow: %1 (%2)")
  310. + printCli(QString("Current alternative subtitle language: %1 (%2)")
  311. .arg(LB.toFullName()).arg(LB.toTwoLetter()));
  312. }
  313. }
  314. --- a/src/qnapilanguage.cpp
  315. +++ b/src/qnapilanguage.cpp
  316. @@ -75,149 +75,149 @@
  317. {
  318. codes2l << "sq";
  319. codes3l << "alb";
  320. - names << tr("Albański");
  321. + names << tr("Albanian");
  322. codes2l << "en";
  323. codes3l << "eng";
  324. - names << tr("Angielski");
  325. + names << tr("English");
  326. codes2l << "ar";
  327. codes3l << "ara";
  328. - names << tr("Arabski");
  329. + names << tr("Arabic");
  330. codes2l << "bg";
  331. codes3l << "bul";
  332. - names << tr("Bułgarski");
  333. + names << tr("Bulgarian");
  334. codes2l << "zh";
  335. codes3l << "chi";
  336. - names << tr("Chiński");
  337. + names << tr("Chinese");
  338. codes2l << "hr";
  339. codes3l << "hrv";
  340. - names << tr("Chorwacki");
  341. + names << tr("Croatian");
  342. codes2l << "cs";
  343. codes3l << "cze";
  344. - names << tr("Czeski");
  345. + names << tr("Czech");
  346. codes2l << "da";
  347. codes3l << "dan";
  348. - names << tr("Duński");
  349. + names << tr("Danish");
  350. codes2l << "et";
  351. codes3l << "est";
  352. - names << tr("Estoński");
  353. + names << tr("Estonian");
  354. codes2l << "fi";
  355. codes3l << "fin";
  356. - names << tr("Fiński");
  357. + names << tr("Finnish");
  358. codes2l << "fr";
  359. codes3l << "fre";
  360. - names << tr("Francuski");
  361. + names << tr("French");
  362. codes2l << "gl";
  363. codes3l << "glg";
  364. - names << tr("Galicyjski");
  365. + names << tr("Galician");
  366. codes2l << "el";
  367. codes3l << "ell";
  368. - names << tr("Grecki");
  369. + names << tr("Greek");
  370. codes2l << "he";
  371. codes3l << "heb";
  372. - names << tr("Hebrajski");
  373. + names << tr("Hebrew");
  374. codes2l << "es";
  375. codes3l << "spa";
  376. - names << tr("Hiszpanski");
  377. + names << tr("Spanish");
  378. codes2l << "nl";
  379. codes3l << "dut";
  380. - names << tr("Holenderski");
  381. + names << tr("Dutch");
  382. codes2l << "id";
  383. codes3l << "ind";
  384. - names << tr("Indonezyjski");
  385. + names << tr("Indonesian");
  386. codes2l << "ja";
  387. codes3l << "jpn";
  388. - names << tr("Japoński");
  389. + names << tr("Japanese");
  390. codes2l << "ko";
  391. codes3l << "kor";
  392. - names << tr("Koreański");
  393. + names << tr("Korean");
  394. codes2l << "mk";
  395. codes3l << "mac";
  396. - names << tr("Macedoński");
  397. + names << tr("Macedonian");
  398. codes2l << "de";
  399. codes3l << "ger";
  400. - names << tr("Niemiecki");
  401. + names << tr("German");
  402. codes2l << "no";
  403. codes3l << "nor";
  404. - names << tr("Norweski");
  405. + names << tr("Norwegian");
  406. codes2l << "oc";
  407. codes3l << "oci";
  408. - names << tr("Oksytański");
  409. + names << tr("Occitan");
  410. codes2l << "fa";
  411. codes3l << "per";
  412. - names << tr("Perski (farsi)");
  413. + names << tr("Persian (farsi)");
  414. codes2l << "pl";
  415. codes3l << "pol";
  416. - names << tr("Polski");
  417. + names << tr("Polish");
  418. codes2l << "pt";
  419. codes3l << "por";
  420. - names << tr("Portugalski");
  421. + names << tr("Portuguese");
  422. codes2l << "pb";
  423. codes3l << "pob";
  424. - names << tr("Portugalski-BR");
  425. + names << tr("Portuguese-BR");
  426. codes2l << "ru";
  427. codes3l << "rus";
  428. - names << tr("Rosyjski");
  429. + names << tr("Russian");
  430. codes2l << "ro";
  431. codes3l << "rum";
  432. - names << tr("Rumuński");
  433. + names << tr("Romanian");
  434. codes2l << "sr";
  435. codes3l << "scc";
  436. - names << tr("Serbski");
  437. + names << tr("Serbian");
  438. codes2l << "sl";
  439. codes3l << "slv";
  440. - names << tr("Słoweński");
  441. + names << tr("Slovenian");
  442. codes2l << "sv";
  443. codes3l << "swe";
  444. - names << tr("Szwedzki");
  445. + names << tr("Swedish");
  446. codes2l << "sk";
  447. codes3l << "slo";
  448. - names << tr("Słowacki");
  449. + names << tr("Slovak");
  450. codes2l << "tr";
  451. codes3l << "tur";
  452. - names << tr("Turecki");
  453. + names << tr("Turkish");
  454. codes2l << "vi";
  455. codes3l << "vie";
  456. - names << tr("Wietnamski");
  457. + names << tr("Vietnamese");
  458. codes2l << "hu";
  459. codes3l << "hun";
  460. - names << tr("Węgierski");
  461. + names << tr("Hungarian");
  462. codes2l << "it";
  463. codes3l << "ita";
  464. - names << tr("Włoski");
  465. + names << tr("Italian");
  466. }
  467. --- a/src/qnapiopendialog.cpp
  468. +++ b/src/qnapiopendialog.cpp
  469. @@ -25,11 +25,11 @@
  470. if(filterMode == Movies)
  471. {
  472. - setNameFilter(tr("Filmy (%1);;Wszystkie pliki (*.*)").arg(GlobalConfig().movieExtensionsFilter()));
  473. + setNameFilter(tr("Videos (%1);;All files (*.*)").arg(GlobalConfig().movieExtensionsFilter()));
  474. }
  475. else if(filterMode == Subtitles)
  476. {
  477. - setNameFilter(tr("Napisy (%1);;Wszystkie pliki (*.*)").arg(GlobalConfig().subtitleExtensionsFilter()));
  478. + setNameFilter(tr("Subtitles (%1);;All files (*.*)").arg(GlobalConfig().subtitleExtensionsFilter()));
  479. }
  480. if(QFileInfo(init_path).isDir())
  481. @@ -45,7 +45,7 @@
  482. sideUrls << QString(QDir::homePath() + "/Movies") << QString(QDir::homePath() + "/movies")
  483. << QString(QDir::homePath() + "/Video") << QString(QDir::homePath() + "/video")
  484. - << QString(QDir::homePath() + "/Filmy") << QString(QDir::homePath() + "/filmy")
  485. + << QString(QDir::homePath() + "/Videos") << QString(QDir::homePath() + "/videos")
  486. << QString(QDir::homePath() + "/Wideo") << QString(QDir::homePath() + "/wideo");
  487. QList<QUrl> urls = sidebarUrls();
  488. --- a/src/forms/frmlistsubtitles.cpp
  489. +++ b/src/forms/frmlistsubtitles.cpp
  490. @@ -33,8 +33,8 @@
  491. void frmListSubtitles::setFileName(const QString & name)
  492. {
  493. - ui.lbSelectSubtitles->setText(QString( "Z poniższej listy wybierz napisy, które"
  494. - " chcesz dopasować do pliku<br><br><b>%1</b>")
  495. + ui.lbSelectSubtitles->setText(QString( "Select the subtitle which you want to"
  496. + " adjust to the video file<br><br><b>%1</b>")
  497. .arg(name));
  498. }
  499. @@ -94,8 +94,8 @@
  500. if(ui.twSubtitles->selectedItems().size() == 0)
  501. {
  502. QMessageBox::warning( this,
  503. - "Nie wybrano napisów z listy",
  504. - "Musisz wybrać napisy z listy!");
  505. + "No subtitle selected",
  506. + "You need to select a subtitle from the list!");
  507. }
  508. else
  509. {
  510. --- a/src/forms/frmconvert.cpp
  511. +++ b/src/forms/frmconvert.cpp
  512. @@ -91,7 +91,7 @@
  513. QString detectedFormat = subConverter.detectFormat(srcSubFileName);
  514. if(detectedFormat.isEmpty())
  515. {
  516. - ui.lbDetectedFormatValue->setText(tr("niepoprawny"));
  517. + ui.lbDetectedFormatValue->setText(tr("incorrect"));
  518. ui.lbDetectedFormatValue->setStyleSheet("QLabel { color: red }");
  519. } else {
  520. ui.lbDetectedFormatValue->setText(detectedFormat);
  521. @@ -136,7 +136,7 @@
  522. fpsNeeded = (srcSF->isTimeBased() != targetSF->isTimeBased()) || (ui.cbDelaySubtitles->isChecked() && !targetSF->isTimeBased());
  523. QString targetDefaultExt = targetSF->defaultExtension();
  524. - ui.cbTargetExtension->setItemText(0, tr("Domyślne (%1)").arg(targetDefaultExt));
  525. + ui.cbTargetExtension->setItemText(0, tr("Default (%1)").arg(targetDefaultExt));
  526. generateTargetFileName();
  527. }
  528. @@ -165,7 +165,7 @@
  529. void frmConvert::movieFPSSelectClicked()
  530. {
  531. - QNapiOpenDialog openMovie(this, tr("Wybierz plik z filmem"),
  532. + QNapiOpenDialog openMovie(this, tr("Select a video file"),
  533. QFileInfo(ui.leSrcSubFile->text()).path(),
  534. QNapiOpenDialog::Movies);
  535. if(openMovie.selectFile())
  536. @@ -185,7 +185,7 @@
  537. void frmConvert::targetMovieFPSSelectClicked()
  538. {
  539. - QNapiOpenDialog openMovie(this, tr("Wybierz plik z filmem"),
  540. + QNapiOpenDialog openMovie(this, tr("Select a video file"),
  541. QFileInfo(ui.leSrcSubFile->text()).path(),
  542. QNapiOpenDialog::Movies);
  543. if(openMovie.selectFile())
  544. @@ -249,11 +249,11 @@
  545. fpsRatio,
  546. delayOffset))
  547. {
  548. - QMessageBox::information(this, tr("Przekonwertowano napisy"),
  549. - tr("Poprawnie zmieniono format napisów z '%1' na '%2'").arg(srcFormat, targetFormat));
  550. + QMessageBox::information(this, tr("Converted subtitles"),
  551. + tr("Changed subtitles format from '%1' to '%2'").arg(srcFormat, targetFormat));
  552. } else {
  553. - QMessageBox::warning(this, tr("Problem podczas konwertowania napisów"),
  554. - tr("Wystąpił problem podczas zamiany formatu napisów!"));
  555. + QMessageBox::warning(this, tr("An error occured while converting strings"),
  556. + tr("Could not change subtitle format!"));
  557. }
  558. }
  559. --- a/src/forms/frmabout.cpp
  560. +++ b/src/forms/frmabout.cpp
  561. @@ -21,7 +21,7 @@
  562. setAttribute(Qt::WA_QuitOnClose, false);
  563. ui.lbTitle->setText(QString("QNapi ") + QNAPI_DISPLAYABLE_VERSION);
  564. - ui.lbQtVersion->setText(QString("Wersja Qt: ") + qVersion());
  565. + ui.lbQtVersion->setText(QString("Qt version: ") + qVersion());
  566. QRect position = frameGeometry();
  567. position.moveCenter(QDesktopWidget().availableGeometry().center());
  568. --- a/src/forms/frmoptions.cpp
  569. +++ b/src/forms/frmoptions.cpp
  570. @@ -39,7 +39,7 @@
  571. #endif
  572. QString tlcode;
  573. - ui.cbLangBackup->addItem("Brak", QVariant(""));
  574. + ui.cbLangBackup->addItem("Error", QVariant(""));
  575. foreach(QString lang, QNapiLanguage("").listLanguages())
  576. {
  577. tlcode = QNapiLanguage(lang).toTwoLetter();
  578. @@ -97,14 +97,14 @@
  579. void frmOptions::select7zPath()
  580. {
  581. - QString path7z = QFileDialog::getOpenFileName(this, tr("Wskaż ścieżkę do programu 7z"),
  582. + QString path7z = QFileDialog::getOpenFileName(this, tr("Specify the path for 7z executable"),
  583. QFileInfo(ui.le7zPath->text()).path());
  584. if(!path7z.isEmpty())
  585. {
  586. if(!QFileInfo(path7z).isExecutable())
  587. - QMessageBox::warning(this, tr("Niepoprawna ścieżka"),
  588. - tr("Wskazana przez Ciebie ścieżka do programu 7z jest niepoprawna. Jeśli nie możesz "
  589. - "odnaleźć programu 7z, spróbuj zainstalować pakiet p7zip-full."));
  590. + QMessageBox::warning(this, tr("Invalid path"),
  591. + tr("Defined path to 7z executable is invalid. If you can not "
  592. + "locate 7z executable, try installing p7zip-full package."));
  593. else
  594. ui.le7zPath->setText(path7z);
  595. }
  596. @@ -123,7 +123,7 @@
  597. void frmOptions::selectTmpPath()
  598. {
  599. QString tmpDir = QFileDialog::getExistingDirectory(this,
  600. - tr("Wskaż katalog tymczasowy"),
  601. + tr("Specify temporary directory"),
  602. QFileInfo(ui.leTmpPath->text()).path(),
  603. QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
  604. if(!tmpDir.isEmpty())
  605. @@ -171,8 +171,8 @@
  606. {
  607. item->setCheckState(Qt::Checked);
  608. QMessageBox::warning(this,
  609. - "Ostrzeżenie",
  610. - "Przynajmniej jeden moduł pobierania musi pozostać aktywny!");
  611. + "Warning",
  612. + "At least one module collection must remain active!");
  613. }
  614. }
  615. @@ -222,7 +222,7 @@
  616. QString engineInfo = n.engineByName(engineName)->engineInfo();
  617. QMessageBox::information(this,
  618. - QString("Informacje o silniku %1").arg(engineName),
  619. + QString("Engine information %1").arg(engineName),
  620. engineInfo);
  621. }
  622. @@ -230,14 +230,14 @@
  623. {
  624. if(format == 0)
  625. {
  626. - ui.cbSubExtension->setItemText(0, tr("Domyślne"));
  627. + ui.cbSubExtension->setItemText(0, tr("Default"));
  628. }
  629. else
  630. {
  631. QString targetFormatName = ui.cbSubFormat->currentText();
  632. SubtitleFormat * targetSF = GlobalFormatsRegistry().select(targetFormatName);
  633. QString targetDefaultExt = targetSF->defaultExtension();
  634. - ui.cbSubExtension->setItemText(0, tr("Domyślne (%1)").arg(targetDefaultExt));
  635. + ui.cbSubExtension->setItemText(0, tr("Default (%1)").arg(targetDefaultExt));
  636. }
  637. }
  638. --- a/src/forms/frmprogress.cpp
  639. +++ b/src/forms/frmprogress.cpp
  640. @@ -91,22 +91,22 @@
  641. if(!QNapi::checkP7ZipPath())
  642. {
  643. - QMessageBox::warning(0, tr("Brak programu p7zip!"),
  644. - tr("Ścieżka do programu p7zip jest nieprawidłowa!"));
  645. + QMessageBox::warning(0, tr("Can not find p7zip!"),
  646. + tr("The path to the program p7zip is incorrect!"));
  647. return false;
  648. }
  649. if(!QNapi::checkTmpPath())
  650. {
  651. - QMessageBox::warning(0, tr("Nieprawidłowy katalog tymczasowy!"),
  652. - tr("Nie można pisać do katalogu tymczasowego! Sprawdź swoje ustawienia."));
  653. + QMessageBox::warning(0, tr("Invalid temporary directory!"),
  654. + tr("Unable to write to the temporary directory! Check your settings."));
  655. return false;
  656. }
  657. if(getThread.queue.isEmpty())
  658. {
  659. - QMessageBox::warning(0, tr("Brak plików!"),
  660. - tr("Nie wskazano filmów do pobrania napisów!"));
  661. + QMessageBox::warning(0, tr("No files!"),
  662. + tr("Indicated movies to download the subtitles for!"));
  663. return false;
  664. }
  665. @@ -139,8 +139,8 @@
  666. if(stageProgress >= 0) lastStageProgress = stageProgress;
  667. QString windowTitle = (lastAll > 1)
  668. - ? QString(tr("QNapi - pobieranie napisów (%1/%2)")).arg(lastCurrent + 1).arg(lastAll)
  669. - : QString(tr("QNapi - pobieranie napisów..."));
  670. + ? QString(tr("QNapi - downloading subtitle (%1/%2)")).arg(lastCurrent + 1).arg(lastAll)
  671. + : QString(tr("QNapi - downloading subtitle..."));
  672. setWindowTitle(windowTitle);
  673. ui.pbProgress->setMaximum(lastAll * 100);
  674. @@ -180,7 +180,7 @@
  675. {
  676. if(!getThread.criticalMessage.isEmpty())
  677. {
  678. - QMessageBox::critical(0, tr("Błąd krytyczny!"), getThread.criticalMessage);
  679. + QMessageBox::critical(0, tr("Critical error!"), getThread.criticalMessage);
  680. }
  681. else if(queue.size() > 0 && !getThread.subStatusList.isEmpty())
  682. {
  683. @@ -202,13 +202,13 @@
  684. if(getThread.isRunning())
  685. {
  686. if( QMessageBox::question(this, tr("QNapi"),
  687. - tr("Czy chcesz przerwać pobieranie napisów?"),
  688. + tr("Do you want to cancel downloading the subtitle?"),
  689. QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes )
  690. {
  691. mutex.lock();
  692. showSummary = false;
  693. getThread.requestAbort();
  694. - ui.lbAction->setText(tr("Kończenie zadań..."));
  695. + ui.lbAction->setText(tr("Finishing the task..."));
  696. ui.lbFileName->setText("");
  697. ui.pbCancel->setEnabled(false);
  698. qApp->processEvents();
  699. @@ -275,7 +275,7 @@
  700. }
  701. else if(!napi->addEngines(GlobalConfig().enginesList()))
  702. {
  703. - emit criticalError(tr("Błąd: ") + napi->error());
  704. + emit criticalError(tr("Error: ") + napi->error());
  705. delete napi;
  706. return;
  707. }
  708. @@ -295,11 +295,11 @@
  709. napi->setMoviePath(queue[i]);
  710. emit progressChange(i, queue.size(), 0.1f);
  711. - emit actionChange(tr("Sprawdzanie uprawnień do katalogu z filmem..."));
  712. + emit actionChange(tr("Checking permissions of the video directory..."));
  713. if(!napi->checkWritePermissions())
  714. {
  715. - emit criticalError(tr("Brak uprawnień zapisu do katalogu '%1'!").arg(QFileInfo(queue[i]).path()));
  716. + emit criticalError(tr("No permission to write to the directory '%1'!").arg(QFileInfo(queue[i]).path()));
  717. delete napi;
  718. return;
  719. }
  720. @@ -307,7 +307,7 @@
  721. napi->clearSubtitlesList();
  722. emit progressChange(i, queue.size(), 0.3f);
  723. - emit actionChange(tr("Obliczanie sumy kontrolnej pliku..."));
  724. + emit actionChange(tr("Calculating checksum of the file..."));
  725. napi->checksum();
  726. @@ -322,12 +322,12 @@
  727. foreach(QString e, napi->listLoadedEngines())
  728. {
  729. emit progressChange(i, queue.size(), 0.4f);
  730. - emit actionChange(tr("Szukanie napisów [%1] (%2)...").arg(language, e));
  731. + emit actionChange(tr("Searching subtitle [%1] (%2)...").arg(language, e));
  732. found = napi->lookForSubtitles(language, e) || found;
  733. ABORT_POINT
  734. - emit actionChange(tr("Szukanie napisów w języku zapasowym [%1] (%2)...").arg(languageBackup, e));
  735. + emit actionChange(tr("Searching alternative subtitle [%1] (%2)...").arg(languageBackup, e));
  736. found = napi->lookForSubtitles(languageBackup, e) || found;
  737. ABORT_POINT
  738. @@ -338,7 +338,7 @@
  739. foreach(QString e, napi->listLoadedEngines())
  740. {
  741. emit progressChange(i, queue.size(), 0.4f);
  742. - emit actionChange(tr("Szukanie napisów [%1] (%2)...").arg(language, e));
  743. + emit actionChange(tr("Searching subtitle [%1] (%2)...").arg(language, e));
  744. found = napi->lookForSubtitles(language, e) || found;
  745. if(sp == SP_BREAK_IF_FOUND && found){
  746. @@ -352,7 +352,7 @@
  747. foreach(QString e, napi->listLoadedEngines())
  748. {
  749. emit progressChange(i, queue.size(), 0.45f);
  750. - emit actionChange(tr("Szukanie napisów w języku zapasowym [%1] (%2)...").arg(languageBackup, e));
  751. + emit actionChange(tr("Searching alternative subtitle [%1] (%2)...").arg(languageBackup, e));
  752. found = napi->lookForSubtitles(languageBackup, e) || found;
  753. if(sp == SP_BREAK_IF_FOUND && found)
  754. @@ -395,7 +395,7 @@
  755. }
  756. emit progressChange(i, queue.size(), 0.5);
  757. - emit actionChange(tr("Pobieranie napisów dla pliku..."));
  758. + emit actionChange(tr("Downloading the subtitle file..."));
  759. if(!napi->download(selIdx))
  760. {
  761. @@ -409,7 +409,7 @@
  762. ABORT_POINT
  763. emit progressChange(i, queue.size(), 0.65);
  764. - emit actionChange(tr("Rozpakowywanie napisów..."));
  765. + emit actionChange(tr("Unpacking the subtitle file..."));
  766. if(!napi->unpack(selIdx))
  767. {
  768. @@ -421,12 +421,12 @@
  769. if(napi->ppEnabled())
  770. {
  771. emit progressChange(i, queue.size(), 0.8f);
  772. - emit actionChange(tr("Przetwarzanie napisów..."));
  773. + emit actionChange(tr("Processing the subtitle..."));
  774. napi->pp();
  775. }
  776. emit progressChange(i, queue.size(), 0.9);
  777. - emit actionChange(tr("Dopasowywanie napisów..."));
  778. + emit actionChange(tr("Adjusting the subtitle..."));
  779. if(!napi->match())
  780. {
  781. @@ -435,7 +435,7 @@
  782. ++napiFail;
  783. subStatusList << QNapiSubtitleInfo::fromFailed(queue[i]);
  784. - emit criticalError(tr("Nie udało się dopasować napisów!!"));
  785. + emit criticalError(tr("Could not adjust the subtitle!!"));
  786. return;
  787. }
  788. --- a/src/forms/frmscan.cpp
  789. +++ b/src/forms/frmscan.cpp
  790. @@ -97,7 +97,7 @@
  791. QString dir = QFileInfo(ui.leDirectory->text()).path();
  792. dir = QDir().exists(dir) ? dir : GlobalConfig().lastScanDir();
  793. - QNapiOpenDialog openDialog(this, tr("Wskaż katalog do skanowania"),
  794. + QNapiOpenDialog openDialog(this, tr("Select the folder to scan"),
  795. dir, QNapiOpenDialog::None);
  796. if(openDialog.selectDirectory())
  797. @@ -122,8 +122,8 @@
  798. {
  799. ui.leDirectory->setEnabled(false);
  800. ui.pbDirectorySelect->setEnabled(false);
  801. - ui.pbScan->setText(tr("Przerwij"));
  802. - ui.lbAction->setText(tr("Skanowanie katalogów..."));
  803. + ui.pbScan->setText(tr("Cancel"));
  804. + ui.lbAction->setText(tr("Scanning directories..."));
  805. ui.pbGet->setEnabled(false);
  806. enableControlWidgets(false);
  807. enableFilesWidgets(false);
  808. @@ -141,7 +141,7 @@
  809. else
  810. {
  811. scanThread.requestAbort();
  812. - ui.lbAction->setText(tr("Przerywanie skanowania katalogów..."));
  813. + ui.lbAction->setText(tr("Scanning of directories interrupted..."));
  814. ui.pbScan->setEnabled(false);
  815. qApp->processEvents();
  816. scanThread.wait();
  817. @@ -164,17 +164,17 @@
  818. void frmScan::folderChange(const QString & dirName)
  819. {
  820. - ui.lbAction->setText(QString("Skanowanie katalogu <b>%1</b>..").arg(dirName));
  821. + ui.lbAction->setText(QString("Scanning directory <b>%1</b>..").arg(dirName));
  822. }
  823. void frmScan::scanFinished()
  824. {
  825. enableControlWidgets(true);
  826. enableFilesWidgets(ui.lwMovies->count() > 0);
  827. - ui.pbScan->setText("Skanuj");
  828. + ui.pbScan->setText("Scan");
  829. ui.lbAction->setText(tr((ui.lwMovies->count() > 0)
  830. - ? "Zaznacz filmy, do których chcesz pobrać napisy."
  831. - : "Nie znaleziono plików z filmami."));
  832. + ? "Select the videos you wish to download subtitles for."
  833. + : "Not video files found."));
  834. }
  835. void frmScan::enableControlWidgets(bool enable)
  836. --- a/src/forms/frmsummary.cpp
  837. +++ b/src/forms/frmsummary.cpp
  838. @@ -73,8 +73,8 @@
  839. ui.lbSuccess->setVisible(goodCount != 0);
  840. ui.lbFail->setVisible(badCount != 0);
  841. - ui.lbSuccess->setText(tr("Pobrano napisy dla %1 %2")
  842. - .arg(goodCount).arg(tr(goodCount > 1 ? "plików" : "pliku")));
  843. - ui.lbFail->setText(tr("Nie pobrano napisów dla %1 %2")
  844. - .arg(badCount).arg(tr(badCount > 1 ? "plików" : "pliku")));
  845. + ui.lbSuccess->setText(tr("Downloading subtitle for %1 %2")
  846. + .arg(goodCount).arg(tr(goodCount > 1 ? "files" : "file")));
  847. + ui.lbFail->setText(tr("Could not download subtitle for %1 %2")
  848. + .arg(badCount).arg(tr(badCount > 1 ? "files" : "file")));
  849. }
  850. --- a/src/engines/qnapiprojektengine.cpp
  851. +++ b/src/engines/qnapiprojektengine.cpp
  852. @@ -63,7 +63,7 @@
  853. // zwraca informacje nt. modulu
  854. QString QNapiProjektEngine::engineInfo()
  855. {
  856. - return "Moduł pobierania napisów z bazy <b>www.napiprojekt.pl</b>";
  857. + return "Fetching from <b>www.napiprojekt.pl</b>";
  858. }
  859. // zwraca ikone w formacie XMP
  860. --- a/src/engines/qnapisy24engine.cpp
  861. +++ b/src/engines/qnapisy24engine.cpp
  862. @@ -37,7 +37,7 @@
  863. QString QNapisy24Engine::engineInfo()
  864. {
  865. - return "Moduł pobierania napisów z bazy <b>www.napisy24.pl</b><br />";
  866. + return "Fetching from <b>www.napisy24.pl</b><br />";
  867. }
  868. QIcon QNapisy24Engine::engineIcon()
  869. --- a/src/engines/qopensubtitlesengine.cpp
  870. +++ b/src/engines/qopensubtitlesengine.cpp
  871. @@ -48,7 +48,7 @@
  872. // zwraca informacje nt. modulu
  873. QString QOpenSubtitlesEngine::engineInfo()
  874. {
  875. - return "Moduł pobierania napisów z bazy <b>www.opensubtitles.org</b>";
  876. + return "Fetching from <b>www.opensubtitles.org</b>";
  877. }
  878. // zwraca ikone w formacie XMP
  879. --- a/src/subconvert/subtitleconverter.cpp
  880. +++ b/src/subconvert/subtitleconverter.cpp
  881. @@ -168,7 +168,7 @@
  882. adEntry.frameStart = sf.entries.back().frameStop + 50L;
  883. adEntry.frameStop = adEntry.frameStart + 200L;
  884. }
  885. - QString ad = QString("Napisy pobrane i przetworzone programem QNapi|");
  886. + QString ad = QString("QNapi has downloaded and processed the subtitles|");
  887. adEntry.tokens = targetFormat->decodeTokenStream(ad);
  888. SubToken urlToken;
  889. urlToken.type = STT_WORD;