Custom translation November 06, 2018, 05:09:58 pm 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 – November 06, 2018, 06:08:42 pm 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 #2 – November 07, 2018, 12:42:27 am Try adding the in english/Addons.english.php for english. You can do the same for other language. I think that should overwrite default settings. I think...
Re: Custom translation Reply #3 – November 07, 2018, 01:05:27 am Use a different language other than the ones in the update package. With every update I have to check all the language files and translate the new lines. Not funny also.
Re: Custom translation Reply #4 – November 07, 2018, 02:44:27 am Quote from: ahrasis – November 07, 2018, 12:42:27 amTry adding the in english/Addons.english.php for english. You can do the same for other language. I think that should overwrite default settings. I think... ^^ This should work. (Unless it's broken xD )
Re: Custom translation Reply #5 – November 07, 2018, 08:43:29 am I like the idea of using a custom file like Addons.italian.php, but it doesn't work for me, I still see the original translations. Can anyone test this and confirm is working?
Re: Custom translation Reply #6 – November 07, 2018, 04:09:40 pm What string are you trying to replace?
Re: Custom translation Reply #7 – November 08, 2018, 08:47:10 am 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 – November 08, 2018, 09:27:23 am 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 #9 – November 08, 2018, 09:52:26 am Thanks for answering @ahrasis but I I'm not sure I understand what should I do
Re: Custom translation Reply #10 – December 01, 2018, 12:38:22 am 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 – December 01, 2018, 04:12:37 am Good to know, but it did not work for me.
Re: Custom translation Reply #12 – December 02, 2018, 02:46:04 am Then I think this should be noted as a bug. @emanuele @Spuds what do you think ?
Re: Custom translation Reply #13 – December 03, 2018, 02:45:33 am I think an upgrade package should not overwrite my addons language file. Thanks for the hint!