Which file should contain the string "insert"? September 15, 2020, 02:42:54 am Which file should contain the string "insert"? I can't find it for translation.
Re: Which file should contain the string "insert"? Reply #1 – September 15, 2020, 03:15:12 am I think it's Line 50 of Editor.english.php:Code: [Select]$editortxt['Insert'] = 'Insert';
Re: Which file should contain the string "insert"? Reply #2 – September 15, 2020, 04:06:49 am Not that, I have that line translated and I still see the english text.editit's hardcoded into /themes/default/Post.template.php at line 453Code: [Select] <input type="button" class="button" value="insert">I move this topic to Bug Reports
Re: Which file should contain the string "insert"? Reply #3 – September 15, 2020, 12:25:01 pm Quote from: Antechinus – September 15, 2020, 03:15:12 amI think it's Line 50 of Editor.english.phpThis is not such a string.Quote from: radu81 – September 15, 2020, 04:06:49 ameditit's hardcoded into /themes/default/Post.template.php at line 453Code: [Select] <input type="button" class="button" value="insert">Yes, this is exactly what you need. Thanks.
Re: Which file should contain the string "insert"? Reply #4 – September 16, 2020, 02:09:14 pm ARG!Dang.https://github.com/elkarte/Elkarte/commit/029ca2c267ebf3806253da74e816c44400a8f5ee
Re: Which file should contain the string "insert"? Reply #5 – September 16, 2020, 05:14:27 pm Quote from: emanuele – September 16, 2020, 02:09:14 pmARG!Dang.https://github.com/elkarte/Elkarte/commit/029ca2c267ebf3806253da74e816c44400a8f5eeThe code is the difference between insert and Insert. Is this correct? Or another language file?Post.template.phpCode: [Select]<input type="button" class="button" value="' . $txt['insert'] . '">Editor.english.phpCode: [Select]$editortxt['Insert'] = 'Insert';
Re: Which file should contain the string "insert"? Reply #6 – September 16, 2020, 08:19:52 pm The commit on GitHub shows the string going in themes/default/languages/english/Post.english.php Although it does seem a bit silly to have exactly the same string called in two separate files. I can see that confusing someone sooner or later. I would think Editor.******.php should be able to handle it. Better grumble at Ema.Or you could just try it your way. If it works, that's even better.
Re: Which file should contain the string "insert"? Reply #7 – September 17, 2020, 07:34:16 am Quote from: forumovod – September 16, 2020, 05:14:27 pmQuote from: emanuele – September 16, 2020, 02:09:14 pmARG!Dang.https://github.com/elkarte/Elkarte/commit/029ca2c267ebf3806253da74e816c44400a8f5eeThe code is the difference between insert and Insert. Is this correct? Or another language file?Yes.Green: addPink: removeQuote from: forumovod – September 16, 2020, 05:14:27 pmPost.template.phpCode: [Select]<input type="button" class="button" value="' . $txt['insert'] . '">Editor.english.phpCode: [Select]$editortxt['Insert'] = 'Insert';It's not Editor.english.php, it's Post.english.php and it's not $editortxt, but $txt. You see the file names at the beginning of each code block.
Re: Which file should contain the string "insert"? Reply #8 – September 17, 2020, 04:31:15 pm Quote from: emanuele – September 17, 2020, 07:34:16 amIt's not Editor.english.php, it's Post.english.php and it's not $editortxt, but $txt. You see the file names at the beginning of each code block.This is understandable. But logically it should be in Editor.english.php, not in Post.english.php.
Re: Which file should contain the string "insert"? Reply #9 – September 18, 2020, 04:19:15 pm Well, I'm pretty sure it has to be in Post.english.php, but if you know the logic behind the files in Elk, more than I do, then be my guest.
Re: Which file should contain the string "insert"? Reply #10 – February 24, 2021, 10:11:12 am Hi,I'm with the 1.1.7 patch since some weeks to test it and this problem is still here : is it possible to include the solution in the patch ?
Re: Which file should contain the string "insert"? Reply #11 – February 24, 2021, 10:15:30 pm It should be in there .... Are you saying to translated txt['insert'] in the Post.english.php file and its not changing? Unfortunerly I know there are a few duplicate stings in different language files which complicates things, but the system only loads the language files that are required (requested) at the time, not all are available all the time.
Re: Which file should contain the string "insert"? Reply #12 – February 25, 2021, 11:34:37 am Hi @Spuds ,i'm saying there is no channel txt['insert'] in the Post.english.phpno code <input type="button" class="button" value="' . $txt['insert'] . '"> in post.template.php.There are the channels $editortxt['Insert'] = 'Insert'; in Editor.english.php and $editortxt['Insert'] = 'Insérer'; in Editor.french.php but it's not the same 'Insert'.
Re: Which file should contain the string "insert"? Reply #13 – February 25, 2021, 05:47:51 pm Quote from: augras – February 25, 2021, 11:34:37 amno code <input type="button" class="button" value="' . $txt['insert'] . '"> in post.template.php.that is strange, I have a test forum 1.1.6 + 1.1.7 patch and I see that in Post.template.phpdo you have:Code: [Select] <input type="button" class="button" value="insert">?In my Post.italian.php there is no $txt['insert'] = 'Insert;but after adding manually I see the "Insert" word translated correctly.
Re: Which file should contain the string "insert"? Reply #14 – February 26, 2021, 11:28:10 am Quote from: radu81 – February 25, 2021, 05:47:51 pmQuote from: augras – February 25, 2021, 11:34:37 amno code <input type="button" class="button" value="' . $txt['insert'] . '"> in post.template.php.that is strange, I have a test forum 1.1.6 + 1.1.7 patch and I see that in Post.template.phpdo you have:Code: [Select] <input type="button" class="button" value="insert">?Hi,I have the same thing on my old forum and on a new fresh one i made to test.I have no more this line :Code: [Select] <input type="button" class="button" value="insert">If i insert manually $txt['Insert'] = 'Insérer'; in my Post.french.php i get an error when i want to edit a post