ElkArte Community

Extending Elk => Localization => Topic started by: Saiyen on May 10, 2016, 09:09:56 am

Title: How would I be able to edit default English language file (texts, strings) ?
Post by: Saiyen on May 10, 2016, 09:09:56 am
Hello Community.

I am new to this forum software and to this community too.

I would like to change some strings of displayed messages on my forum. I do not want to change my language pack completely, but I simply want to edit some strings/texts of the default English language pack.

Where is the file located in my ElkArte installation which contains the default strings that I can edit easily without any worries?

Thank you!

P.S. Note to developers: This forum script looks almost identical to SMF (Simple Machine Forums) expect it has more modern design. The sections, layout, settings are almost same.
Title: Re: How would I be able to edit default English language file (texts, strings) ?
Post by: radu81 on May 10, 2016, 09:32:38 am
welcome to Elkarte !

Quote from: https://github.com/elkarte/Elkarte/wiki/AboutElkArte is a successor fork to SMF and aims to modernize the code, implement new features and make forums more relevant in a time of unprecedented social interaction.
Title: Re: How would I be able to edit default English language file (texts, strings) ?
Post by: Spuds on May 10, 2016, 09:57:36 am
The English language files are located in themes\default\languages\english

You can also use the admin area, Languages -> Edit Languages   Select English.   From that page select from the various language templates which will allow you to edit the language strings in each template.
Title: Re: How would I be able to edit default English language file (texts, strings) ?
Post by: Saiyen on May 10, 2016, 10:05:14 am
Quote from: Spuds – The English language files are located in themes\default\languages\english

You can also use the admin area, Languages -> Edit Languages   Select English.   From that page select from the various language templates which will allow you to edit the language strings in each template.

Hahahaha this took me some time to realise :).

At first I couldn't see it, but then I saw it, anyways thank you!
Title: Re: How would I be able to edit default English language file (texts, strings) ?
Post by: emanuele on May 10, 2016, 02:44:45 pm
Do note, the language editor may choke on certain files with many strings. O:-)
It's a known bug that may take a while to be fixed.
Title: Re: How would I be able to edit default English language file (texts, strings) ?
Post by: radu81 on May 10, 2016, 03:00:38 pm
Quote from: Spuds – The English language files are located in themes\default\languages\english
With this method what will happen when a new version of langauge is updated? All text will be overwrited?
In joomla there is a nice feature "Language overrdide" which allow the user to set custom translations and even if language files are updated the custom translations remains. To be honest I don't need such a feature as normal translations are fine for me, but I'm just curious ;)

Quote from: emanuele – Do note, the language editor may choke on certain files with many strings. O:-)
It's a known bug that may take a while to be fixed.
Good to know, thanks ;)
Title: Re: How would I be able to edit default English language file (texts, strings) ?
Post by: emanuele on May 10, 2016, 05:20:23 pm
Yep. :(

Quote from: radu81 – In joomla there is a nice feature "Language overrdide" which allow the user to set custom translations and even if language files are updated the custom translations remains.
There is a discussion about something like that, it may be worth exploring in future versions. :)

It's in the known bugs section since forever. :P
Title: Re: How would I be able to edit default English language file (texts, strings) ?
Post by: Saiyen on May 11, 2016, 02:09:05 pm
Quote from: emanuele –
Quote from: radu81 – All text will be overwrited?
Yep. :(

Quote from: radu81 – In joomla there is a nice feature "Language overrdide" which allow the user to set custom translations and even if language files are updated the custom translations remains.
There is a discussion about something like that, it may be worth exploring in future versions. :)

Quote from: radu81 – Good to know, thanks ;)
It's in the known bugs section since forever. :P

Odd... I changed some strings, but they are not appearing changed on my forum?
Title: Re: How would I be able to edit default English language file (texts, strings) ?
Post by: emanuele on May 16, 2016, 02:51:38 am
Sorry, lost that one... :-[

Which file did you change?
It may be a write-permission issue, but it could also be the "usual" php 5.5+ opcache. Or maybe something else.
Windows or Linux? (The server of course :P)