Description of problem: Version-Release number of selected component (if applicable): libtranslate-0.99-9.fc6 Steps to Reproduce: edit services.xml and add something like this: <text-translation url="http://www2.systranbox.com/sai?gui=sbox/normal/systran/sboxEN&lp=${from}_${to}&service=translate" post="${text}"> <pre-marker text="body=" /> </text-translation> #as you see whe have pre-marker node, and doesn't have post-marker node then try to translate using systran Actual results: body= translation text Expected results: translation text Additional info: from man libtranslate: If no pre-marker element is specified, the translated text starts at the first character of the server response. If no post-marker element is specified, the translated text ends at the last character of the server response. but this is not working :( i need simply skip first "body=" from server response i think this is a bug in file modules/translate-generic-service.c in functinon translate_generic_service_translate_text near construction if (work) { if (group->text_post_marker) { char *s; s = strstr(work, group->text_post_marker); maybe i'll write patch later :)
Created attachment 278261 [details] solve this bug
Thanks
libtranslate-0.99-11.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update libtranslate'
libtranslate-0.99-11.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update libtranslate'