This forum is now read-only. Support is provided at https://wordpress.org/support/plugin/sermon-browser/
12:00 pm
18 February, 2013
1:44 pm
Moderators
18 June, 2009
Yes, you can add new Bible translations to Sermon Browser. There are four German translations to pick from:
- German: Elberfelder (1871) (elberfelder)
- German: Elberfelder (1905) (elberfelder1905)
- German: Luther (1545) (luther1545)
- German: Luther (1912) (luther1912)
To add these versions, you'll need to make a change to the /wp-content/plugins/sermon-browser/sb-includes/dictionary.php file.
Before editing, make sure you backup the file, just in case you make a mistake.
dictionary.php is a relatively short file, and it has two functions in it. The first one, sb_search_results_dictionary(), defines all of the template tags that you can use in the Search Results template. The second one, sb_sermon_page_dictionary(), defines the Single Sermon Page template tags. The Bible text tags are really only useful on the Sermon Page, so we will only be adding our new tags to the second function.
At the end of the sb_sermon_page_dictionary() function, after the last template tag line that you have, add the following lines:
After you make any changes to dictionary.php, you need to go to the Sermon Browser Templates (Sermons, Templates) and click the Save button. This loads the new definitions from dictionary.php into Sermon Browser.
Now that you have added these four new template tags, you can use them in your Sermon Page Template. Just change "esvtext" to one of these tags:
- elberfeldertext
- elberfelder1905text
- luther1545text
- luther1912text
If you run into any problems or you have any questions about any of this, please let me know.
The Bible text comes from Mark Barnes' own XML Bible API. If you are looking for other translations, there is a list here:
http://www.4-14.org.uk/xml-bib.....ervice-api
The text in (parentheses) after the name of each translation in the list is the text that you would use to adapt the above code to add your selected translation.
Ben Miller, Pathways Church, Appleton, Wisconsin, USA
Read the new FAQ, last updated 11/21/2013
Announcing version 0.45.12
9:28 am
18 February, 2013
Hi Ben,
thanks for this great explanation.
Editing the files was no problem but the text isn´t displayed on the website. I get only a link to
http://biblepro.bibleocean.com.....fault.aspx
Is there a problem in the XML Bible API?
Thanks for your help.
Many greetings from germany...
10:01 am
18 February, 2013
1:40 pm
Moderators
18 June, 2009
Sermon Browser 0.45.4 doesn't translate the Bible names correctly; it leaves them in English. In a couple of recent threads, I came up with a fix to translate the Bible names using the .po/.mo files. In my fix, the names are translated for display to the user, but they are still stored in English internally so that the filters and API's work correctly. If you look at my test site now, you'll see an example of a German translated Sermon Browser site with the Luther 1912 version, correctly translated.
The threads that have my fixes are here:
https://www.sermonbrowser.com/f.....n-english/
https://www.sermonbrowser.com/f.....-pot-file/
I'm guessing that at some point, you (or someone else on your site) tried to fix this problem, but you are storing the names in German, so the API won't work.
In order for it to work right, you shouldn't have any German names in any of your .php files. Only the .po file should have German names in it. And you shouldn't have any German names in your database, either.
You might be able to fix your code by looking at the above threads and figuring out how to apply these changes to your site, and undo the changes you made. But if you have German names in your database, you might need to edit those database records manually.
If you need help going through your code, I might be able to help. Here is what I would need, if you get stuck.
- A link to your website
- A copy of the following files from your website:
- sermon.php
- frontend.php
- admin.php
- dictionary.php
- sermon-browser-de_DE.po
To send me a file, copy all the text from the file and paste it into the box at pastebin.com . Hit the Submit button, and you will be taken to a new page with your text on it. Copy the address of that page and post it here. The forum has a limit of 3 links per post, so you will probably need to split your response into 2 or 3 posts.
If you have any more questions, please let me know.
Ben Miller, Pathways Church, Appleton, Wisconsin, USA
Read the new FAQ, last updated 11/21/2013
Announcing version 0.45.12
1 Guest(s)