Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

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

Topic RSS
Spanish translation
27 January, 2010
3:25 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline

OK, I just tried to post and couldn't so hopefully now it doesn't show up 2 times. Anyways, I'm new to this and need SB in Spanish. I've changed some of the words in the templates but can't figure out how to change the books of the Bible or the date format. I see it says that the Spanish translation of SB is included in the new version but I can't figure out how to access it. Can anyone help me?

27 January, 2010
4:27 pm
DmdStar
Dodgeville, WI USA
Guru
Forum Posts: 84
Member Since:
19 November, 2009
Offline

0.43.5 is the most current version, and you can download it here: http://www.4-14.org.uk/wordpre…..evelopment

Matt Schlueter, Multimedia Director
Dodgeville United Methodist Church -- Dodgeville, WI
27 January, 2010
8:08 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline

Looking back at my post I wasn't too clear about what I couldn't access. Sorry. Thanks for the reply, but that's the version I have downloaded. I love the plugin, just can't see how to use the Spanish translation of it.

27 January, 2010
8:44 pm
DmdStar
Dodgeville, WI USA
Guru
Forum Posts: 84
Member Since:
19 November, 2009
Offline

Just looked in my plugin folder, and the spanish language files are there, but dont appear to be configured… They are sermon-browser-es_ES.mo and sermon-browser-es_ES.po

For example:

#: ../sb-includes/admin.php:238
msgid "The maximum amount of memory allowed is only "
msgstr ""

The translated text should be on the msgstr line, and looks like every line in the file is blank.

Matt Schlueter, Multimedia Director
Dodgeville United Methodist Church -- Dodgeville, WI
27 January, 2010
9:14 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline

Thanks for telling me about the po and mo files. I would have never found them. Now, and please forgive me for the bother, but I am not seeing the msgstr line in the admin.php file. Can you give me any idea where to look for it at? And then what?

27 January, 2010
9:20 pm
DmdStar
Dodgeville, WI USA
Guru
Forum Posts: 84
Member Since:
19 November, 2009
Offline

Every bit of text in the MO & PO files have teh msgstr="" under them, which is supposed to contain the spanish translation between the quotes.

Look at the RO and RU files as examples… Russian & Romanian files are already filled in correctly. My bet is that you could add the translations manually in those files, replace the non-ES files with the ES files (rename them), and see if it starts showing you spanish… Just a thought.

Matt Schlueter, Multimedia Director
Dodgeville United Methodist Church -- Dodgeville, WI
27 January, 2010
9:37 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline

I understand now what you're saying. I've compared some of the files using Notepad. It appears the .po file is the key. I'll try what you said and I'll let you know what happens.

27 January, 2010
10:42 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline

I didn't translate everything in the .po file but I did do all the books of the Bible. I renamed the Spanish .mo and .po the same as the English ones were before I deleted them. The plugin still brings up the English names, however. There has to be something to tell it to use the msgstr instead of the English names.

28 January, 2010
2:24 pm
DmdStar
Dodgeville, WI USA
Guru
Forum Posts: 84
Member Since:
19 November, 2009
Offline

Sorry… I was guessing in the first place, so not really sure where to go from here. Hopefully someone else around here has implemented alternate languages.

Matt Schlueter, Multimedia Director
Dodgeville United Methodist Church -- Dodgeville, WI
28 January, 2010
2:57 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline
10

Thanks so much for your suggestion even though it didn't work out. I appreciate your time.

30 January, 2010
11:24 am
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline
11

Okay, the problem is partially solved. laugh Once I changed my WordPress installation to Spanish, Sermon Browser automatically looked for the Spanish .po file. There's a code in sermon.php which directs this. There might have been a way around having to change my WordPress installation but I'm not smart enough with the codes to figure that out.

I still have one problem, however. Both in the Sermon Browser interface and the search results only the English book names are displayed. confused Does anyone have an idea how I can get the Spanish book names to show up?

30 January, 2010
12:33 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 386
Member Since:
18 June, 2009
Offline
12

Can you post a link to your site, so we can take a look?

Ben Miller
Pathways Church, Appleton, WI, USA
30 January, 2010
1:31 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline
13

http://ibbfrota.com/?page_id=199

I only have sermon browser installed on this one page.

30 January, 2010
2:08 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 386
Member Since:
18 June, 2009
Offline
14

carnsp, I've taken a look at your .po file, and I see that you've added the Spanish Bible book names. Have you compiled a new .mo file? If not, then I think that is the problem.

From what I've read, there are two steps in changing the translation files. First, you need to edit the .po file, which you've already done. Second, you need to compile the translation into a machine-readable .mo file. There are a few different tools that you can use to compile the .mo file. I've never done this before, but there is some good information here on the WordPress Codex site.

If you get this working, let us know and maybe share your .po and .mo files so that one day it might be included in a future version of Sermon Browser. :)

Ben Miller
Pathways Church, Appleton, WI, USA
30 January, 2010
3:38 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 386
Member Since:
18 June, 2009
Offline
15

Here's another thought: Do you need to deactivate, and then reactivate the Sermon Browser plugin after you make a change to the .mo/.po files to reload the changes?

I'm just guessing here….

Ben Miller
Pathways Church, Appleton, WI, USA
30 January, 2010
4:04 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline
16

Thanks, Ben, for your ideas. I used Poedit to translate the .po file and it also creates a .mo file to go with it. I've uploaded both, and then deactivated and activated again sermon browser. Still the same. frown This morning I even reinstalled sermon browser to start over from scratch. The steps I just mentioned were done after the new installation.

It is strange since it recognizes the -es_ES.po file and uses it in the interface. It's just the books that are not recognized.

Thanks for your ideas.

30 January, 2010
6:57 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline
17

I would suspect my problem might be found in these lines in the system.php. Can anyone explain these to me?

/**
* Returns list of bible books from the database
*
* @return array
*/
function sb_get_bible_books () {
global $wpdb;
return $wpdb->get_col("SELECT name FROM {$wpdb->prefix}sb_books order by id");
30 January, 2010
7:33 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline
18

laugh laugh laugh I'm happy! Can anyone tell?
I solved my problem but there must be an easier way. Here's what I did to get the Spanish names of Bible books to appear both in the interface and one the web page.
1) I went to "Manage MySQL" with my hosting company and then under "Manage Databases" I click on the database (in my case, at least, it was the last one in the list: I have no idea why I have several).
2) Then in the window to the right I clicked on "Access phpMyAdmin".
3) Then under MySQL I clicked on "Databases". Again I clicked on the database I wanted and that takes me to a screen with a list of the tables.
4) If you click on the "Browse" next to "wp_sp_books" you can edit and save all the book names.

If someone can tell me an easier way, please do so. But for now, I'm happy anyway.

30 January, 2010
8:00 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 386
Member Since:
18 June, 2009
Offline
19

I think that when Sermon Browser installs, it writes the names of the books of the Bible into the database. The function sb_get_bible_books that you posted reads the names from the database.

I'm not sure where the code is to write the names of the books of the Bible to the database. I know you said you reinstalled Sermon Browser from scratch, so perhaps there is a bug in the code so it won't write the Spanish names into the database.

Anyway, I'm glad you figured out how to edit the database manually and put the right names in there.

Ben Miller
Pathways Church, Appleton, WI, USA
30 January, 2010
9:58 pm
carnsp
Enthusiast
Forum Posts: 13
Member Since:
27 January, 2010
Offline
20

Well, it couldn't write the Spanish book names in the database because the es_ES.po file that came with SermonBrowser did not have the Spanish translation in it. It must have at one point according to all the posts I've read on here but it doesn't now.

All the book names are now working perfectly for me since I did the editing of the database. However, the verse text does not show up now on the sermon page because the program that is linked to does not recognize the Spanish book names. Oh well, can't have everything, I guess (at least this side of Heaven!). I rather that visitors to the website know the correct passage (hence the book names in Spanish are important). They can look up the text in their Bibles.

Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

malpan: 2453

jogen: 2440

VanWatterson: 652

GeraldSebring: 364

LucasWoltman: 362

RandellFeenstra: 362

Member Stats:

Guest Posters: 7

Members: 2062

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1071

Posts: 4042

Newest Members: richdorm, Aaron Velasquez, aaronv, dave5884, tomduckering, ccwebb

Moderators: Ben Miller (386)

Administrators: Mark Barnes (425)

Comments are closed.