After making sure my menus are translatable (re-saving them), exporting them from the menu text-group through the locale export, translating them, and then importing those files, I have noticed that translations are not saved if there is more than one instance of that same menu item string.
Each menu item gets an entry within the menu text group of the locale source table, referencing its menu item ID specifically, even if the string is reused in different places. These all get exported fine, but when the file is imported, only one of each duplicated strings is imported, meaning that only one of the menu items gets translated.
Is it intentional that each menu gets a unique translation so it can be translated differently in different contexts? This will also cause issues when translations are imported into a different site that isn't using the same menu item IDs, as they may not match up with those in the import file.
Comments
Comment #1
deverman commentedI have this same problem and have reported it. Posting here to follow.
Comment #2
deverman commentedStill have a similar issue and waiting for instructions on I can help in fixing this problem. Full details are here:
http://drupal.org/node/429822
Comment #3
mvcI believe this is a duplicate of #384794: Preceding white space inserted in locales_source.
For suggestions on how to clean up your database, see http://drupal.org/node/429822#comment-1619650
Comment #4
yarimbiyik commentedAny updates/fixes on this issue?
Comment #5
mvcI believe the patch I referenced in comment #3 resolves this issue. To get this patch accepted, it will have to be tested by people like you, after which its status can be changed from "needs review" to "reviewed and tested by the community". So, if you're experiencing this problem, please try this patch and leave a note here about how it worked for you.