Index: branches/rewrite/pywikibot/page.py |
— | — | @@ -2262,7 +2262,6 @@ |
2263 | 2263 | del self._link._title |
2264 | 2264 | return Page(self).title(**kwargs) |
2265 | 2265 | |
2266 | | - |
2267 | 2266 | def __defined_by(self, singular=False): |
2268 | 2267 | """ |
2269 | 2268 | returns the parameters needed by the API to identify an item. |
— | — | @@ -2436,6 +2435,8 @@ |
2437 | 2436 | value should be a list of strings. |
2438 | 2437 | """ |
2439 | 2438 | aliases = self.__normalizeLanguages(aliases) |
| 2439 | + for (key, strings) in aliases.items(): |
| 2440 | + aliases[key] = [{'language': key, 'value': i} for i in strings] |
2440 | 2441 | data = {'aliases': aliases} |
2441 | 2442 | self.editEntity(data, **kwargs) |
2442 | 2443 | |