Community
Participate
Working Groups
HEAD When using the Externalize Strings wizard, the insertion point for new messages is almost always unpredictable (or the pattern is so complex that I don't understand it), see e.g. attachment 74708 [details] from bug 168515. New entries should be added either at the end (bug 107308), or around an existing item that shares the longest common prefix with the item to insert (sort the items lexicographically to determine before/after). This strategy also behaves well when properties files are only partially sorted.
Bug 107308 exacty describes your problem. No need for another one. *** This bug has been marked as a duplicate of bug 107308 ***
(In reply to comment #1) > Bug 107308 exacty describes your problem. No need for another one. > > *** This bug has been marked as a duplicate of bug 107308 *** Not really. Bug 107308 is an enhancement request for an append (don't sort) mode. This bug shows that the current insertion logic is broken. If this stays a dup, I'll have to raise the severity of bug 107308, since the current behavior is not acceptable.
You're right. Looks like the fix for bug 89503 didn't fully make it.
Benno, can you have a look? Markus wants this fixed ;-)
Created attachment 76060 [details] fix
fixed > I20070809-1105 I hope this will do it but keep raising bugs if you see unexpected insertions positions please.
Grrrrrrr!
Created attachment 77252 [details] fix More bugs, more fixes...
fixed > I20070828-0800
This still doesn't work - at least not for the properties file. When I tried the scenario from comment 0 I got the following insertion (of FileSearchPage_0 and FileSearchPage_1) into the properties file: ... TextSearchEngineRegistry_defaulttextsearch_label=Default Text Search FileSearchPage_1=message FileSearchPage_0=title FileSearchQuery_label=File Search ... Observe: 1. the space between the two new entries 2. the wrong order
Created attachment 78732 [details] fix Trivial fix, reason is that leading new lines are not moved to the inserted keys if they are inserted after leading new lines.
assume fixed > I20070918-0010
verified in I20070920-0936