[Solved] Go To Course Button Missing Text

More
13 years 4 months ago - 13 years 4 months ago #1 by Neilw
Setting up a Joomla (2.5.8)/Joomdle (0.9)/Moodle (2.4)/Hikashop site. Have everything working pretty well so far. However, when logged into Joomla as a student and viewing a page that uses the embedded course info (joomdlecourse id=2 paid_courses_button=0), the Go To Course button has no text in it, just the code (COM_JOOMDLE_GO_TO COURSE) showing within the button.

Any ideas on how to fix? Thanks.
Last edit: 13 years 4 months ago by Antonio Durán.
The topic has been locked.
More
13 years 4 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Go To Course Button Missing Text
What lang are you using? This is working fine on my local installation in english.
The topic has been locked.
More
13 years 4 months ago #3 by Chris
Replied by Chris on topic Go To Course Button Missing Text
Do you see any other "COM_JOOMDLE_...." messages appearing?

If yes, perhaps you are missing the language file.
If no, perhaps you are missing that one setting in your language file.

Try looking at the original language file supplied with your joomdle install packages and compare.
The topic has been locked.
More
13 years 4 months ago #4 by Neilw
Replied by Neilw on topic Go To Course Button Missing Text
Using English for language.

I checked that the en-GB.com_joomdle.ini file is in the language/en-GB folder. I also verified that it has the definition for the button in a format consistent with other defs (COM_JOOMDLE_GO_TO_COURSE="Go to course").

Other Joomdle related language tags seem to be working. Right above the button, for example, is the embed for the course info [{joomdlecourse id=2 paid_courses_button=0}] and the section names are fine. Also, during checkout the buttons are fine. I get Add to Cart okay, Proceed to Checkout, Continue Shopping, Next, etc. All those work. Just the Go To Course is not working right.
The topic has been locked.
More
13 years 4 months ago #5 by Neilw
Replied by Neilw on topic Go To Course Button Missing Text
Sorry, mixing Joomdle with Hikashop buttons in above post.

For this installation, we are not embedding full Moodle courses within Joomla, instead linking to Moodle for the courses. Therefore, I didn't have many other Joomdle buttons to look at.

To test the problem, I added a Joomdle main menu item for course descriptions. On that page, the Go To Course button shows up just fine.

Thus it seems that the problem is when I use the embed code for the course within a normal page/article (as mentioned in my post above), it sees that the user is enrolled in that course and shows the button, but not the right text. Problem seems to be with the embed code I am using to show course descriptions.
The topic has been locked.
More
13 years 4 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Go To Course Button Missing Text
The menu item is different, as the lang string is taken from the component lang file.
In the content plugin, the string is taken fron the plugin lang file.

Are you embedding course info on a normal joomla article, or in some place else?
The topic has been locked.
More
13 years 4 months ago #7 by Neilw
Replied by Neilw on topic Go To Course Button Missing Text
I have the string mentioned above [{joomdlecourse id=2 paid_courses_button=0}] embedded in a normal Joomla/K2 Item page. It successfully brings up the course info, titles, etc., but the button it brings up has the problem. The button link works, just doesn't put text into the button.
The topic has been locked.
More
13 years 4 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Go To Course Button Missing Text
Ok, thanks for the adddtional info, I found the problem.

In lang file: administrator/language/en-GB/en-GB.plg_content_joomdle_content_course.ini
change:
COM_JOOMDLE_GOTO_COURSE="Go to course"
by:
COM_JOOMDLE_GO_TO_COURSE="Go to course"
The topic has been locked.
More
13 years 4 months ago #9 by Neilw
Replied by Neilw on topic Go To Course Button Missing Text
Fixed. Thank you. Appreciate the help. We're getting ready to launch and this was one of the minor little bugs left to iron out.
The topic has been locked.