mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
downcase all 'localized' key names to match the rest of index-v1
This is a little omission. keys that are used in metadata/*.yml all start with an UpperCase letter, but in fdroidserver, index-v1.json, and fdroidclient, it is all camelCase with lowercase first letter. The keys from the 'localized' section are currently never in metadata/*.yml, so these keys never get downcase. This change will break fdroidclient versions that do not also have this change, but since we're in alpha, that should be fine. If support for a 'localized' section is added to metadata/*.yml, then the keys there should probably be UpperCase CamelCase to match the other keys.
This commit is contained in:
parent
9f9f0d1a16
commit
cdef5bcd92
4 changed files with 31 additions and 30 deletions
|
|
@ -52,11 +52,11 @@ class UpdateTest(unittest.TestCase):
|
|||
self.assertEqual(1, len(app['localized']))
|
||||
if packageName == 'info.guardianproject.urzip':
|
||||
self.assertEqual(5, len(app['localized']['en-US']))
|
||||
self.assertEqual('full description\n', app['localized']['en-US']['Description'])
|
||||
self.assertEqual('title\n', app['localized']['en-US']['Name'])
|
||||
self.assertEqual('short description\n', app['localized']['en-US']['Summary'])
|
||||
self.assertEqual('video\n', app['localized']['en-US']['Video'])
|
||||
self.assertEqual('100\n', app['localized']['en-US']['WhatsNew'])
|
||||
self.assertEqual('full description\n', app['localized']['en-US']['description'])
|
||||
self.assertEqual('title\n', app['localized']['en-US']['name'])
|
||||
self.assertEqual('short description\n', app['localized']['en-US']['summary'])
|
||||
self.assertEqual('video\n', app['localized']['en-US']['video'])
|
||||
self.assertEqual('100\n', app['localized']['en-US']['whatsNew'])
|
||||
elif packageName == 'org.videolan.vlc':
|
||||
self.assertEqual('icon.png', app['localized']['en-US']['icon'])
|
||||
self.assertEqual(9, len(app['localized']['en-US']['phoneScreenshots']))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue