https://bugzilla.wikimedia.org/show_bug.cgi?id=24064

           Summary: Translate extension should warn translators about
                    common printf formatting errors
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Translate
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


It's not uncommon for translators to accidentally drop some printf-style
formatting characters from strings, particularly things like ordered
parameters:

en "1$s's status on 2$s"

ja "%2$s における %1$ のステータス"

Here, the 's' string specifier got dropped by mistake. This should be fairly
easy to detect: make sure we have the same number of params and that we're not
missing any explicitly-numbered ones. We could highlight the suspicious parts
and prompt the translator to correct it or accept anyway.

Since this particular check is applicable only to programs using printf-style
formatting from their strings, it could perhaps be applied only when using
gettext (which usually is paired with lots of sprintf fun)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to