Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-07-10 20:15:56
- jeffkono
- New Member

- Registered: 2004-05-26
- Posts: 7
How to force txp to install a local language file?
Hi all,
According to this post , since rev. 454 TXP’s interface localisation is handled by a remote file installed through a XML-RPC server. Is there any simple way of forcing TXP to load a new language file (not listed in the “admin / install language” pane) from textpattern/lang? I’d like to just drop a, say, pt-br.txt file in there and see the interface localisation as i update the file.
Any ideas?
Offline
Re: How to force txp to install a local language file?
Update to the latest revision.
VC3 :: weblog :: my wishlist
Offline
Re: How to force txp to install a local language file?
> like to just drop a, say, pt-br.txt file in there and see the interface localisation
> as i update the file.
Language items are stored in the db. They can be imported from file though. If you are using sth. older than RC5 this will either not be possible at all, or only as a fallback when RPC is not available. With RC5 you can install from file whenever you feel like it.
Offline
Re: How to force txp to install a local language file?
Sencer, I’ve just downloaded the very last RC5 and can’t use the es-es.txt file (Spanish version downloaded from http://rpc.textpattern.com/lang/ ).
I’m using a PC without internet for a few days, just using the Localserver for tests.
I figure that the lang file must to go into the textpattern/lang folder, is that allright?
No way, under Admin > Preferences > Language … there’s only an English (GB) option!
I’ve tryied to use the ‘Install Language’ option but the only thing that appear is:
Can’t connect to remote server to check for updated language files. Please try again later.
As Jeff asked before .. How to force txp to install a local language file?
Thx
Offline
Re: How to force txp to install a local language file?
WHen you click on the help icon next to the language selection box, it leads you to this page:
http://rpc.textpattern.com/help/?item=language&lang=en
I would like to improve the wording and be more detailed, so if you have any suggestions, please post or email me.
I figure that the lang file must to go into the textpattern/lang folder, is that allright?
Yes, that is correct.
No way, under Admin > Preferences > Language … there’s only an English (GB) option!
Putting the file there, doesn’t install the language. You have to install it first, in order to be able to use it.
I’ve tryied to use the ‘Install Language’ option but the only thing that appear is: […]
Yes, and below that message, you should see a list of languages, on the right side it should read: “Install from file” (or if you upgraded and haven’t installed the last en-gb file: “from_file”). Below that there will be links that say “Install”. When you click those links the language will be installed. After installing them, you can select them from the preference menu.
This is not optimal, I understand. Due to technical issues, that’s as best as we could currently do, without further delaying the release.
Offline
Re: How to force txp to install a local language file?
Duchamp wrote:
I’ve tryied to use the ‘Install Language’ option but the only thing that appear is: […]
Sencer wrote:
Yes, and below that message, you should see a list of languages, on the right side it should read: “Install from file” (or if you upgraded and haven’t installed the last en-gb file: “from_file”). Below that there will be links that say “Install”. When you click those links the language will be installed. After installing them, you can select them from the preference menu.
This is not optimal, I understand. Due to technical issues, that’s as best as we could currently do, without further delaying the release.
Look, my situation, step by step:
1. I’ve installed a fresh RC5
2. I copied the last es-es.txt file into the lang folder
3. Goes to use ‘Install language’ (as said before) but there’s NO links below ‘Install from file’
Have someone tested this situation on a local server?
Offline
Re: How to force txp to install a local language file?
Yes, I have, multiple times. Adding and removing the files. It always works.
Are you sure they are in the already existing lang-folder in teh admin-directory? Also: do Diagnostics show anything unusual?
Offline
Re: How to force txp to install a local language file?
Diagnostics: All checks passed!
ummmh! I’m sure that language files are in the right place ( /textpattern/lang/es-es.txt ).
I don’t know why doesn’t appear below “Install from file” …
I don’t like to hack the fresh installation to make the language work, going to test everything again later, I must to go out right now.
Thx for your time Sencer (I’ll back later)
Last edited by duchamp (2005-08-01 18:31:44)
Offline
#9 2005-08-01 18:33:57
- jeffkono
- New Member

- Registered: 2004-05-26
- Posts: 7
Re: How to force txp to install a local language file?
> Sencer wrote:
>With RC5 you can install from file whenever you feel like it.
Very nice! Works like a charm!
Just a glitch:
I’ve just updated from SVN (rev. 708) and toyed around with “install from file” with a custom pt-br.txt I uploaded. But in “Site Preferences”, “Language” dropdown, I see only: an empty option, English (GB), and Portuguese (this one installed through RPC). The custom file is the empty option.
Is there any string I should add to my language file to display the correct name for the language on the dropdown (and on the install from file list)?
Jeff
Offline
Re: How to force txp to install a local language file?
ummmh! I’m sure that language files are in the right place ( /textpattern/lang/es-es.txt ).
I don’t know why doesn’t appear below “Install from file” …
Just to make sure: if you installed txp into a folder named textpattern then you have to put the lang files into ./textpattern/textpattern/lang/. The path is relative. There should already be an en-gb file and a README file in there. Also the variable in config.php $txpcfg[‘txpath’] has to be pointing to the right place – a common error, when people experiment with multiple installs and move config files around for convenience (I do it myself ;) ). Best is: Post your (low detail) diagnostics and the full path to the language filenames (including the names).
@jeffkono: Yeah, it seems that we are displaying blank instead of the locale when we don’t know the name. Will change that for the future. In the meantime, you should add an entry for ‘pt-br’ into the file.
Offline
Re: How to force txp to install a local language file?
Of course, paths are ok
Actually, the trouble seems to be solved.
I started from zero, a new database, a new installation (with the spanish es-es.txt file in place from the begining) and everything is in spanish as I wanted … but, where’s the english language?
As before, if I use “Instalar Lenguaje” (Install language) the only thing that I obtain is a rpc_connect_error
and below “Idioma” (language) there’s only one file: “Español” (but the lang folder also contains the en-gb.txt file!).
God! what a nightmare!
Offline
Re: How to force txp to install a local language file?
Can you post a high level diagnostics please, and the full path to your language files (including their names).
Offline