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

Home » FUDforum Development » Translations » Russian language - Abracadabra
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Russian language - Abracadabra [message #160712] Fri, 16 October 2009 10:40 Go to next message
sergey_se is currently offline  sergey_se
Messages: 8
Registered: October 2009
Location: Russia
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user

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 12:15 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 13: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
add to buddy list
ignore all messages by this user

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 13: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
add to buddy list
ignore all messages by this user

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 15:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 04: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
add to buddy list
ignore all messages by this user

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 04:53]

Report message to a moderator

Re: Russian language - Abracadabra [message #160726 is a reply to message #160723] Sat, 17 October 2009 04: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
add to buddy list
ignore all messages by this user

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 559 times)
Re: Russian language - Abracadabra [message #160727 is a reply to message #160726] Sat, 17 October 2009 05:29 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 05: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
add to buddy list
ignore all messages by this user

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 05:48]

Report message to a moderator

Re: Russian language - Abracadabra [message #160729 is a reply to message #160728] Sat, 17 October 2009 06:51 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 09: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
add to buddy list
ignore all messages by this user

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 14:09 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
I'm glad the problem is finally solved.
Thank you for sharing the solution!
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Special singular/plural rule
Next Topic: FUD in French
Goto Forum:
  

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

Current Time: Sun Oct 22 16:48:29 EDT 2017

Total time taken to generate the page: 0.00738 seconds