Info
- 6 posts
- 3 voices
- Started 1 year ago by Greg
- Latest reply from Gautam
- This topic is not resolved
Theming the ajax
-
- Posted 1 year ago #
Is there a way to change the strings in "topics.js" (in "bb-includes/js/") without touching the core files?
For example, I would like to use a different string for 'Add this topic to your favorites'.
Is this possible?
Thanks.
-
- Posted 1 year ago #
Nope,
We hardcoded alot of stuff into the core.That said, it's in a Javascript file, so you could change it without messing up any of the PHP running bbPress, or you could try and overwrite it with another jQuery plugin or code to overwrite the
optionforconfirmPostDeleteinbbTopicJS.I've not played around with jQuery since 1.1 so can't talk with any authority on doing so, but I'm sure it's possible.
-
- Posted 1 year ago #
Ok, thanks Kevin. I'll look into those options.
-
- Posted 1 year ago #
Create a new language file.
-
- Posted 1 year ago #
Oh, thats a good workaround too Gautam; i didn't know if they got parsed by the MO or not, as they're in the front-end.
EDIT: MO, not PO. D'oh :)
-
- Posted 1 year ago #
Every string is that is shown on the screen is parsed for translation (talking about bbPress). If you want custom strings, it would be the same process as you create a translation for any other language. For eg. I could have "voices" as "participants", "favorites" as "likes" etc.
-
You must log in to post.