Review Request: KFilePlacesModel: Translate system bookmarks dynamically

Albert Astals Cid aacid at kde.org
Fri May 1 23:57:58 BST 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/650/#review1023
-----------------------------------------------------------


Tried the patch, says what it's said to do, the only problem are existing users that already have a "broken/translated" .kde/share/apps/kfileplaces/bookmarks.xml file, not sure this can be fixed though.

- Albert


On 2009-05-01 13:41:45, Peter Penz wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/650/
> -----------------------------------------------------------
> 
> (Updated 2009-05-01 13:41:45)
> 
> 
> Review request for kdelibs.
> 
> 
> Summary
> -------
> 
> The patch fixes the issue that system bookmarks like "Home", "Root", "Network" and "Trash" are not retranslated if the user changes the language.
> 
> Root cause of the issue:
> The system bookmarks are only translated once after the first access to the bookmarks. Afterwards the bookmark labels are handled as "normal" text.
> 
> Solution:
> The bookmarks are stored untranslated in the model and get translated dynamically for the user interface when the list view requests the label. For sure it is still possible that the user changes the label of a system bookmark.
> 
> If there are no objections/comments, I'll commit the patch on May the 5th.
> 
> 
> This addresses bug https://bugs.kde.org/show_bug.cgi?id=177536.
>     https://bugs.kde.org/show_bug.cgi?id=https://bugs.kde.org/show_bug.cgi?id=177536
> 
> 
> Diffs
> -----
> 
>   kdelibs/kfile/kfileplacesmodel.cpp 961249 
> 
> Diff: http://reviewboard.kde.org/r/650/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Peter
> 
>





More information about the kde-core-devel mailing list