2 bugs I came across

Started by Dan_y2k, November 13, 2010, 07:38:31 AM

Previous topic - Next topic

Dan_y2k

1. On my profile page (http://www.domain.tld/index.php?action=profile;u=1), on the upper part of the summary (where it says the username and underneath it there's a mail icon, and next to it (if set) there's a link to a website specified by me - the user), I entered the address http://www.meshulav.co.il, but the address that I'm linked to is http://xn--5dbhvg9c/ - this is weird. I can see the address when I'm hovering the text (by the "alt" entity), but this is the link I'm getting on the address bar, and when I click on it, this is where I'm being redirected.

2. On the date and time feature, I've set the next option:
%A, %e.%m.%Y, %H:%M
Everything is ok, except that the %A thingy (that supposed to tell the full name of the day) is giving me weird signs - like this: ���. I'm using a Hebrew version of SMF 2 RC4 (fully translated by me), and I double-checked the encoding of the language files (UTF-8). I even tried re-uploading index.hebrew.php, just to be sure.

I'll be more than glad if someone will be able to solve these two.

Other than that, SMF is a great piece of software, keep up the good job guys! :)
Regards,
Dan_y2k.

Dan_y2k

Woopsie! Ignore the first one, I mixed up the input of Site title and Site url... Sorry. :-[

2nd one is still bugging me. ;)
Regards,
Dan_y2k.

Norv

Can you please tell, where exactly do you see this incorrect day name? (on what exact pages of the forum)

If you wish, a screenshot of the area may help as well. Thank you!
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Dan_y2k

On every page of the system. Notably @ my profile and the header (and I guess probably on every place that my custom date is being used).

If you still don't understand, let me know, and I'll be happy to provide you with a screenshot.

Thanks. :)
Regards,
Dan_y2k.

live627

Sounds like an encoding problem.


  • Is your language hebrew-utf8 or non-utf8?
  • Is the database set to utf8?
  • Did you select utf8 when you installed SMF?
  • Does the issue persist when you do not use your custom translations?

Dan_y2k

Quote from: live627 on November 13, 2010, 03:28:03 PM
Sounds like an encoding problem.


  • Is your language hebrew-utf8 or non-utf8?
  • Is the database set to utf8?
  • Did you select utf8 when you installed SMF?
  • Does the issue persist when you do not use your custom translations?


  • Hebrew-utf8 or non-utf8.
  • I'm not sure, how can I check? Also, the strings of the day names are in the language files, no?
  • Yes.
  • The problem can't persist, because I'm using only Hebrew. But I'm 100% sure that if I'll switch to English, the problem won't be there.
Thanks for your response!
Regards,
Dan_y2k.

Norv

The strings of the day names are in the language files, yes.
I don't seem to replicate the problem on this forum, the line displayed in the header when I try Hebrew:
Quote
ראשון, 14.11.2010, 01:48

That said, you note that you might have chosen "Hebrew-utf8 or non-utf8" in your profile, or am I misunderstanding? I ask because in 2.0 RC4, UTF8 forums should only show the option "Hebrew", the language file chosen being UTF8. I mean, you shouldn't have two options, both UTF8 and non-UTF8 anymore (as it was in previous SMF versions), instead you should only be able to choose the language (files) with the right charset for the forum.

If you are, however, using 2.0 RC4, then can you please consider to try the current language pack available for download - just to see if it works?
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Dan_y2k

Oh, I'm very very sorry about that (should've double-check my post). I have my hebrew language files UTF-8 encoded... How do you encode your language files? I use Notepad++ ("UTF-8 without BOM").

Well, let me know about that, and I will try to check the Hebrew language file provided by SM.org.

Thanks again for your replies!
Regards,
Dan_y2k.

Dan_y2k

Well, I've downloaded the Hebrew UTF-8 language files from SM.org and I checked the index.hebrew-utf8.php file on Notepad++, and it's encoded the exact same way my index.hebrew.php file is encoded.

Also, the day names are not translated, so I couldn't check if it works.

I also tried this config:

$txt['lang_locale'] = 'iw_IL';
$txt['lang_dictionary'] = 'iw_IL';
$txt['lang_spelling'] = '';


@ first it was 'he_IL', 'he' and 'jewish'.
Well, that didn't helped. I even tried playing with "$txt['lang_capitalize_dates']" - but that didn't worked.
I really need to know how to fix the dates on my board... :\

Hope this help...
Regards,
Dan_y2k.

Dan_y2k

#9
It's amazing how little things can change BIG things.

$txt['lang_locale'] = 'iw';
$txt['lang_dictionary'] = 'iw_IL';
$txt['lang_spelling'] = '';


The first setting solved my problem. :)
I will have to check later about the other 2 settings.

Thanks for your help!!! I apperciate it.
Keep developing such good piece of software!!! :)
Regards,
Dan_y2k.

Norv

Thank you! Good to hear it worked fine!
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: