HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
overdrive en locale
AjansKartal
New
in Localization
I have a question. How can I overdrive local en at theme folder.
I can overdrive other locals. I created a folder with locale name. but it doesn't work for en. a locale file to conf folder method is not useless for a theme. is there a method for overdrive en local in theme folder or a themehook function?
thanks
0
Comments
I suggest you to read this ^^
http://docs.vanillaforums.com/developer/locales/
if I dind't get wrong, it says create a locale.php file to conf folder for en locale in installation folder, but I want to overdrive en locale in custom theme folder. I cannot for only default en locale
This conf/locale.php file is called after others locales, so it will override all locales definitions that it contain.
I do not understand what you want exactly
He wants to have a theme-specific translation. There is one hacky way, but give me some time to look for an elegant solution...
firstly, thanks for your effort to help me,
conf/locale.php method works in vanilla installation folder. I want to do the same in the custum theme folder.
the way you said: vanilla\conf\locale.php
my pursuit vanilla\themes\customtheme\locale.php or vanilla\themes\customtheme\locale\en.php or a themehook func
Using /theme/name/locale/en.php works for me. When you create a locale file or rename it, you should always clear the cache: delete all /cache/*.ini files and restart memcached if you are using it
thank you
as you said, it works after clear the cache.