Skip to content

Don't mark formated strings as c-format #57

@tsdgeos

Description

@tsdgeos

If we have a string like

<plurals name="received_files_title">
    <item quantity="one">Received file from %2$s</item>
    <item quantity="other">Received %1$d files from %2$s</item>
</plurals>

a2po will create

#, c-format
msgctxt "received_files_title"
msgid "Received file from %2$s"
msgid_plural "Received %1$d files from %2$s"
msgstr[0] ""
msgstr[1] ""

But the problem is that adding c-format enforces that the translation strings contain both %1 and %2 since printf c-format can't skip strings while android can.

So I think it's better not to include c-format, does that make sense to you?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions