News:

Wondering if this will always be free?  See why free is better.

Main Menu

Issues with Smileys 'Alt' Text Translation

Started by mrc1, September 03, 2024, 12:55:52 PM

Previous topic - Next topic

mrc1

Where can I find the translation for the smiley texts "Roll Eyes" ::) and "Lips Sealed" :-X? I've tried editing both the index.english and index.portuguese_brazilian files (which I'm using), but these two smileys do not update, while the others do. I've tried searching in many other files without success. Please help me.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mrc1

hxxp:cs2d.com.br/forum/index.php?action=post;topic=1.0;last_msg=1 [nonactive]

Kindred

Oh, apparently everything on your sure requires registration to even see it...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mrc1


Arantor

If you have customised smileys you will need to go into the smileys configuration to change it.
Holder of controversial views, all of which my own.


mrc1

It's a clean install, I just installed smf and downloaded the translation. The translation file has the translated smileys, including the ones I mentioned, but I don't know why these two specifically don't work. I tested it with other languages too and it didn't work, it seems that these arrays are somewhere else.

Aleksi "Lex" Kilpinen

#7
Admin -> Forum -> Smileys and Message icons -> Edit Smileys
See the tooltip or description for each smiley. They aren't actually translatable as far as I know, except that you can modify them all to be what ever you want.

Edit: Though - Since you mentioned, I checked and the index.english -file does have these

$txt['icon_smiley'] = 'Smiley';
$txt['icon_angry'] = 'Angry';
$txt['icon_cheesy'] = 'Cheesy';
$txt['icon_laugh'] = 'Laugh';
$txt['icon_sad'] = 'Sad';
$txt['icon_wink'] = 'Wink';
$txt['icon_grin'] = 'Grin';
$txt['icon_shocked'] = 'Shocked';
$txt['icon_cool'] = 'Cool';
$txt['icon_huh'] = 'Huh';
$txt['icon_rolleyes'] = 'Roll Eyes';
$txt['icon_tongue'] = 'Tongue';
$txt['icon_embarrassed'] = 'Embarrassed';
$txt['icon_lips'] = 'Lips sealed';
$txt['icon_undecided'] = 'Undecided';
$txt['icon_kiss'] = 'Kiss';
$txt['icon_cry'] = 'Cry';
That I'm now very unsure what they are for - Unless they simply provide defaults?
If someone knows for sure, I'd be glad to learn too :D The descriptions are in the database, this I confirmed.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

mrc1

#8
Yes, but for some reason, when I edit $txt['icon_rolleyes'] = 'Roll Eyes'; and $txt['icon_lips'] = 'Lips sealed'; it has no effect.

Edit: I FOUND IT! I had to access phpMyAdmin and go to smfa4_smileys. Editing it there worked! So my recommendation is to search for and edit through phpMyAdmin when you can't find the translation in the files.

hxxp:prnt.sc/SVZsLObMptlj [nonactive]

Aleksi "Lex" Kilpinen

Well, there is an interface in SMF to do that, it's not actually necessary to go to the database directly.
Quote from: Aleksi "Lex" Kilpinen on September 03, 2024, 03:07:57 PMAdmin -> Forum -> Smileys and Message icons -> Edit Smileys
See the tooltip or description for each smiley. They aren't actually translatable as far as I know, except that you can modify them all to be what ever you want.
But glad you figured it out anyway.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

mrc1

Quote from: Aleksi "Lex" Kilpinen on September 03, 2024, 04:01:49 PMWell, there is an interface in SMF to do that, it's not actually necessary to go to the database directly.
Quote from: Aleksi "Lex" Kilpinen on September 03, 2024, 03:07:57 PMAdmin -> Forum -> Smileys and Message icons -> Edit Smileys
See the tooltip or description for each smiley. They aren't actually translatable as far as I know, except that you can modify them all to be what ever you want.
But glad you figured it out anyway.
I don't have this option.

1. hxxp:prnt.sc/c_Od-ddUE3tA [nonactive]
2. hxxp:prnt.sc/vbfzzu_ReP0a [nonactive]
3. hxxp:prnt.sc/2r3fqyXK5cjl [nonactive]

Aleksi "Lex" Kilpinen

Ah, that might require you to go to the smiley settings first and enable customized smileys.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

mrc1

Ah, that suggestion worked for the topic message icon, but for the smileys you send in the messages, it's different.

hxxp:prnt.sc/YufTOdhAwegh [nonactive]

Aleksi "Lex" Kilpinen

#13
But it's not though.
Message icons and Smilies have the exact same options, and you can edit the "Tooltip or description" for both.

For smilies it's Admin -> Forum -> Smileys and Message icons -> Edit Smileys -> Modify -> "Tooltip or description"
For message icons it's Admin -> Forum -> Smileys and Message icons -> Message icons -> Modify -> "Tooltip or description"

The Settings have options to customize both.
Admin -> Forum -> Smileys and Message Icons -> Settings -> Enable customized smileys
and Admin -> Forum -> Smileys and Message Icons -> Settings -> Enable customized message icons

And I just checked this on 3 different 2.1 forums, one of which never had any custom icons or smilies before. Enabling customized smilies, enabled editing existing smilies, and this includes the tooltip/description.

But this testing actually did make me wiser - The translations in the language files are apparently used, when you enable customization.
It seems to me like what ever language is default when this is first done, ends up deciding the tooltips for the default smilies/icons - but changing the forum default language after that has no effect. Editing the "tooltip or description" however does, and works as one would expect. The change is saved in the database, in smf_smileys, not in the language files. This also probably means that the language files are probably used, until you first enable customization. So I was partially wrong about them not being translatable. But I was not wrong about not needing to go to the database, you should be able to edit them either through the language files, or the admin UI.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

mrc1

You're right, with those things you mentioned, it worked as well. It should come enabled by default.

Advertisement: