Custom translation
I need to change some translations specific for my forum, I know I can edit the translations from ACP or directly editing the files in themes/default/languages/ but this is not what I need, since next time I will update the translation I will loose my "custom translations".
Is there a way in elkarte to create a custom file with only the strings I want to change? or any other alternative?
Re: Custom translation
Reply #1 –
You can include them via something like a preload hook at set them in the right place or if it’s set later in the loader one of the final hooks should also work to overwrite any of them.
Re: Custom translation
Reply #6 –
What string are you trying to replace?
Re: Custom translation
Reply #7 –
The file Addons.language.php is considered by elkarte, the first time I created it I forgot to put in the begging "<?php" and this caused a white page with some warnings and errors.
I did a test with a couple of casual strings from Admin.language.php
Re: Custom translation
Reply #8 –
I think you will still need to backup the Addons.english.php, if you modify it, before running full EA updates/upgrades, just in case, as the empty version of that file exists in the full installation/upgrade package.
Re: Custom translation
Reply #10 –
I mean Addons.english.php file comes with full EA package and you need to back up yours if you make changes to it so that if you run a upgrade or update or fix using the full EA package, that file will be replaced.
Re: Custom translation
Reply #11 –
Good to know, but it did not work for me.