1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-06-23 15:20:10 +02:00

use YAML names for referring to metadata fields in messages

This commit is contained in:
Hans-Christoph Steiner 2020-10-01 11:52:22 +02:00
parent 5e1377c77a
commit b23cf9f8ad
31 changed files with 45 additions and 45 deletions

View File

@ -487,12 +487,12 @@ def checkupdates_app(app):
name = _getappname(app)
ver = _getcvname(app)
logging.info('...updating to version %s' % ver)
commitmsg = 'Update CV of %s to %s' % (name, ver)
commitmsg = 'Update CurrentVersion of %s to %s' % (name, ver)
if options.auto:
mode = app.AutoUpdateMode
if not app.CurrentVersionCode:
logging.warning("Can't auto-update app with no current version code: " + app.id)
logging.warning("Can't auto-update app with no CurrentVersionCode: " + app.id)
elif mode in ('None', 'Static'):
pass
elif mode.startswith('Version '):
@ -502,7 +502,7 @@ def checkupdates_app(app):
try:
suffix, pattern = pattern[1:].split(' ', 1)
except ValueError:
raise MetaDataException("Invalid AUM: " + mode)
raise MetaDataException("Invalid AutoUpdateMode: " + mode)
gotcur = False
latest = None

View File

@ -242,7 +242,7 @@ def check_ucm_tags(app):
and lastbuild.versionCode == app.CurrentVersionCode
and not lastbuild.forcevercode
and any(s in lastbuild.commit for s in '.,_-/')):
yield _("Last used commit '{commit}' looks like a tag, but Update Check Mode is '{ucm}'")\
yield _("Last used commit '{commit}' looks like a tag, but UpdateCheckMode is '{ucm}'")\
.format(commit=lastbuild.commit, ucm=app.UpdateCheckMode)
@ -287,7 +287,7 @@ filling_ucms = re.compile(r'^(Tags.*|RepoManifest.*)')
def check_checkupdates_ran(app):
if filling_ucms.match(app.UpdateCheckMode):
if not app.AutoName and not app.CurrentVersion and app.CurrentVersionCode == '0':
yield _("UCM is set but it looks like checkupdates hasn't been run yet")
yield _("UpdateCheckMode is set but it looks like checkupdates hasn't been run yet")
def check_empty_fields(app):

View File

@ -1717,7 +1717,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1736,8 +1736,8 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "awsbucket, awssecretkey དང་། awsaccesskeyid བེད་སྤྱོད་བྱེད་པའི་ཆེད་དུ་ config.py ནང་དུ་ངེས་པར་དུ་སྒྲིག་དགོས།!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgstr "UCMསྒྲིག་བཀོད་བྱས་ཟིན་ཡང་གསར་བསྒྱུར་འཚོལ་བ་དེ་འགོ་འཛུགས་མིན་འདུག"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "UpdateCheckModeསྒྲིག་བཀོད་བྱས་ཟིན་ཡང་གསར་བསྒྱུར་འཚོལ་བ་དེ་འགོ་འཛུགས་མིན་འདུག"
#: ../fdroidserver/lint.py
msgid "URL must start with https:// or http://"

View File

@ -1722,7 +1722,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1737,8 +1737,8 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "Um awsbucket zu benutzen, müssen awssecretkey und awsaccesskeyid auch in der config.py gesetzt sein!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgstr "UCM ist gesetzt, aber es sieht so aus, als ob checkupdates noch nicht ausgeführt wurde"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "UpdateCheckMode ist gesetzt, aber es sieht so aus, als ob checkupdates noch nicht ausgeführt wurde"
#: ../fdroidserver/lint.py
msgid "URL must start with https:// or http://"

View File

@ -1737,7 +1737,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1738,7 +1738,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1721,7 +1721,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1719,7 +1719,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1104,7 +1104,7 @@ msgstr ""
#: ../fdroidserver/lint.py
#, python-brace-format
msgid "Last used commit '{commit}' looks like a tag, but Update Check Mode is '{ucm}'"
msgid "Last used commit '{commit}' looks like a tag, but UpdateCheckMode is '{ucm}'"
msgstr ""
#: ../fdroidserver/lint.py
@ -1715,7 +1715,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py
@ -1863,7 +1863,7 @@ msgstr ""
#. Translators: https://developer.android.com/studio/build/application-id
#: ../fdroidserver/lint.py
msgid "Update Check Name is set to the known application ID - it can be removed"
msgid "UpdateCheckName is set to the known application ID - it can be removed"
msgstr ""
#: ../fdroid ../fdroidserver/__main__.py

View File

@ -1748,7 +1748,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1724,7 +1724,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1735,7 +1735,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1714,7 +1714,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1717,7 +1717,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1723,7 +1723,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1717,7 +1717,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1787,8 +1787,8 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "For å bruke AWS-spann, må \"awssecretkey\" og \"awsaccesskeyid\" også være satt i config.py."
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgstr "UCM er satt, men det ser ut til at checkupdates ikke har blitt kjørt enda."
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "UpdateCheckMode er satt, men det ser ut til at checkupdates ikke har blitt kjørt enda."
#: ../fdroidserver/lint.py
msgid "URL must start with https:// or http://"

View File

@ -1739,8 +1739,8 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "Aby użyć awsbucket, awssecretkey i awsaccesskeyid muszą być również ustawione w config.py!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgstr "UCM jest ustawione, ale wygląda na to, że checkupdates nie zostało jeszcze uruchomione"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "UpdateCheckMode jest ustawione, ale wygląda na to, że checkupdates nie zostało jeszcze uruchomione"
#: ../fdroidserver/lint.py
msgid "URL must start with https:// or http://"

View File

@ -1738,8 +1738,8 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "Para usar awsbucket, os awssecretkey e awsaccesskeyid também devem ser definidos no config.py!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgstr "UCM é definido, mas parece que checkupdates ainda não foi executado"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "UpdateCheckMode é definido, mas parece que checkupdates ainda não foi executado"
#: ../fdroidserver/lint.py
msgid "URL must start with https:// or http://"

View File

@ -1739,8 +1739,8 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "Para usar awsbucket, os awssecretkey e awsaccesskeyid também devem ser definidos no config.py!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgstr "UCM é definido, mas parece que checkupdates ainda não foi executado"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "UpdateCheckMode é definido, mas parece que checkupdates ainda não foi executado"
#: ../fdroidserver/lint.py
msgid "URL must start with https:// or http://"

View File

@ -1743,7 +1743,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "Необходимо определить переменные awsbucket, awssecretkey и awsaccesskeyid в config.py!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "Режим проверки обновлений (Update Check Mode) выбран, но проверка еще ни разу не выполнялась"
#: ../fdroidserver/lint.py

View File

@ -1719,7 +1719,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1736,8 +1736,8 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "Për të përdorur awsbucket, te config.py duhen ujdisur edhe awssecretkey dhe awsaccesskey!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgstr "UCM është ujdisur, por duket sikur checkupdates sështë xhiruar ende"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "UpdateCheckMode është ujdisur, por duket sikur checkupdates sështë xhiruar ende"
#: ../fdroidserver/lint.py
msgid "URL must start with https:// or http://"

View File

@ -1718,7 +1718,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1736,8 +1736,8 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "Awsbucket kullanmak için, awssecretkey ve awsaccesskeyid de config.py içinde ayarlanmalı!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgstr "UCM ayarlı ancak checkupdates henüz çalıştırılmamış gibi görünüyor"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "UpdateCheckMode ayarlı ancak checkupdates henüz çalıştırılmamış gibi görünüyor"
#: ../fdroidserver/lint.py
msgid "URL must start with https:// or http://"

View File

@ -1718,7 +1718,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1740,7 +1740,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "Для використання awsbucket, awssecretkey та awsaccesskeyid також слід налаштувати config.py!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "Режим перевірки оновлень встановлено, але схоже, що ще не запущено перевірку"
#: ../fdroidserver/lint.py

View File

@ -1729,7 +1729,7 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr ""
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr ""
#: ../fdroidserver/lint.py

View File

@ -1734,8 +1734,8 @@ msgid "To use awsbucket, awssecretkey and awsaccesskeyid must also be set in con
msgstr "要使用 awsbucket, awssecretkey 與 awsaccesskeyid 必須在 config.py 進行設定!"
#: ../fdroidserver/lint.py
msgid "UCM is set but it looks like checkupdates hasn't been run yet"
msgstr "UCM 已被設定但它似乎尚未曾執行更新檢查"
msgid "UpdateCheckMode is set but it looks like checkupdates hasn't been run yet"
msgstr "UpdateCheckMode 已被設定但它似乎尚未曾執行更新檢查"
#: ../fdroidserver/lint.py
msgid "URL must start with https:// or http://"