ElkArte Community

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

Title: How would I be able to edit default English language file (texts, strings) ?
Post by: Saiyen on May 10, 2016, 03:09:56 pm
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, 03:32:38 pm
welcome to Elkarte !

Quote from: https://github.com/elkarte/Elkarte/wiki/About
ElkArte 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, 03:57:36 pm
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, 04:05:14 pm
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, 08: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, 09:00:38 pm
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 ;)

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, 11:20:23 pm
All text will be overwrited?
Yep. :(

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. :)

Good to know, thanks ;)
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, 08:09:05 pm
All text will be overwrited?
Yep. :(

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. :)

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, 08: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)