FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Translations » Russian language - Abracadabra
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Russian language - Abracadabra [message #160712] Fri, 16 October 2009 14:40 Go to next message
sergey_se is currently offline  sergey_se
Messages: 8
Registered: October 2009
Location: Russia
Karma: 0
Junior Member

Good day
Excuse my bad English
I have a problem
I set Fudforum v 2.8.1 on my home computer(Windows XP sp3). Use Denwer (# Apache, SSL, SSI, mod_rewrite, mod_php. # PHP5 (GD, MySQL, sqLite), # MySQL5)

1 I set Fudforum v 2.8.1
2 Choose Russian
3 Russian letters are not displayed
why the browser chooses the encoding 1251, and not utf8? Sad
what should I do?
Thanks in advance
Re: Russian language - Abracadabra [message #160715 is a reply to message #160712] Fri, 16 October 2009 16:15 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Look at the page's HTML and let us know if you see something like this:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


The "utf-8" part is loaded from the "charset" file in the thm/default/i18n/russian directory. If it's not there, it will fall-back to the "charset" file in the English directory.
Re: Russian language - Abracadabra [message #160721 is a reply to message #160715] Fri, 16 October 2009 17:43 Go to previous messageGo to next message
sergey_se is currently offline  sergey_se
Messages: 8
Registered: October 2009
Location: Russia
Karma: 0
Junior Member

You cannot use links until you have posted more than 5 messages.
Ooh Sad
Here are the first 6 lines page's HTML
Attachement
"charset" file in the thm/default/i18n/russian directory available. but consists of 1 line:
"utf-8"
Re: Russian language - Abracadabra [message #160722 is a reply to message #160712] Fri, 16 October 2009 17:44 Go to previous messageGo to next message
sergey_se is currently offline  sergey_se
Messages: 8
Registered: October 2009
Location: Russia
Karma: 0
Junior Member

charset file

Sorry, English is not my native language
Re: Russian language - Abracadabra [message #160723 is a reply to message #160722] Fri, 16 October 2009 19:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
So, the HTML is properly defined as UTF-8. If you browser still thinks otherwise, it's not FUDforum's fault.
Re: Russian language - Abracadabra [message #160725 is a reply to message #160723] Sat, 17 October 2009 08:47 Go to previous messageGo to next message
sergey_se is currently offline  sergey_se
Messages: 8
Registered: October 2009
Location: Russia
Karma: 0
Junior Member

Pay attention 2 line page's HTML Fudforum (html_fudforum.jpg - 3 posts upwards)
lang="en" xml:lang="en">

In Drupal page's HTML
xml:lang="ru" lang="ru" dir="ltr">

In Joomla
xml:lang="ru-ru" lang="ru-ru" >

[Updated on: Sat, 17 October 2009 08:53]

Report message to a moderator

Re: Russian language - Abracadabra [message #160726 is a reply to message #160723] Sat, 17 October 2009 08:53 Go to previous messageGo to next message
sergey_se is currently offline  sergey_se
Messages: 8
Registered: October 2009
Location: Russia
Karma: 0
Junior Member

I save page's HTML Fudforum as file
I replaced
lang="en" xml:lang="en">

on
lang="ru" xml:lang="ru">

All became good
Look the file attachement
How it to achieve forum customisations?
  • Attachment: fudforum1.jpg
    (Size: 340.02KB, Downloaded 1702 times)
Re: Russian language - Abracadabra [message #160727 is a reply to message #160726] Sat, 17 October 2009 09:29 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Instead of changing the HTML, you can simply define your theme's language as "ru" and not as "en" in the Theme Manager ACP.
Re: Russian language - Abracadabra [message #160728 is a reply to message #160727] Sat, 17 October 2009 09:47 Go to previous messageGo to next message
sergey_se is currently offline  sergey_se
Messages: 8
Registered: October 2009
Location: Russia
Karma: 0
Junior Member

Problem in that all these customisations already "ru"

http://farm3.static.flickr.com/2454/4016222863_631646a225_o.jpg

http://farm3.static.flickr.com/2746/4019067432_81b82d9d06_o.jpg

And on page HTML we have "en" Shocked


Sorry, English is not my native language

[Updated on: Sat, 17 October 2009 09:48]

Report message to a moderator

Re: Russian language - Abracadabra [message #160729 is a reply to message #160728] Sat, 17 October 2009 10:51 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Have you customized the header and hard coded it as "english"? Your "header.tmpl" should have something similar to this:
<html xmlns="http://www.w3.org/1999/xhtml" lang="{LANG}" xml:lang="{LANG}">


Remember to rebuild the theme after changing the template.
Re: Russian language - Abracadabra [message #160732 is a reply to message #160712] Sat, 17 October 2009 13:04 Go to previous messageGo to next message
sergey_se is currently offline  sergey_se
Messages: 8
Registered: October 2009
Location: Russia
Karma: 0
Junior Member

Thanks for advices.
Solution of a problem for whom Denver 3.5
1 We find a file C:\WebServers\usr\local\apache\conf\httpd.conf
2 In this file we find string "AddDefaultCharset windows-1251"
3 We substitute "windows-1251" on "utf-8"
4 We restart Denver
The problem is solved! Razz
Re: Russian language - Abracadabra [message #160734 is a reply to message #160732] Sat, 17 October 2009 18:09 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
I'm glad the problem is finally solved.
Thank you for sharing the solution!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Special singular/plural rule
Next Topic: FUD in French
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 18 02:00:05 GMT 2024

Total time taken to generate the page: 0.01979 seconds