diff --git a/CMakeLists.txt b/CMakeLists.txt index e4b2740..60595ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" add_subdirectory( src ) tde_conditional_add_subdirectory( BUILD_DOC doc ) -tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) +tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations ) ##### write configure files diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 6d0aa9f..70d6348 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1 +1,14 @@ -tde_auto_add_subdirectories( ) +file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * ) +string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) + +foreach( _dir ${_dirs} ) + if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} AND + EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeLists.txt ) + if( "${_dir}" STREQUAL "en" OR + "${_dir}" STREQUAL "man" OR + "${_linguas}" MATCHES "^;*$" OR + ";${_linguas};" MATCHES ";${_dir};" ) + add_subdirectory( ${_dir} ) + endif( ) + endif() +endforeach() diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index c85cef6..0a1005a 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,3 @@ ##### create translation templates ############## -tde_l10n_create_template( "tdeio-sword" ) +tde_l10n_create_template( "messages/tdeio-sword" ) diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt new file mode 100644 index 0000000..42b186a --- /dev/null +++ b/translations/CMakeLists.txt @@ -0,0 +1 @@ +tde_auto_add_subdirectories() diff --git a/translations/messages/CMakeLists.txt b/translations/messages/CMakeLists.txt new file mode 100644 index 0000000..75c89f8 --- /dev/null +++ b/translations/messages/CMakeLists.txt @@ -0,0 +1,14 @@ +file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po ) +string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) + +foreach( _po ${po_files} ) + get_filename_component( _lang ${_po} NAME_WE ) + if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" ) + if( "${_po}" MATCHES "^([^/]*)/.*" ) + string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" ) + else( ) + set( _component "${PROJECT_NAME}" ) + endif( ) + tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} ) + endif( ) +endforeach( ) diff --git a/translations/messages/de.po b/translations/messages/de.po new file mode 100644 index 0000000..9849577 --- /dev/null +++ b/translations/messages/de.po @@ -0,0 +1,452 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2019-01-13 19:19+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: _translatorinfo:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "" + +#: _translatorinfo:2 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "" + +#: renderer.cpp:118 +msgid "Bibles" +msgstr "" + +#: renderer.cpp:119 +msgid "Commentaries" +msgstr "" + +#: renderer.cpp:120 +msgid "Lexicons & Dictionaries" +msgstr "" + +#: renderer.cpp:121 +msgid "Other Books" +msgstr "" + +#: renderer.cpp:170 +msgid "No modules installed!" +msgstr "" + +#: renderer.cpp:175 +msgid "Modules" +msgstr "" + +#: renderer.cpp:341 renderer.cpp:397 +msgid "The module '%1' could not be found." +msgstr "" + +#: renderer.cpp:345 +msgid "Module not found - Kio-Sword" +msgstr "" + +#: renderer.cpp:365 renderer.cpp:418 +msgid "Module:" +msgstr "" + +#: renderer.cpp:407 +msgid "Word" +msgstr "" + +#: renderer.cpp:410 tdeio_sword.cpp:667 +msgid "Phrase" +msgstr "" + +#: renderer.cpp:413 tdeio_sword.cpp:668 +msgid "Regular expression" +msgstr "" + +#: renderer.cpp:416 +msgid "Search results:" +msgstr "" + +#: renderer.cpp:420 +msgid "Query:" +msgstr "" + +#: renderer.cpp:422 +msgid "Search type:" +msgstr "" + +#: renderer.cpp:428 +msgid "No matches returned." +msgstr "" + +#: renderer.cpp:430 +msgid "" +"_n: 1 match returned:\n" +"%1 matches returned:" +msgstr "" + +#: renderer.cpp:487 renderer.cpp:775 +msgid "Couldn't find reference '%1'." +msgstr "" + +#: renderer.cpp:513 +msgid "Chapters:" +msgstr "" + +#: renderer.cpp:516 +msgid "View entire book." +msgstr "" + +#: renderer.cpp:520 +msgid "Books" +msgstr "" + +#: renderer.cpp:572 +#, c-format +msgid "Chapter %1" +msgstr "" + +#: renderer.cpp:666 +msgid "Books:" +msgstr "" + +#: renderer.cpp:672 +msgid "Index of books" +msgstr "" + +#: renderer.cpp:697 +msgid "Couldn't find section '%1'." +msgstr "" + +#: renderer.cpp:712 +msgid "Up:" +msgstr "" + +#: renderer.cpp:733 +msgid "Contents:" +msgstr "" + +#: renderer.cpp:739 +msgid "View simple index" +msgstr "" + +#: renderer.cpp:745 +msgid "View full index" +msgstr "" + +#: renderer.cpp:800 +msgid "Index:" +msgstr "" + +#: renderer.cpp:807 +msgid "Enter query term: " +msgstr "" + +#: renderer.cpp:814 +msgid "View complete index" +msgstr "" + +#: tdeio_sword.cpp:129 tdeio_sword.cpp:160 +msgid "No default Bible has been specified." +msgstr "" + +#: tdeio_sword.cpp:164 +msgid "No default Greek Strongs module has been specified." +msgstr "" + +#: tdeio_sword.cpp:168 +msgid "No default Hebrew Strongs module has been specified." +msgstr "" + +#: tdeio_sword.cpp:172 +msgid "No default Greek morphological module has been specified." +msgstr "" + +#: tdeio_sword.cpp:176 +msgid "No default Hebrew morphological module has been specified." +msgstr "" + +#: tdeio_sword.cpp:179 +msgid "No module specified." +msgstr "" + +#: tdeio_sword.cpp:210 +msgid "Modules - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:220 +msgid "Search - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:225 +msgid "Search Results - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:230 +msgid "Settings - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:235 +msgid "Settings saved - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:240 +msgid "Kio-Sword Help" +msgstr "" + +#: tdeio_sword.cpp:283 +msgid "Settings saved." +msgstr "" + +#: tdeio_sword.cpp:459 +msgid "" +"

Settings

Select the settings using the form below. Use the 'Save " +"settings' button to save these settings to your own configuration file. " +"'Test settings' will return you to the previous page with the options you " +"have specified.
" +msgstr "" + +#: tdeio_sword.cpp:468 +msgid "Description" +msgstr "" + +#: tdeio_sword.cpp:469 +msgid "Value" +msgstr "" + +#: tdeio_sword.cpp:470 +msgid "URL parameter" +msgstr "" + +#: tdeio_sword.cpp:472 +msgid "Formatting options" +msgstr "" + +#: tdeio_sword.cpp:473 +msgid "Display verse numbers for Bible modules" +msgstr "" + +#: tdeio_sword.cpp:474 +msgid "Insert line breaks between Bible verses" +msgstr "" + +#: tdeio_sword.cpp:475 +msgid "Include footnotes." +msgstr "" + +#: tdeio_sword.cpp:476 +msgid "Words of Christ in red." +msgstr "" + +#: tdeio_sword.cpp:477 +msgid "Display strongs numbers (for Bibles that include them)." +msgstr "" + +#: tdeio_sword.cpp:478 +msgid "Display morphological tags (for Bibles that include them)." +msgstr "" + +#: tdeio_sword.cpp:480 +msgid "Language" +msgstr "" + +#: tdeio_sword.cpp:492 +msgid "Locale" +msgstr "" + +#: tdeio_sword.cpp:495 +msgid "Use Hebrew cantillation." +msgstr "" + +#: tdeio_sword.cpp:496 +msgid "Show Hebrew vowel points." +msgstr "" + +#: tdeio_sword.cpp:497 +msgid "Show Greek accents." +msgstr "" + +#: tdeio_sword.cpp:499 +msgid "Navigation options" +msgstr "" + +#: tdeio_sword.cpp:500 +msgid "" +"Display the whole book when a Bible book is selected, instead of an index of " +"the chapters" +msgstr "" + +#: tdeio_sword.cpp:502 +msgid "Display the booklist for bibles if no book is requested" +msgstr "" + +#: tdeio_sword.cpp:504 +msgid "Display an index for dictionaries if no entry is requested" +msgstr "" + +#: tdeio_sword.cpp:506 +msgid "Display an index for other books if no entry is request" +msgstr "" + +#: tdeio_sword.cpp:508 +msgid "" +"Display a full index for books that have a multiple level index, instead of " +"just the first level" +msgstr "" + +#: tdeio_sword.cpp:513 +msgid "Default modules" +msgstr "" + +#: tdeio_sword.cpp:519 +msgid "Default Bible" +msgstr "" + +#: tdeio_sword.cpp:522 +msgid "Default Greek Strong's Lexicon" +msgstr "" + +#: tdeio_sword.cpp:525 +msgid "Default Hebrew Strong's Lexicon" +msgstr "" + +#: tdeio_sword.cpp:528 +msgid "Default Greek Morphological Lexicon" +msgstr "" + +#: tdeio_sword.cpp:531 +msgid "Default Hebrew Morphological Lexicon" +msgstr "" + +#: tdeio_sword.cpp:548 +msgid "Other options" +msgstr "" + +#: tdeio_sword.cpp:549 +msgid "" +"Make formatting options propagate. This makes Kio-Sword remember formatting " +"settings that you have set, by propagating them in the links. (Some " +"navigation options are always excluded from this behaviour)." +msgstr "" + +#: tdeio_sword.cpp:554 +msgid "" +"

Notes:
1) These options never propagate
2) These options are " +"never saved

" +msgstr "" + +#: tdeio_sword.cpp:566 +msgid "Test settings" +msgstr "" + +#: tdeio_sword.cpp:567 +msgid "Save settings" +msgstr "" + +#: tdeio_sword.cpp:569 +msgid "" +"

Stylesheet

To further customise the appearance of the Kio-" +"Sword page, you can make your own modified version of the style sheet. " +"Simply copy the file '%1kio_sword/tdeio_sword.css' to $HOME/.kde/share/apps/" +"tdeio_sword/ and modify it as desired. You may want to use the 'simplepage' " +"option above to make the most of this.

" +msgstr "" + +#: tdeio_sword.cpp:581 +msgid "" +"

Help

For full documentation, see installed help files.

Kio-Sword allows you to view SWORD " +"modules (such as Bibles and commentaries) from Konqueror.\n" +" These modules must already be installed - you can download them from crosswire.org or you can use a " +"program such as BibleTime to help " +"install them.

Quick help

\n" +"\n" +"

Problems, comments, feature requests? Email the author.

Author: L.Plant.98@cantab.net

Website: " +"http://lukeplant.me.uk/tdeio-" +"sword/." +msgstr "" + +#: tdeio_sword.cpp:661 tdeio_sword.cpp:669 template.cpp:95 +msgid "Search" +msgstr "" + +#: tdeio_sword.cpp:662 +msgid "Search terms" +msgstr "" + +#: tdeio_sword.cpp:663 +msgid "Module" +msgstr "" + +#: tdeio_sword.cpp:665 +msgid "Search type" +msgstr "" + +#: tdeio_sword.cpp:666 +msgid "Words" +msgstr "" + +#: template.cpp:93 +msgid "Module list" +msgstr "" + +#: template.cpp:97 +msgid "Settings" +msgstr "" + +#: template.cpp:122 +msgid "Verse Numbers" +msgstr "" + +#: template.cpp:127 +msgid "Verse Line Breaks" +msgstr "" + +#: template.cpp:132 +msgid "Strongs" +msgstr "" + +#: template.cpp:137 +msgid "Morphological tags" +msgstr "" diff --git a/translations/messages/tdeio-sword.pot b/translations/messages/tdeio-sword.pot new file mode 100644 index 0000000..f9100a3 --- /dev/null +++ b/translations/messages/tdeio-sword.pot @@ -0,0 +1,454 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2019-01-13 19:19+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: _translatorinfo:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "" + +#: _translatorinfo:2 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "" + +#: renderer.cpp:118 +msgid "Bibles" +msgstr "" + +#: renderer.cpp:119 +msgid "Commentaries" +msgstr "" + +#: renderer.cpp:120 +msgid "Lexicons & Dictionaries" +msgstr "" + +#: renderer.cpp:121 +msgid "Other Books" +msgstr "" + +#: renderer.cpp:170 +msgid "No modules installed!" +msgstr "" + +#: renderer.cpp:175 +msgid "Modules" +msgstr "" + +#: renderer.cpp:341 renderer.cpp:397 +msgid "The module '%1' could not be found." +msgstr "" + +#: renderer.cpp:345 +msgid "Module not found - Kio-Sword" +msgstr "" + +#: renderer.cpp:365 renderer.cpp:418 +msgid "Module:" +msgstr "" + +#: renderer.cpp:407 +msgid "Word" +msgstr "" + +#: renderer.cpp:410 tdeio_sword.cpp:667 +msgid "Phrase" +msgstr "" + +#: renderer.cpp:413 tdeio_sword.cpp:668 +msgid "Regular expression" +msgstr "" + +#: renderer.cpp:416 +msgid "Search results:" +msgstr "" + +#: renderer.cpp:420 +msgid "Query:" +msgstr "" + +#: renderer.cpp:422 +msgid "Search type:" +msgstr "" + +#: renderer.cpp:428 +msgid "No matches returned." +msgstr "" + +#: renderer.cpp:430 +msgid "" +"_n: 1 match returned:\n" +"%1 matches returned:" +msgstr "" + +#: renderer.cpp:487 renderer.cpp:775 +msgid "Couldn't find reference '%1'." +msgstr "" + +#: renderer.cpp:513 +msgid "Chapters:" +msgstr "" + +#: renderer.cpp:516 +msgid "View entire book." +msgstr "" + +#: renderer.cpp:520 +msgid "Books" +msgstr "" + +#: renderer.cpp:572 +#, c-format +msgid "Chapter %1" +msgstr "" + +#: renderer.cpp:666 +msgid "Books:" +msgstr "" + +#: renderer.cpp:672 +msgid "Index of books" +msgstr "" + +#: renderer.cpp:697 +msgid "Couldn't find section '%1'." +msgstr "" + +#: renderer.cpp:712 +msgid "Up:" +msgstr "" + +#: renderer.cpp:733 +msgid "Contents:" +msgstr "" + +#: renderer.cpp:739 +msgid "View simple index" +msgstr "" + +#: renderer.cpp:745 +msgid "View full index" +msgstr "" + +#: renderer.cpp:800 +msgid "Index:" +msgstr "" + +#: renderer.cpp:807 +msgid "Enter query term: " +msgstr "" + +#: renderer.cpp:814 +msgid "View complete index" +msgstr "" + +#: tdeio_sword.cpp:129 tdeio_sword.cpp:160 +msgid "No default Bible has been specified." +msgstr "" + +#: tdeio_sword.cpp:164 +msgid "No default Greek Strongs module has been specified." +msgstr "" + +#: tdeio_sword.cpp:168 +msgid "No default Hebrew Strongs module has been specified." +msgstr "" + +#: tdeio_sword.cpp:172 +msgid "No default Greek morphological module has been specified." +msgstr "" + +#: tdeio_sword.cpp:176 +msgid "No default Hebrew morphological module has been specified." +msgstr "" + +#: tdeio_sword.cpp:179 +msgid "No module specified." +msgstr "" + +#: tdeio_sword.cpp:210 +msgid "Modules - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:220 +msgid "Search - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:225 +msgid "Search Results - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:230 +msgid "Settings - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:235 +msgid "Settings saved - Kio-Sword" +msgstr "" + +#: tdeio_sword.cpp:240 +msgid "Kio-Sword Help" +msgstr "" + +#: tdeio_sword.cpp:283 +msgid "Settings saved." +msgstr "" + +#: tdeio_sword.cpp:459 +msgid "" +"

Settings

Select the settings using the form below. Use the 'Save " +"settings' button to save these settings to your own configuration file. " +"'Test settings' will return you to the previous page with the options you " +"have specified.
" +msgstr "" + +#: tdeio_sword.cpp:468 +msgid "Description" +msgstr "" + +#: tdeio_sword.cpp:469 +msgid "Value" +msgstr "" + +#: tdeio_sword.cpp:470 +msgid "URL parameter" +msgstr "" + +#: tdeio_sword.cpp:472 +msgid "Formatting options" +msgstr "" + +#: tdeio_sword.cpp:473 +msgid "Display verse numbers for Bible modules" +msgstr "" + +#: tdeio_sword.cpp:474 +msgid "Insert line breaks between Bible verses" +msgstr "" + +#: tdeio_sword.cpp:475 +msgid "Include footnotes." +msgstr "" + +#: tdeio_sword.cpp:476 +msgid "Words of Christ in red." +msgstr "" + +#: tdeio_sword.cpp:477 +msgid "Display strongs numbers (for Bibles that include them)." +msgstr "" + +#: tdeio_sword.cpp:478 +msgid "Display morphological tags (for Bibles that include them)." +msgstr "" + +#: tdeio_sword.cpp:480 +msgid "Language" +msgstr "" + +#: tdeio_sword.cpp:492 +msgid "Locale" +msgstr "" + +#: tdeio_sword.cpp:495 +msgid "Use Hebrew cantillation." +msgstr "" + +#: tdeio_sword.cpp:496 +msgid "Show Hebrew vowel points." +msgstr "" + +#: tdeio_sword.cpp:497 +msgid "Show Greek accents." +msgstr "" + +#: tdeio_sword.cpp:499 +msgid "Navigation options" +msgstr "" + +#: tdeio_sword.cpp:500 +msgid "" +"Display the whole book when a Bible book is selected, instead of an index of " +"the chapters" +msgstr "" + +#: tdeio_sword.cpp:502 +msgid "Display the booklist for bibles if no book is requested" +msgstr "" + +#: tdeio_sword.cpp:504 +msgid "Display an index for dictionaries if no entry is requested" +msgstr "" + +#: tdeio_sword.cpp:506 +msgid "Display an index for other books if no entry is request" +msgstr "" + +#: tdeio_sword.cpp:508 +msgid "" +"Display a full index for books that have a multiple level index, instead of " +"just the first level" +msgstr "" + +#: tdeio_sword.cpp:513 +msgid "Default modules" +msgstr "" + +#: tdeio_sword.cpp:519 +msgid "Default Bible" +msgstr "" + +#: tdeio_sword.cpp:522 +msgid "Default Greek Strong's Lexicon" +msgstr "" + +#: tdeio_sword.cpp:525 +msgid "Default Hebrew Strong's Lexicon" +msgstr "" + +#: tdeio_sword.cpp:528 +msgid "Default Greek Morphological Lexicon" +msgstr "" + +#: tdeio_sword.cpp:531 +msgid "Default Hebrew Morphological Lexicon" +msgstr "" + +#: tdeio_sword.cpp:548 +msgid "Other options" +msgstr "" + +#: tdeio_sword.cpp:549 +msgid "" +"Make formatting options propagate. This makes Kio-Sword remember formatting " +"settings that you have set, by propagating them in the links. (Some " +"navigation options are always excluded from this behaviour)." +msgstr "" + +#: tdeio_sword.cpp:554 +msgid "" +"

Notes:
1) These options never propagate
2) These options are " +"never saved

" +msgstr "" + +#: tdeio_sword.cpp:566 +msgid "Test settings" +msgstr "" + +#: tdeio_sword.cpp:567 +msgid "Save settings" +msgstr "" + +#: tdeio_sword.cpp:569 +msgid "" +"

Stylesheet

To further customise the appearance of the " +"Kio-Sword page, you can make your own modified version of the style sheet. " +"Simply copy the file '%1kio_sword/tdeio_sword.css' to " +"$HOME/.kde/share/apps/tdeio_sword/ and modify it as desired. You may want to " +"use the 'simplepage' option above to make the most of this.

" +msgstr "" + +#: tdeio_sword.cpp:581 +msgid "" +"

Help

For full documentation, see installed help files.

Kio-Sword allows " +"you to view SWORD modules (such as Bibles and commentaries) from Konqueror.\n" +" These modules must already be installed - you can download them from crosswire.org or you can use a " +"program such as BibleTime to help " +"install them.

Quick help

\n" +"\n" +"

Problems, comments, feature requests? Email the author.

Author: L.Plant.98@cantab.net

Website: " +"http://lukeplant.me.uk/tdeio-swo" +"rd/." +msgstr "" + +#: tdeio_sword.cpp:661 tdeio_sword.cpp:669 template.cpp:95 +msgid "Search" +msgstr "" + +#: tdeio_sword.cpp:662 +msgid "Search terms" +msgstr "" + +#: tdeio_sword.cpp:663 +msgid "Module" +msgstr "" + +#: tdeio_sword.cpp:665 +msgid "Search type" +msgstr "" + +#: tdeio_sword.cpp:666 +msgid "Words" +msgstr "" + +#: template.cpp:93 +msgid "Module list" +msgstr "" + +#: template.cpp:97 +msgid "Settings" +msgstr "" + +#: template.cpp:122 +msgid "Verse Numbers" +msgstr "" + +#: template.cpp:127 +msgid "Verse Line Breaks" +msgstr "" + +#: template.cpp:132 +msgid "Strongs" +msgstr "" + +#: template.cpp:137 +msgid "Morphological tags" +msgstr ""