Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » russian locale

#1 2004-03-28 12:53:20

fathersGrave
Archived Plugin Author
Registered: 2004-02-24
Posts: 9

russian locale

I’ve translated Txp(1.17b) in russian and currently have 2 files:
ru-gb.txt
ru_dates.txt

  • when I switch to “Russian” in preferences, everything remains english
  • if I rename ru-gb.txt to en-gb.txt, russian characters won’t display(tryied different encoding)

Last edited by fathersGrave (2004-03-28 12:59:56)

Offline

#2 2004-03-28 13:29:27

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: russian locale

Paging mamash, paging mamash. :-)

In /lib/txplib_misc.php, try changing line 52 from:

$out[trim($name)] = trim(utf8_encode($val));

to

$out[trim($name)] = trim($val);


text*

Offline

#3 2004-03-28 14:09:26

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 127
Website

Re: russian locale

Sorry, started my reply two hours ago, but had to cater for something urgent (this has just arrived).
Some more steps to switch on language choice:

  1. textpattern/index.php: uncomment line 34, comment line 35
  2. textpattern/index.php: put the line 39 before line 34
  3. textpattern/publish.php (52): change $textarray = load_lang('en-gb'); into $textarray = load_lang(LANG);
  4. rename en-gb.txt to english.txt and name your file russian.txt

TXP should then reflect language choice for both admin and visitor areas.

Last edited by mamash (2004-03-28 14:11:29)


Who’s gonna textdrive you home tonight?

Offline

#4 2004-03-28 15:04:24

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: russian locale

> (this has just arrived).

Congratulations!


text*

Offline

#5 2004-03-28 15:15:16

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 127
Website

Re: russian locale

Thanks. The coincidence with ‘Daily Oliver’ simply didn’t strike me when choosing a name. Hm, do you possibly serve some subliminal code in Oliver’s pictures?


Who’s gonna textdrive you home tonight?

Offline

#6 2004-03-28 19:42:59

fathersGrave
Archived Plugin Author
Registered: 2004-02-24
Posts: 9

Re: russian locale

Thank u!
after casting some voodoo I got it work.. 8)

Offline

#7 2004-04-06 12:12:22

Matt
Member
Registered: 2004-02-28
Posts: 92
Website

Re: russian locale

Congratulations on a great looking little boy, mamash!

I suppose now we’ll have to find another Czech php expert to provide all our free tech support while you’re trying to get some sleep.

Offline

#8 2004-04-06 19:22:02

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 127
Website

Re: russian locale

Matt wrote:

I suppose now we’ll have to find another Czech php expert to provide all our free tech support while you’re trying to get some sleep.

Not really. He behaves. (So far.)


Who’s gonna textdrive you home tonight?

Offline

#9 2004-09-02 15:23:18

pl2
New Member
Registered: 2004-09-01
Posts: 2

Re: russian locale

after saving new article (russian lang charset=windows-1251)
several letters are replaced (i can see it in database and on output page)

in table “textpattern” (database)
field Body is ok (not yet replaced)
field Body_html is not ok (already replaced)

for example

field Body –

Last edited by pl2 (2004-09-03 09:14:32)

Offline

#10 2004-09-02 19:42:23

fathersGrave
Archived Plugin Author
Registered: 2004-02-24
Posts: 9

Re: russian locale

pl2
> Dean wrote:

> In /lib/txplib_misc.php, try changing line 52 from:

$out[trim($name)] = trim(utf8_encode($val));

to

$out[trim($name)] = trim($val);

Offline

#11 2004-09-03 22:52:49

pl2
New Member
Registered: 2004-09-01
Posts: 2

Re: russian locale

it was problem with my free hosting
now i’m going to change it
thank you

Offline

  1. Index
  2. » Archives
  3. » russian locale

Board footer

Powered by FluxBB