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:
Hans-Christoph Steiner 2017-04-27 21:12:49 +02:00
parent 9f9f0d1a16
commit cdef5bcd92
4 changed files with 31 additions and 30 deletions

View file

@ -163,13 +163,13 @@ def check_ucm_tags(app):
def check_char_limits(app):
limits = config['char_limits']
if len(app.Summary) > limits['Summary']:
if len(app.Summary) > limits['summary']:
yield "Summary of length %s is over the %i char limit" % (
len(app.Summary), limits['Summary'])
len(app.Summary), limits['summary'])
if len(app.Description) > limits['Description']:
if len(app.Description) > limits['description']:
yield "Description of length %s is over the %i char limit" % (
len(app.Description), limits['Description'])
len(app.Description), limits['description'])
def check_old_links(app):