@hgtonight said:
You should use locale definitions rather than modifying core files. In this example, placing the following in your /conf/locale.php file will override the guest module text:
$Definition['Howdy, Stranger!'] = 'Welcome to the community!';
$Definition['GuestModule.Message'] = "I don't think I have seen you before. If you want to join in on the conversation, click one of these buttons!";
This is the preferred method for modifying translatable text.
Vanilla 2.5 does not accept this method. No localephp in conf. Created one and definitions showed at top of page. Had to change with guestphp. Sure would have liked to change it your way. Next update will have to re-edit the files.
<?php
$Definition['Howdy, Stranger!'] = 'Welcome to the community!';
$Definition['GuestModule.Message'] = "I don't think I have seen you before. If you want to join in on the conversation, click one of these buttons!";
@hgtonight said:
You should use locale definitions rather than modifying core files. In this example, placing the following in your /conf/locale.php file will override the guest module text:
$Definition['Howdy, Stranger!'] = 'Welcome to the community!';
$Definition['GuestModule.Message'] = "I don't think I have seen you before. If you want to join in on the conversation, click one of these buttons!";
This is the preferred method for modifying translatable text.
Vanilla 2.5 does not accept this method. No localephp in conf. Created one and definitions showed at top of page. Had to change with guestphp. Sure would have liked to change it your way. Next update will have to re-edit the files.
Comments
https://open.vanillaforums.com/discussion/26597/tutorial-how-to-change-wording-how-to-change-text-how-to-change-language-how-to-change-locale#latest
Vanilla 2.5 does not accept this method. No localephp in conf. Created one and definitions showed at top of page. Had to change with guestphp. Sure would have liked to change it your way. Next update will have to re-edit the files.
The file should look like that:
The file needs to start with
<?php
https://docs.vanillaforums.com/developer/locales/#overriding-locales
https://open.vanillaforums.com/discussion/26597/tutorial-how-to-change-wording-how-to-change-text-how-to-change-language-how-to-change-locale/p1
Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.
@River
Thanks for that! Missing
<?php if (!defined('APPLICATION')) exit(); stuff ?>
I have to take a timeout!