Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-08-02 13:41:10

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: How to force txp to install a local language file?

The language files are just the default english ( en-gb.txt ) and the spanish ( es-es.txt ),
both are under c:\websites\textpattern\textpattern\lang\
or the URL: http://textpattern/textpattern/lang/

Here’s my high level full diagnostics:

Versión de Textpattern: 1.0rc5 (r705)
last_update: 2005-08-02 02:12:02/2005-08-01 14:50:30
Document root: c:/websites/textpattern
$path_to_site: c:\websites\textpattern
Path a Textpattern: c:\websites\textpattern\textpattern
Modo de enlace permanente: section_id_title
upload_tmp_dir: c:/php/uploads/
Directorio temporal: c:\websites\textpattern\textpattern\tmp
Dominio web: textpattern
Versión de PHP: 4.3.8
Magic quotes: 1/0
MySQL: 4.0.21-nt
Local: Spanish_Spain.1252
Servidor: Apache/1.3.29 (Win32) PHP/4.3.8
Versión de Apache: Apache/1.3.29 (Win32) PHP/4.3.8

contenidos del archivo .htaccess: ————————————
  1. DirectoryIndex index.php index.html
  2. Options +FollowSymLinks
  3. RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule> ————————————

Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
19 Tables: OK

Extensiones de PHP: standard/4.3.8, bcmath, calendar, ctype, com, ftp, mysql, odbc, overload, pcre, session, tokenizer/0.1, xml, wddx, zlib/1.1, apache, curl, db, dba, dbase, dbx, domxml/20020815, exif/1.4 $Id: exif.c,v 1.118.2.27 2003/12/17 09:08:37 helly Exp $, gd, mssql, msql, Win32 API/0.2, xmlrpc/0.51, zip, Zend Optimizer
/include/txp_category.php: r628 (3a126e77dfc2d5d323a93b55b7db7464)
/include/txp_plugin.php: r628 (4fc611fb68c0bf6721644796e9756433)
/include/txp_auth.php: r658 (0b85720c0197b5060732005135f4d354)
/include/txp_form.php: r628 (f211ec6f61ca8eee30d5811f93a5ac50)
/include/txp_section.php: r685 (941914a689fb80422d47e8b0590ba1a7)
/include/txp_tag.php: r650 (b7cc12de73c917fb9c51ea83fb8d7eeb)
/include/txp_list.php: r663 (169af5c7780f7387e5848e76b4b3d88b)
/include/txp_page.php: r628 (868633f9b0df5fd0b0d315bbfcdfe4c5)
/include/txp_discuss.php: r628 (d0ee5e8396d42352a9762ef4fe0b1b6f)
/include/txp_prefs.php: r705 (0759aa3e435a5e6d395d7fa380655f8d)
/include/txp_log.php: r628 (6692cb0919040482cc83aa3a590288ba)
/include/txp_preview.php: r628 (59b3a3fa7e8ec9e2ecbe5729bcdaf25b)
/include/txp_image.php: r679 (a5d74180b39a6ebe4aae63aa96008033)
/include/txp_article.php: r675 (0d068e46c10f80aa7c378c38fd2f0d3f)
/include/txp_css.php: r628 (d3c1f3f27868fb1fe4800f983c0c7610)
/include/txp_admin.php: r667 (a027715372568822dda45de2d79e01b5)
/include/txp_link.php: r628 (d6d992fb482688adfa7a70c60b14c0c5)
/include/txp_diag.php: r662 (2bedf713ff6ad99fd2ba8c95f3c0aec0)
/lib/admin_config.php: r648 (95573cfa458c8694563d78baf942854a)
/lib/txplib_misc.php: r678 (c047c29e23cae4f43961effa9b04a1b7)
/lib/taglib.php: r628 (26811e99059eb4a861f6ec9abe9e0cf4)
/lib/txplib_head.php: r628 (0d7fce6afdcdf3ab6b182c74dd2a618e)
/lib/classTextile.php: r694 (ad90fa4a2ee44e135a6d43d2b72394da)
/lib/txplib_html.php: r700 (8908dfe248c35fc67963ab9dacf5d4a8)
/lib/txplib_db.php: r701 (0995a4e1d15f60b693b5eba641fcccd0)
/lib/IXRClass.php: unknown (1f02097c0cd04b42e3762fe4e631e024)
/lib/txplib_forms.php: r628 (eaaba6eace1fbe77185ad0e3ac5ba131)
/publish/taghandlers.php: r684 (686bf0955e536096cc81a56c0e7b7646)
/publish/atom.php: r661 (87aa26636f12460e2ecad2ad2c131289)
/publish/log.php: r628 (a48df44214d7514aaf3c9a7b1031c8e5)
/publish/comment.php: r653 (6d8bf6b19c4d503a7148b3681c724205)
/publish/search.php: r628 (6af3683f5a4ca1c133b3d4f308981630)
/publish/rss.php: r628 (915c479eeb540e0fd8e330db0e46c4da)
/publish.php: r670 (5120414ef78d9477cd3cbf710441a617)
/index.php: r704 (56252abadd2efa12718a0a20014ba838)
/css.php: r628 (e31b843863c1c048fbec538ac4531ca4)

As I said before, in this case I can’t make the english language work and can’t install a new language (rpc_connect_error).
Also, there’s no plugins installed.

Thx

Offline

#14 2005-08-02 14:45:12

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: How to force txp to install a local language file?

Well, it seems that this a very specific bug to your system. (It does work for me on both windows and unix.)

Can you try to replace the file: textpattern/includes/txp_prefs.php with the one available here:
http://svn.textpattern.com/current/textpattern/include/txp_prefs.php

And tell me wether you are getting any warnings, or wether it works now.

Offline

#15 2005-08-02 15:25:52

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: How to force txp to install a local language file?

OK I’ll replace it.
I’ve downloaded the last revision again, installed in a fresh database and have the same issue:
the only language that works is the one that I selected during the installation process, I mean … as I selected Spanish, after the installation the only language that I can use is spanish! (the lang folder has english and spanish files as I mentioned before).
It’s weird! I’m using TXP since a year and half or more and always was very easy to install (on the same machine, the same local server, etc.).

Write again later.

Thx again for your help.

Offline

#16 2005-08-02 17:33:08

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: How to force txp to install a local language file?

Sencer:
Done without any results!
I’ve replaced that file (txp_prefs.php) but nothing changed.

Also, I’ve changed some words into the language file in use (es-es.txt) to see if the changes are reflected into the admin panel but nothing happens!
Clear the cache and nothing … ¿?

I’ve tryied to do things as clear as possible but something doesn´t work for me.

I’m sure that if I try to install the RC5 on-line it will work, but for a while I need to do some work in a PC without internet, that’s why I will still working on this until languages work as you mentioned.

Offline

#17 2005-08-02 18:01:18

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: How to force txp to install a local language file?

It might be that only the part that is responsible for listing the files might be broken. You can see if calling your backend with this appended to your url might install a language for you:

<code>/?event=prefs&step=get_language&lang_code=en-gb&force=file</code>

where you can replace en-gb with whichever language you want.

An even easier alternative of course – since you are working on a local machine – simply turn off your firewall, or allow php/webserver outgoing connections on port 80.

I’d be interested in finding out what the problem is, if you feel comfortable editing php files, please e-mail me, so we can try to track down the problem.

Offline

Board footer

Powered by FluxBB