Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Customize language for extension
Language customization of Vanilla 1.0 core is easy with "language packages".
But I would like customize the extension language too.
I've tried to add dictionary entries seen in the extension file in the language.php but it doesn't work.
Does it exist a standard way (without modify extension files) to do that?
Thanks!
But I would like customize the extension language too.
I've tried to add dictionary entries seen in the extension file in the language.php but it doesn't work.
Does it exist a standard way (without modify extension files) to do that?
Thanks!
0
This discussion has been closed.
Comments
If dictionary entries (in the extension files, I suppose) are loaded AFTER those in the language.php, they replace those in the language.php?!?
for example I've found dictionnary entry in the Iphistory main file (extensions\iphistory\default.php)
$Context->Dictionary["IpNotShared"] = "This IP address has not been shared by any other users.";
I've copied the line in the languages\french\language.php and modified it to
$Context->Dictionary["IpNotShared"] = "Cette adresse n'a pas été utilisée par d'autres utilisateurs.";
But I always have the english version...
I must change it in extension code, OK?
$Context->Dictionary["IpNotShared"] = "Cette adresse n'a pas été utilisée par d'autres utilisateurs.";
to the language.php file, and then remove the old one from within the default.php file.
What they were saying above is that since the language.php file is loaded before the defualt.php file the dictionary term (ipnotshared) would be overwritten with what was in default.php.
(extensions\iphistory\default.php)
// this is now commented out. // $Context->Dictionary["IpNotShared"] = "This IP address has not been shared by any other users.";