HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

"Commented on" notification translate

SchryversSchryvers
edited October 2014 in General Banter

Sorry guys, been searching and trying for hours now (whole day..) its now 02:30 am so kinda frustrating.

  1. Tried everything to change the "Commented on" text on the notificator on top and in email if you bookmarked a topic.

  2. Also "Most Recent:" text on /categories/ i cannot find or change due locales.

Think its the last language changes for me... :blush:

Vanilla 2.1.3 on Ozone 2.1

Comments

  • post a screenshot and circle what you want changed.

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

  • $Definition['HeadlineFormat.Comment']= '{ActivityUserID,user} Tola een goede grap <a href="{Url,html}">{Data.Name,text}</a>';

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

  • R_JR_J Ex-Fanboy Munich Moderator
    edited October 2014

    Sometimes google can be more helpful than the built in search: https://www.google.de/?gws_rd=ssl#safe=off&amp;q=site:vanillaforums.org+translate+"commented+on"

    There are quite a lot of translation options:

    $Definition['Activity.DiscussionComment.FullHeadline'] = '%1$s commented on %4$s %8$s.';
    $Definition['Activity.DiscussionComment.ProfileHeadline'] = '%1$s commented on %4$s %8$s.';
    

    Look at that to understand the translation: https://github.com/vanilla/vanilla/blob/2.1/library/core/class.format.php#L37-L49

    For "Most Recent" try this one $Definition['Most recent: %1$s by %2$s'] = 'Neuester: %1$s von %2$s';


  • peregrineperegrine MVP
    edited October 2014

    @R_J - sometimes the best tool is the one you posted in translation candidates. :)

    @Schryvers

    http://vanillaforums.org/discussion/26793/finding-translation-candidates-configs-and-fired-events

    the T5 program.

    T5.zip

    with a simple change at top of T5 program to make it generic

    <?php
    
    $translatableFunctions = array('c','config','savetoconfig');
    //$path = '/var/www/vanilla/';
    
    $path = getcwd();
    
    echo $path;
    

    and just run it in the folder above vanilla

    /
    c5.php
    /forum
    

    or see this...

    http://vanillaforums.org/discussion/comment/209149/#Comment_209149

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

  • R_JR_J Ex-Fanboy Munich Moderator
    edited October 2014

    @peregrine: that was a real fun, but I guess using google is more intuitive for most of the users out there


  • could be.

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

  • The Most Recent on discussion page is workin now but

    I mean this Notification messages like All notifications, Commented on and Notification Preferences.

    I did searched google and this forum everwhere but cant find this one.

  • try

    $Definition['All %s'] = "Todos %s";

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

  • peregrineperegrine MVP
    edited October 2014

    Probably the same all as here

    http://vanillaforums.org/discussion/comment/217341/#Comment_217341

    http://vanillaforums.org/discussion/28208/some-translations-problems

    and did you try the "Master of the Obvious" test.

    $Definition['Notification Preferences'] = "boo boo preferences";

    search around all the answers are on the forum.

    and re-read http://vanillaforums.org/discussion/comment/217329/#Comment_217329

    and try it.

    I already told you how to do commented on.

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

  • next time post you could post you translations questions under localization category or the appropriate locale instead of General Banter.

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

  • Thanks peregrine... I readed all those discussions you provide me, but then i cant find new translations. For now you helped me out, but now i have the next one:

    So, i readed all your stuff you provide me, but i cant seem to find this... Its hard to understand some topics but hey im trying al the time, its not like "oh i dunno this let me ask it on vanilla forums.... no, this is the latest point where i want to ask, and im feeling dumber than dumb every time i asking for shit because im not gonna learn it, dont understand anything of it how i find that "by" in al those vanilla files, and then, i really dont know how its named to add it into my locale file, its not just translate By to Door in the local that doesnt work.

    so why is this so hard to translate? why is not everything located in the locale file??

  • peregrineperegrine MVP
    edited October 2014

    how i find that "by" in al those vanilla files,

    or you could use the C5.php program I suggested 3 times at least.

    download copy of vanilla core and download it on you pc. extract it.

    no need to install it.

    you could download the german transifex and look fo by's

    or the norwegian one.

    it might be easier for you to look at another language,

    $Definition['Most recent by %1$s'] = 'Nyeste av %1$s';
    $Definition['Started by %1$s'] = 'Startet av %1$s';

    and you'll probably be asking for this before long.

    $Definition['Powered by %s'] = 'Dette forumet kjører %s';
    $Definition['%s by''] = "%s by";

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

  • The word By on discussion page is not changing at all what i do...

    Im hopeless.

  • change to the default theme and see if it changes?

    if it does, then you need to look thru your theme to see how the wording changed in the views folders if any.

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

Sign In or Register to comment.