[Chandler-dev] Re: AW: Re: AW: Re: AW: Chandler Localization
Project
Philippe Bossut
pbossut at osafoundation.org
Mon Dec 10 22:22:55 PST 2007
Jared Rhine wrote:
>>> 2.) This for example: "Version %(versionNumber)s for %(platform)s"
>>> meens plural?
>>
>> I am not sure I understand how this string would be plural in German.
>> Can you explain further.
>
> Maybe the confusion is the Python string formatting "%s". That is,
> "is that 'versionNumber' or 'versionNumber*s*'; why's that "s" in there?"
I think you're right Jared. So, Andreas, the formatted (and unmutable!)
part of the message is "%(versionNumber)s":
- "%" : introduces the format
- "(versionNumber)": is the name of the variable
- "s" : is the type of the format, here, a string. In Chandler, we
mostly use "s" here and have a few "d" (decimal number) here and there
Cheers,
- Philippe
More information about the chandler-dev
mailing list