Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Change "Discussions" to "Posts"

Is there anyway to change the term Discussions to Posts?

«1

Comments

  • Options

    put this in conf/locale.php or create conf/locale.php if you don't have one

    <?php if (!defined('APPLICATION')) exit();
    
    
    
    $Definition['Discussions'] = 'Posts';
    $Definition['My Discussions'] = 'My Posts';
    $Definition['All Discussions'] = 'All Posts';
    $Definition['Start a New Discussion'] = 'Start a New Post';
    

    read up on localization in the documentation

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    edited March 2013

    That works perfectly, thanks!

    Can we do comments as replies too?

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @SteelVoltage

    You can use that file to change any system based definition.

  • Options
    peregrineperegrine MVP
    edited March 2013

    @SteelVoltage said:
    That works perfectly, thanks!

    Can we do comments as replies too?

    It's time for you to learn to do it yourself - you've seen an example...
    read up on localization in the documentation

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    Okay, I've done some researching and believe figured it out for the most part. However, there's one last part I can't seem to change. On the category list and on the post lists it says "# discussions" and "# comments." How would you alter that part?

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited March 2013

    $Definition['discussions']='whateveryouwantittosay';

  • Options

    That was the first thing I tried. However, on the category and discussion lists, where it shows the number of discussions and comments, it doesn't seem to affect it.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited March 2013

    hmmm yea it may not be a system based definition , maybe if you added your own locale file in your theme. But I should research it more, hopefully someone may have an idea..

  • Options

    Yeah I'll keep looking online, it's odd.

  • Options

    @SteelVoltage and @vrijvlinder

    taking the guesswork out....

    the way to look for definitions is to search the core and/or plugins for

    T(

    and Translate(

    It takes the guesswork and assumptions out of the equation.

    1) e.g. use grep (available for windows and linux - download the vanilla source and search for grep in discussions on this forum.

    grep -ri ' T(' * | grep -ri "discussions" | more

    or

    2) use the localedeveloper plugin or

    3) download a locale that has a pretty complete translation.

    Three ways to get what you want without assumptions or guesswork. and it doesn't hurt to read the documentation on localization a second and third time.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    KonquetKonquet ✭✭
    edited March 2013

    hey guys, i dont have so much time but little by little im translated all of my forum to spanish. How can i shared this translation?

    I dont talk only about core items, i translated some "word boxes" for example :

    "mark all read" > "marcar todos como leidos"

    Last post addon > "Last post" in box to "ultimos mensajes" in the box.

    I dont have problems for shared this small job but i dont know how to do

    English to spanish of course!

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    @Konquet

    you can contribute to the spanish locale. Puede contribuir al local en español, o construir otro mejor.

  • Options

    @vrijvlinder said:
    Konquet

    you can contribute to the spanish locale. Puede contribuir al local en español, o construir otro mejor.

    mmmm Ok, i try this :)

  • Options

    Kevin, that worked perfectly. Thanks so very much. I appreciate everyone's help.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    @SteelVoltage don't forget to give a reaction like : awesome or insightful to the people who helped !!

  • Options

    Thanks to everyone who spent sometime for helping us. What about forum.site.com/discussions? This will remain as it is! Is there anyway to change it to match with the definitions?

  • Options
    edited March 2013

    @vrijvlinder said:
    SteelVoltage don't forget to give a reaction like : awesome or insightful to the people who helped !!

    I work at a social security office and this would work very nicely at my window/cubicle...but then again it could be misconstrued a asking for tips so it is probably not allowed but it should be on a placard by the entry and the exit.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    I work at a social security office......

    Enough said :((((

  • Options

    @peregrine said:
    put this in conf/locale.php or create conf/locale.php if you don't have one

    <?php if (!defined('APPLICATION')) exit();
    
    
    
    $Definition['Discussions'] = 'Posts';
    $Definition['My Discussions'] = 'My Posts';
    $Definition['All Discussions'] = 'All Posts';
    $Definition['Start a New Discussion'] = 'Start a New Post';
    

    read up on localization in the documentation

    I can't create "conf/locale.php" because of the "/". Sorry, I'm totally a noob.
    By the way, could you tell me where do I have to place the file when I finish it?

Sign In or Register to comment.