Xqt added a comment.
The localized values were introduced for T71551 <https://phabricator.wikimedia.org/T71551> in rPWBC0421498 <https://phabricator.wikimedia.org/rPWBC042149859f338639f0cf8ace08ff1ef3b6e77a56> in release 3.0.20180108. With rPWBC4a6c2e0a <https://phabricator.wikimedia.org/rPWBC4a6c2e0a38d732acf4fc963e71209304ab7ec903> (release 7.5.0) the `to_local_digits` function was fixed to always return a string as already described in the documentation. In result problems T313682 <https://phabricator.wikimedia.org/T313682>, T313692 <https://phabricator.wikimedia.org/T313692> and T313785 <https://phabricator.wikimedia.org/T313785> occurred. The later was fixed in rPWBC31a31f7 <https://phabricator.wikimedia.org/rPWBC31a31f777ae1726d14038135c95b954490da4c69> (7.5.1) where the printf signed integer fields where replaced by string conversion type. Due to T313785 <https://phabricator.wikimedia.org/T313785> localized parameters where introduced in rPWBC5178710 <https://phabricator.wikimedia.org/rPWBC51787100619d32eaa9ce025720d0d93f3e5cc2e1>(7.5.2) to solve these issues; see the commit message for it. NOTE: See also the compatibility matrix at T313785#8105043 <https://phabricator.wikimedia.org/T313785#8105043> and the documentation <https://doc.wikimedia.org/pywikibot/master/scripts_ref/scripts.html#module-scripts.archivebot> IMPORTANT: Release 7.5.1 and 7.5.2 are only available via the repository. They are published at pypi with 7.6.0. Conclusion ---------- - Using `%(counter)d` on fa-wiki always failed before 7.5.1 - Using `%(counter)s` on fa-wiki works for fa-wiki but this conversion type was never inteded or documented. The latin numbers were used starting with 7.5.2 - `%(localcounter)s` should be used to get localized numbers - The `%(local... )s` can be used for each field and it is up to the user to specify which field should be localized - I think it's up to the user who adds the template to decide to use latin or localized digits - reverting the "Force of latin digits" will break the current behaviour (also outside fa-wiki) - we could add a `-localdigits` option for bot owners to always determine localized digits (and to change the field then) - we could implement a `fixes.py` entry to change the fields - or use replace.py manually for it - ... (other ideas) IMPORTANT: It is not recommended to use localized digits for any template variable. Default values will be used instead. TASK DETAIL https://phabricator.wikimedia.org/T398146 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org