HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Localization, not enabling.
Anonymoose
✭✭
in Localization
Can't seem to get the locale strings to change, despite changing them.
0
Comments
Are you talking about the ones that are in the sphinx plugin folder? Where are you changing them?
Yes, I have edited plugins/SphinxSearch/locale/en-US.php but nothing changes on the site. (I use a custom default locale with en-US as the Locale var.)
That's odd, it worked for me. I just now modified
$Definition['Related Threads'] = 'Related Threads'
and I saw the changes take effect. Are you sure that the array at the top of the file corresponds to'en-US'
and NOT'en-CA'
?Yes.
My locale:
is the name of the file
en-US.php
?Yes.
conf/config.php
How about if you have copy-paste the definitions from the sphinx locale file into your main one and edit there. That maybe a stop-gap measure for now.
I still don't know this isn't working. I can't replicate it on my side of things....there's probably a config setting different somewhere...
Yes, copy-pasting into the main locale file worked.
Thanks for looking into this so far & Thanks for the plugin.
@Anonymoose
I think you might also try
creating a directory called
/SphinxSearch/locale/en-US/definitions.php
and put your definitions in there. It might work for you.
not sure if there is a preferred way.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Just tried it. It doesn't work.
@Anonymoose
the order of locales is
so depending if you have
$Definition['Related Threads'] = 'My Related Threads'
in multiple files.
it will be overruled by the highest number.
this is how it works on my server.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Well, I'll leave it alone, since it works when placed in /vanilla/locales/en-US/other_definitions.php and wait for Vanilla 2.1 to sort it out.
However, plugins/SphinxSearch/locale/en-US.php does not work. I tried a variety of definitions for a variety of strings.
@peregrine do you also see this issue?
I don't have an issue. Your setup and theme changing works perfectly fine in both vanilla1 and vanilla2 creating custom locales on my server. I suspect Anonymoose has incorrectly setup his locales.
for it to be setup correctly - this is the exact heading he needs.
It might be less confusing for users than the en-CA.php technique and make it less prone for them to make mistakes.
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'm going to do this for next time.