Review Request: Fix for naming inconsistency with name suggestion in dolphin
Mark
markg85 at gmail.com
Mon Aug 30 12:56:27 BST 2010
> On 2010-08-30 10:11:18, David Faure wrote:
> > The patch is OK. I see no reason in making this translatable, this is not related to language, but to the current filename, in a way.
> > If you're renaming "New Folder" (in any western language, at least) you expect "New Folder 1", while if you're renaming "My_Cat_Photo.jpg" you could expect "My_Cat_Photo_1.jpg". This is more about which separator is currently used in the filename, than about languages.
> >
> > I guess this points to a possible black-magic solution which looks at the current filename, not sure if we want that though.
>
> Peter Penz wrote:
> Mark has no SVN account yet, I'll take care to commit the patch this week.
Thank you both ^_^
- Mark
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/5160/#review7285
-----------------------------------------------------------
On 2010-08-26 16:24:37, Mark wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/5160/
> -----------------------------------------------------------
>
> (Updated 2010-08-26 16:24:37)
>
>
> Review request for Dolphin, kdelibs and David Faure.
>
>
> Summary
> -------
>
> I started with this fix because of bug 237022 but it's not fixing that bug. That bug reporter wants a new naming suggestion to look like:
> "New_Folder_1"
>
> The current behavior is:
> "New Folder_1" (a mixture between spaces and underscore)
>
> And this patch makes it look like:
> "New Folder 1" (only spaces)
>
> I however am in favor of using a translatable string so the spacer can be changed by those that translate.. That fix would only mean changing:
> const QChar spacer(' ');
>
> to
> QString spacer = i18nc("New name suggestion spacer", " ");
>
> The in becomes possible to get suggestions like:
> "New_Folder_1" (assuming the "New Folder" name is also changed in the translation files)
> It kinda depends on Peter and dfaure which option (translatable or not) is picked.
>
> So, to clarify it. This fix it _not_ fixing bug 237022 but is making it consistent. That bug report (when this patch without translatable line gets accepted) should be closed as "WONTFIX" since it's a special user preference...
>
>
> This addresses bug 237022.
> https://bugs.kde.org/show_bug.cgi?id=237022
>
>
> Diffs
> -----
>
> /tags/KDE/4.5.0/kdelibs/kio/kio/renamedialog.cpp 1168303
>
> Diff: http://reviewboard.kde.org/r/5160/diff
>
>
> Testing
> -------
>
> Made the patch, compiled it and tested it by making new files/folders. It seems to work just fine.
>
>
> Thanks,
>
> Mark
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100830/32e00785/attachment.htm>
More information about the kde-core-devel
mailing list