[kupu-dev] Kupu 1.4 beta 3, i18n image uploads fail!
Duncan Booth
duncan.booth at suttoncourtenay.org.uk
Fri Jan 5 09:48:36 CET 2007
bernhard <g.bernhard at akbild.ac.at> wrote:
> I still have problems with image uploads as soon as i switch the
> language of a plone site; Image uploads just _fail_ then.
Yes, I'm afraid I still need to go through all the i18n attributes and
make sure everything which should be translatable is translatable.
However, this problem appears to be some i18n attributes from the older version
still lurking on some tags when I'd made some other edits.
Here's a patch which should cure it:
Index: common/kupudrawers/drawer.xsl
===================================================================
--- common/kupudrawers/drawer.xsl (revision 36104)
+++ common/kupudrawers/drawer.xsl (working copy)
@@ -432,15 +432,14 @@
</span></label>
<input id="kupu-upload-file" type="file" name="node_prop_image" size="20"/>
<br/>
- <label i18n:translate="imagedrawer_upload_title_label"
- >Title
- <input id="kupu-upload-title" type="text" name="node_prop_title" size="23"
- value=""/>
- </label>
- <label i18n:translate="imagedrawer_upload_desc_label"
- >Description<br />
- <textarea rows="5" cols="40" name="node_prop_desc"> </textarea>
+ <label>
+ <span i18n:translate="imagedrawer_upload_title_label">Title</span>
+ <input id="kupu-upload-title" type="text" name="node_prop_title" size="23" value=""/>
</label>
+ <label>
+ <span i18n:translate="imagedrawer_upload_desc_label">Description</span><br />
+ <textarea rows="5" cols="40" name="node_prop_desc"> </textarea>
+ </label>
</form>
<iframe id="kupu_upload_form_target" name="kupu_upload_form_target" src="javascript:''"
scrolling="off" frameborder="0" width="0px" height="0px" display="None"> </iframe>
More information about the kupu-dev
mailing list