Forum

This forum is now read-only. Support is provided at https://wordpress.org/support/plugin/sermon-browser/

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
German Bible Support
18 February, 2013
12:00 pm
Christian Börstler
Member
Members
Forum Posts: 7
Member Since:
18 February, 2013
sp_UserOfflineSmall Offline

Hello,

 

I searched this forum but I didn´t find an answer to my question:

I want to show a german bible text to each sermon.

Is this possible? What must I insert for [esvtext]?

 

Thanks for all help :-)

18 February, 2013
1:44 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

Moderators
Forum Posts: 1628
Member Since:
18 June, 2009
sp_UserOfflineSmall Offline

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:

http://pastebin.com/TghjBnbB

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

19 February, 2013
9:28 am
Christian Börstler
Member
Members
Forum Posts: 7
Member Since:
18 February, 2013
sp_UserOfflineSmall Offline

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...

19 February, 2013
10:01 am
Christian Börstler
Member
Members
Forum Posts: 7
Member Since:
18 February, 2013
sp_UserOfflineSmall Offline

I found the reason why:

The problem is that I only have german names of the book e.g. Psalm instead of Psalms.

Therefor it´s not possible for the XML Bible API to find the correct text.

The API needs the english name e.g. Psalms.

Is there a solution for this problem?

19 February, 2013
1:40 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

Moderators
Forum Posts: 1628
Member Since:
18 June, 2009
sp_UserOfflineSmall Offline

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:

http://www.sermonbrowser.com/f.....n-english/

http://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

Forum Timezone: Europe/London

Most Users Ever Online: 381

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Rich Brown: 358

Matt Schlueter: 93

Mindy: 72

Don Johnson: 65

anointed: 57

0be1: 55

Member Stats:

Guest Posters: 7

Members: 3188

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1713

Posts: 7499

Newest Members:

marktest, deatles50, ValeriaGoodriz, dapedPup, oapedPup, Margarettoimb

Moderators: Ben Miller: 1628

Administrators: Mark Barnes: 435