For example if my .po file contains ü then the import fails at that point.

Not sure quite what the answer is, apart from removing all these characters and replacing them later :P

Comments

gpk’s picture

>the import fails at that point
Actually the import continues to run but it all goes completely haywire (I think) when it tries to variable_set('locale_custom_strings_en', $overrides) at the bottom of stringoverrides_admin_import_submit().

If I dpm($overrides) I can see all the strings, including the ones with ü or ö etc, except that the individual strings are truncated at that point. However it looks as though the serialize() in variable_set() bombs out when it hits one of these incomplete strings.

BTW I'm using Chrome browser on Windows XP, I copied and pasted the content of the Export pane into a text file using PSPad editor. Server is on PHP 5.2.17.

robloach’s picture

Yeah, the import code is pretty gross in Drupal 5, a bit gross in Drupal 6, and non-existent in Drupal 7. If someone helps out with import code, that would be much appreciated. Maybe switching over to Ctools exportable is a good idea?