HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to overwrite some text of my own?
vanillawhisky
New
in Localization
Hello Everyone,
I am using vanilla versoion 2.2.1. I have this extension working fine but I want to change some text of my own.
for example:
insteed of$Definition['New Discussion'] = 'Neue Diskussion';
I would prefer $Definition['New Discussion'] = 'Neues Thema erstellen';
I did overwrite this in conf/locale.php but this doesnt give 'New Discussion' when I change to english insteed gives 'Neues Thema erstellen' .
Can anyone please help me with this.
Tagged:
0
Comments
First off use this add-on instead.
use the https://vanillaforums.org/addon/vf_de-locale
The german locale https://vanillaforums.org/addon/687/german-locale is very old. These old add-ons that are translations would best be deleted to keep newcomers from making BAD choices. Not sure if you are posting your question under the wrong add-on or if you are using the wrong add-on.
Yes - create a conf/locale-de.php file to override german specific definitions and use the official staff add-ons for locales , otherwise you may have unusual problems with plugins, etc regarding translations.
https://vanillaforums.org/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.
Thanks for your suggestions. Now I have official staff add-ons.
Before, I had conf/locale.php and I changed it to locale-de.php and it works.
Thank you!!!
@Linc
will vanilla 2.4 do away with locale specific overrides completely e.g. conf/locale-de.php
A scan of the master code it looks like it has gotten rid of lots of locale flexibility and seems to be migrating to add-on specific locales.
added comment here: https://vanillaforums.org/discussion/comment/242284/#Comment_242284
also would it be wise to delete this add-on https://vanillaforums.org/addon/687/german-locale
since it caused the user issues when using since the Locale name in the old plugin does not synch up with other plugins and caused alot of unneeded confusion.
seems like it would solve alot of headaches and reduce confusion to delete all the older locales that are not the newer staff addons of locales.
Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.