Options

Change "Discussions" to "Posts"

Is there anyway to change the term Discussions to Posts?

«1

Comments

  • 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.

  • edited March 2013

    That works perfectly, thanks!

    Can we do comments as replies too?

  • @SteelVoltage

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

  • 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.

  • 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?

  • edited March 2013

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

  • 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.

  • 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..

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

  • @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.

  • 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!

  • @Konquet

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

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

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

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

  • 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?

  • 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.

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

    Enough said :((((

  • @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.