Which file should contain the string "
insert"? I can't find it for translation.
(Link-6589)
I think it's Line 50 of Editor.english.php:
$editortxt['Insert'] = 'Insert';
Not that, I have that line translated and I still see the english text.
edit
it's hardcoded into /themes/default/Post.template.php at line 453
<input type="button" class="button" value="insert">
I move this topic to Bug Reports
This is not such a string.
Yes, this is exactly what you need. Thanks.
ARG!
Dang.
https://github.com/elkarte/Elkarte/commit/029ca2c267ebf3806253da74e816c44400a8f5ee
The code is the difference between
insert and
Insert. Is this correct? Or another language file?
Post.template.php
<input type="button" class="button" value="' . $txt['insert'] . '">
Editor.english.php
$editortxt['Insert'] = 'Insert';
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.
Yes.
Green: add
Pink: remove
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.
This is understandable. But logically it should be in Editor.english.php, not in Post.english.php.
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.
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 ?
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.
Hi
@Spuds ,
i'm saying there is no channel txt['insert'] in the Post.english.php
no 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'.
that is strange, I have a test forum 1.1.6 + 1.1.7 patch and I see that in Post.template.php
do you have:
<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.
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 :
<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
(Link-6959)
it should be:
$txt['insert'] = 'Insérer';
and not
$txt['Insert'] = 'Insérer';
Since that is a 1.1.7 change, its likely that Post.english.txt has not been updated on Transifex ... so $txt['insert'] = 'Insert'; may not exist in that file for it to be translated.
Hi,
Your eyes are very good
@radu81 : the translation works like you say, but will not be here when an update will be made because
@Spuds is right (this line is not on transifex in the Post.english.php file and can't be translate).
Glad you solved, I don't know how Transifex works, probably it will be available when 1.1.7 patch will be officially released
=== edit ===
I missed this post
Thank you
@radu81,
As you have seen there is no relation with the 1.1.7 patch : just the line that lakes in the Post.english.php on transifex, if i understand correctly...
Hi,
it seems it's not in the new files on tranifex (i did'nt found it in the post file).
Philippe
I just downloaded the french translation from https://translations.elkarte.net/french_1-1-3.zip and inside Post.french.php at line 183 I see:
$txt['insert'] = 'Insérer';
Check if you have that on your forum, otherwise update the translation.
I also checked on Transifex and I see there is that translation
You are right
@radu81 : sorry for that.
I made some translations on new channels to update the new translations with the patch1.1.7 yesterday and i made my search on "insert" in channels with no translations, and nothing appears... because there is nothing to translate : it seems i made this translation one month ago but i don't remember it and i didn't update my 2 elkarte to test, that is very strange.
It works fine.
Philippe