backdrop-contrib / l10n_server

Provides a generic translation database backend with a community localization user interface, which allows people to collaborate on translating projects to different languages.
0 stars 5 forks source link

Export function generates many Notices #1

Closed VasasA closed 1 year ago

VasasA commented 1 year ago

I tested the export function: http://localizetest.tenutoweb.com/translate/languages/hu/export Options: kép

I exported the file successfully. But when I refresh the page, there were many notices: "Notice: Undefined property: stdClass::$is_suggestion in l10n_community_export() (line 467 of /home/tenutowe/localize_test/modules/l10n_server/l10n_community/export.inc)."

kép

argiepiano commented 1 year ago

Thanks for reporting @VasasA! The same bug exists in the D7 version, but it hasn't been reported there. These Notices are avoided if you click "Add Hungarian translations".

I believe the fix is pretty straightforward. However, if what you are trying to do is download the .po file, the best way to do that is to do it through translate/downloads rather than export.