Hello, I am developing (as a Project Final Career) a collaborative editor for translation of .po files based on Mediawiki. The idea is to have the interface with a part non-editable (original, in English) and one editable (for translation).
I have looked the documentation (design.doc, schema.doc...), but I don't know if I should to modify the database to accept two sections of text (editable and non-editable). I suppose it should be better editing to .php level, as a BD modify of tables would be a bit non-coherent with Mediawiki.
Also, I don't know exactly how to have a part of a page-non editable.
Some advices?
Thanks in advance
Jordi
On Apr 6, 2005 2:44 PM, Jordi Domingo jordidr@gmail.com wrote:
Hello, I am developing (as a Project Final Career) a collaborative editor for translation of .po files based on Mediawiki. The idea is to have the interface with a part non-editable (original, in English) and one editable (for translation).
I have looked the documentation (design.doc, schema.doc...), but I don't know if I should to modify the database to accept two sections of text (editable and non-editable). I suppose it should be better editing to .php level, as a BD modify of tables would be a bit non-coherent with Mediawiki.
Also, I don't know exactly how to have a part of a page-non editable.
Some advices?
Thanks in advance
Jordi
The current implementation of category pages includes an editable upper part with a non-editable lower part (the category lists). You could use that as your starting point (see categoryPage.php).
Essentially, you would just need to replace the part of the code that generates the category listings with code to fetch and display your static text.
-- Rich Holton
en.wikipedia:User:Rholton
Ok, lot of thanks Richard!
However, I see the editable stuff is a link to an editable page... now I see that maybe what I'm searching is precisely the edit page! (that is, any page with &action=edit). That's it, when action is edit you can modify the upper part, but not the lower (the copyright advices).
As my objective is to have the text of a .po file in a page, but a part editable and other not, I suppose the next step is pass to the page the part I want as editable and the part I don't want editable (both marked, one as msgid, the original in english and non-editable, and other as msgstr, the translation in catalan, maybe initially empty, editable). And that is, studying as the action=edit works, and attempting to make it as initial page, redirectioning the .po input as mentioned.
I'll work forward in this direction...if somebody thinks I'm horribly wrong, or has some advice, please tell me! ;)
Jordi
On Apr 6, 2005 9:57 PM, Richard Holton richholton@gmail.com wrote:
On Apr 6, 2005 2:44 PM, Jordi Domingo jordidr@gmail.com wrote:
Hello, I am developing (as a Project Final Career) a collaborative editor for translation of .po files based on Mediawiki. The idea is to have the interface with a part non-editable (original, in English) and one editable (for translation).
I have looked the documentation (design.doc, schema.doc...), but I don't know if I should to modify the database to accept two sections of text (editable and non-editable). I suppose it should be better editing to .php level, as a BD modify of tables would be a bit non-coherent with Mediawiki.
Also, I don't know exactly how to have a part of a page-non editable.
Some advices?
Thanks in advance
Jordi
The current implementation of category pages includes an editable upper part with a non-editable lower part (the category lists). You could use that as your starting point (see categoryPage.php).
Essentially, you would just need to replace the part of the code that generates the category listings with code to fetch and display your static text.
-- Rich Holton
en.wikipedia:User:Rholton
(I didn't answered to mediawiki-I directly and with the gmail gestor I don't know if it was received by all the list...)
Well, I reply my answer directly to mediawiki-I, but even if you have received, there's something new, I changed the index.php only the line action="view" for action="edit" and now the Main Page opens as editing as I want! :)
Now, I'm going to attempt the cur_text not only goes in the editable part of the page, but also in the non-editable, the relative the copyrights and other stuff. Then I have to make that cur_text reads from a .po file and there will be a prototype! (very alpha andthere will be other work, as cathalog gestion, but will be a great step forward).
As I say in my previous message, I only hope to not be horribly wrong ;)
Thanks
Jordi
Ok, lot of thanks Richard!
However, I see the editable stuff is a link to an editable page... now I see that maybe what I'm searching is precisely the edit page! (that is, any page with &action=edit). That's it, when action is edit you can modify the upper part, but not the lower (the copyright advices).
As my objective is to have the text of a .po file in a page, but a part editable and other not, I suppose the next step is pass to the page the part I want as editable and the part I don't want editable (both marked, one as msgid, the original in english and non-editable, and other as msgstr, the translation in catalan, maybe initially empty, editable). And that is, studying as the action=edit works, and attempting to make it as initial page, redirectioning the .po input as mentioned.
I'll work forward in this direction...if somebody thinks I'm horribly wrong, or has some advice, please tell me! ;)
Jordi
On Apr 6, 2005 9:44 PM, Jordi Domingo jordidr@gmail.com wrote:
Hello, I am developing (as a Project Final Career) a collaborative editor for translation of .po files based on Mediawiki. The idea is to have the interface with a part non-editable (original, in English) and one editable (for translation).
I have looked the documentation (design.doc, schema.doc...), but I don't know if I should to modify the database to accept two sections of text (editable and non-editable). I suppose it should be better editing to .php level, as a BD modify of tables would be a bit non-coherent with Mediawiki.
Also, I don't know exactly how to have a part of a page-non editable.
Some advices?
Thanks in advance
Jordi
mediawiki-l@lists.wikimedia.org