Bugs item #3598083, was opened at 2012-12-21 11:16 Message generated for change (Settings changed) made by huji You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3598083...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: i18n Group: confirmed
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Huji Lee (huji) Assigned to: Huji Lee (huji) Summary: Internationalizing the comma in lists
Initial Comment: In different locations, hardcoded comma character is used to separate items in a list that is used in edit summary. One example is template.py line 218 which reads:
Param = {'list': (', ').join(self.templates.keys()),
This should be replaced with an internationalized comma character; some non-Latin langauges do not use "," for comma (Persian is an example).
Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
Comment By: Huji Lee (huji) Date: 2012-12-23 12:22
Message: In revisions 10822 to 10825, I added an internationalized comma for template.py and interwiki.py and updated their codes accordingly.
This internationalized comma can be shared between all scripts. Is there a way to define a "general" message not specific to a script? If not, we need to define one such message per script for all scripts that use ', '
----------------------------------------------------------------------
Comment By: Amir (amird) Date: 2012-12-23 02:30
Message: Dear huji I made this change: https://www.mediawiki.org/wiki/Special:Code/pywikipedia/10813 but i didn't check it. please run a test and inform me
Thanks
----------------------------------------------------------------------
Comment By: Huji Lee (huji) Date: 2012-12-21 11:56
Message: For future reference: MediaWiki does that by defining a message called "comma-separatore", and WordPress takes a similar approach too.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3598083...