[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Multiple %s entries without numbering

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 01 Jun 2011 20:26:58 +0200

On 31.05.2011 23:09, Jean-Marc van Leerdam wrote:
> Hi,
>
> Most strings that contain more than one placeholder of a certain type
> use the %1!s! %2!s! convention. Some strings don't:
>
> Resource IDs: (7) (two entries)
> Resource IDs: (8)
>
> Resource IDs: (79)
> exported\n
> %s\n
> to\n
> %s
>
> Resource IDs: (107)
> TortoiseMerge %d.%d.%d, Build %d - %s, %s
> TortoiseSVN %d.%d.%d, Build %d - %s, %s
> (and two other multiline entries with ID 107)
>
> Resource IDs: (147)
> %s\n
> The folder %s\n
> contains unversioned and/or modified file(s). Do you want to remove it anyway?
>
> Resource IDs: (195)
> You've changed the icon set from %s to %s.\n
> That change won't take effect until you restart your computer or
> logoff and logon again!
>
> Resource IDs: (214)
> current size: %s\r\n
> old size: %s\r\n
> change: %s
>
> Resource IDs: (229)
> Checkout from %s, revision %s, %s, %s
> Copy %s to %s, Revision %s
> Import %s to %s%s
> Merging %s into %s, %s%s
> Merging from %s, revision %s to %s, revision %s into %s, %s%s%s
> Merging revisions %s of %s into %s, %s%s%s
> Switch %s to %s, Revision %s
>
> Resource IDs: (230)
> Reintegrate merge %s into %s
>
> Resource IDs: (286)
> Merged revision(s) %s from %s:\n
> Reverse merged revision(s) %s from %s:\n
> (and another multiline entry with ID 286)
>
> Resource IDs: (3850)
> %s\n
> %s
>
> Resource IDs: (3857)
> This program is linked to the missing export %s in the file %s. This
> machine may have an incompatible version of %s.
>
> (not all of these may really benefit of the numbering, but it may be
> wise for consistency to use it anyway)

I know the problem, but:
All those strings don't use numbered params for a reason:
* using the c-runtime only (e.g., TortoiseIDiff)
* numbering is not necessary, for example when the first %s is the error
message followed by a newline, then the 'real' message string follows
with only one param
* the strings are from the MFC resources, not changeable by us
* the string represent the version info: not really for translating and
the version numbering must not be changed in the translations (you don't
want to end up with 16.6.1 instead of 1.6.16)

For the others, I'll try to change them...

>
> Note: two strings have the same Resource ID, not sure what that means...
>

There are multiple tools in TSVN, all of which use separate resources
and can have identical resource ids.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2755285
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-06-01 20:27:29 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.