Skip to:
Content
Pages
Categories
Search
Top
Bottom

Theming the ajax


  • Greg
    Participant

    @rebootnow

    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

    @kevinjohngallagher

    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.


    Greg
    Participant

    @rebootnow

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


    Gautam Gupta
    Moderator

    @gautamgupta

    Create a new language file.


    kevinjohngallagher
    Member

    @kevinjohngallagher

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


    Gautam Gupta
    Moderator

    @gautamgupta

    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.