Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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:
- textpattern/index.php: uncomment line 34, comment line 35
- textpattern/index.php: put the line 39 before line 34
- textpattern/publish.php (52): change
$textarray = load_lang('en-gb');
into$textarray = load_lang(LANG);
- rename
en-gb.txt
to english.txt and name your filerussian.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
Offline
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
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
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