Skip to:
Content
Pages
Categories
Search
Top
Bottom

Theming the ajax

  • @rebootnow

    Participant

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @kevinjohngallagher

    Member

    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 option for confirmPostDelete inbbTopicJS.

    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.

    @rebootnow

    Participant

    Ok, thanks Kevin. I’ll look into those options.

    @gautamgupta

    Participant

    Create a new language file.

    @kevinjohngallagher

    Member

    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 :)

    @gautamgupta

    Participant

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar