On 6/7/05, MHart <wiki(a)matthart.com> wrote:
I don't really understand what you are asking.
What is a PO file? What is
the "index" directory?
Yes, sorry, it was a quickly written message reacting to a sudden fact
realized...
A PO file is somtehing for application translations, but is a text
file - just consider as a .txt
The "index" directory, I was referring to the main directory of the
wiki where you have index.php, locslsettings.php..and also the PO file
(/opt/lampp/htdocs/wiki/, for instance)
The problem basically is that until recently I could consider the PO
was there, in the main directory of the wiki, and now I must consider
it is readed/written in the hard disk's user.
If I had a file that users needed to upload, and that
file had to exist in a
specific directory, then I would modify the specialupload form to watch for
that specific file and copy it to the needed location. Set permissions on
the file so that process is allowed.
Or maybe a cron job to copy it. Or implement a derived specialupload page
for that one file.
I thought specialupload can be an option - and the watch the specific
file would be a very good option, but I probably should say in the
main page a thing like "put your PO files in /root" or something
else. As the apllication is designed to people almost
no-touching-computers (translators not-computer-related), I'll let
this as last option to avoid problems to users.
And then there's the problem of the reverse-upload, but as you say I
could copy to the location I have copied it.
All depends of the user capacity - I'll talk to my project bosses
tomorrow and hope a "put files here" doesn't seem too difficult to
users. If it's that, the specialupload modified would be more than
enough
Lot of thanks!
Jordi
- MHart
-
http://taxalmanac.org
----- Original Message -----
From: "Jordi Domingo" <jordidr(a)gmail.com>
To: "MediaWiki announcements and site admin list"
<mediawiki-l(a)wikimedia.org>
Sent: Tuesday, June 07, 2005 5:14 AM
Subject: [Mediawiki-l] Upload/unupload or something better?
Hello, I realized that my apllication based on Mediawiki was based in
the concept that I had a PO file provided by other apllication.
The problem is that a few time ago said me that the other application
is not developed already - maybe eight months later (would be a
new/redone/finished project made by other person).
So, I just realize that I must change things: the PO file was in the
index directory and loaded normally (in the same directory as
index.php), but now I see it has to work with a PO file provided by
the user! (although not in the future, but yes now to work).
I think I can do this by upload the file (there's a textinput already
done to "examine" the hard disk of the user, I believe), but it should
be done automatically. And later it should be unloaded automatically -
another possiblity would be provide a link to download the modified
file, but I would like to minify options (potential users are not
computer experts).
The best would be that more than upload/unupload - the wiki goes to
the path indicated and modifies the file just here. I suppose it's
possible, but the fact is that I need to show it tomorrow - if any of
you can give me a solution or only an indication on how to do this
(accessing the file in hard disk), or even how upload/unupload
user-transparent (without user having to press buttons, only select
the file in the examine dialog), it would be great.
The application is almost finished and it's only this
last-minute-thing that I've realized and is kicking me...
Thanks in advance and sorry if the question is moron: as I said, I
just realized it and the one-day limit avoids me time. I beleive I'll
can this noon (now I'm in work, no access to my code) do an "upload
plus download it", but I see it as a solution of emergency - probably
not liked by project bosses.
Jordi
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l