mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-10 04:11:16 +00:00
parent
145971b915
commit
2dc1a7d66f
21
dist/unix/CMakeLists.txt
vendored
21
dist/unix/CMakeLists.txt
vendored
@ -18,17 +18,20 @@ if (SYSTEMD)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (GUI)
|
set(manPageLanguages
|
||||||
list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent.1)
|
en
|
||||||
else()
|
ru
|
||||||
list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent-nox.1)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
install(FILES ${MAN_FILES}
|
|
||||||
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
|
||||||
COMPONENT doc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
foreach(manPageLanguage ${manPageLanguages})
|
||||||
|
install(FILES ${PROJECT_SOURCE_DIR}/doc/${manPageLanguage}/$<IF:$<BOOL:${GUI}>,qbittorrent.1,qbittorrent-nox.1>
|
||||||
|
# English man pages are installed into ${CMAKE_INSTALL_MANDIR}/man1, while man pages
|
||||||
|
# in other languages are installed into ${CMAKE_INSTALL_MANDIR}/${manPageLanguage}/man1.
|
||||||
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/$<$<NOT:$<STREQUAL:${manPageLanguage},en>>:${manPageLanguage}/>man1
|
||||||
|
COMPONENT doc
|
||||||
|
)
|
||||||
|
endforeach()
|
||||||
|
|
||||||
if (GUI)
|
if (GUI)
|
||||||
install(FILES org.qbittorrent.qBittorrent.desktop
|
install(FILES org.qbittorrent.qBittorrent.desktop
|
||||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/
|
||||||
|
@ -18,3 +18,9 @@ You'll need to be careful when you copy the output to file as some headers will
|
|||||||
Careful not to overwrite the existing leading headers or trim off the trailing headers.
|
Careful not to overwrite the existing leading headers or trim off the trailing headers.
|
||||||
|
|
||||||
Remember to commit Markdown files (\*.md) and the generated man pages (\*.1 files) after editing!
|
Remember to commit Markdown files (\*.md) and the generated man pages (\*.1 files) after editing!
|
||||||
|
|
||||||
|
### Translation
|
||||||
|
|
||||||
|
To translate the man pages into a new language, create a new subdirectory here
|
||||||
|
with the translated files and add it to the `manPageLanguages` list in
|
||||||
|
[`dist/unix/CMakeLists.txt`](../dist/unix/CMakeLists.txt).
|
||||||
|
6
doc/ru/qbittorrent-nox.1
Normal file
6
doc/ru/qbittorrent-nox.1
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.TH "QBITTORRENT-NOX" "1" "16 января 2010" "Клиент сети БитТоррент для командной строки" ""
|
||||||
|
.SH НАЗВАНИЕ
|
||||||
|
.PP
|
||||||
|
qBittorrent-nox \[em] клиент сети БитТоррент для командной строки.
|
||||||
|
.SH АВТОРЫ
|
||||||
|
Christophe Dumez <chris@qbittorrent.org>
|
6
doc/ru/qbittorrent-nox.1.md
Normal file
6
doc/ru/qbittorrent-nox.1.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
% QBITTORRENT-NOX(1) Клиент сети БитТоррент для командной строки
|
||||||
|
% Christophe Dumez <chris@qbittorrent.org>
|
||||||
|
% 16 января 2010
|
||||||
|
|
||||||
|
# НАЗВАНИЕ
|
||||||
|
qBittorrent-nox — клиент сети БитТоррент для командной строки.
|
6
doc/ru/qbittorrent.1
Normal file
6
doc/ru/qbittorrent.1
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.TH "QBITTORRENT" "1" "16 января 2010" "Клиент сети БитТоррент" ""
|
||||||
|
.SH НАЗВАНИЕ
|
||||||
|
.PP
|
||||||
|
qBittorrent \[em] клиент сети БитТоррент.
|
||||||
|
.SH АВТОРЫ
|
||||||
|
Christophe Dumez <chris@qbittorrent.org>
|
6
doc/ru/qbittorrent.1.md
Normal file
6
doc/ru/qbittorrent.1.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
% QBITTORRENT(1) Клиент сети БитТоррент
|
||||||
|
% Christophe Dumez <chris@qbittorrent.org>
|
||||||
|
% 16 января 2010
|
||||||
|
|
||||||
|
# НАЗВАНИЕ
|
||||||
|
qBittorrent — клиент сети БитТоррент.
|
Loading…
x
Reference in New Issue
Block a user