metadata: add new Translation app field for URL for contributions

This is a field requested from a bunch of translators so they can easily
find where to translate apps:
https://forum.f-droid.org/t/translation-field-for-app-entries/1403/5
This commit is contained in:
Hans-Christoph Steiner 2018-01-30 11:14:36 +01:00
parent eac391c58f
commit 05eef5a454
11 changed files with 15 additions and 1 deletions

View File

@ -32,6 +32,7 @@ metadata_v0:
- cd fdroiddata
- ../tests/dump_internal_metadata_format.py
- sed -i
-e '/Translation:/d'
-e '/kivy:\sfalse/d'
-e '/timeout:\s/d'
metadata/dump_*/*.yaml

View File

@ -67,6 +67,7 @@ app_fields = set([
'Web Site',
'Source Code',
'Issue Tracker',
'Translation',
'Changelog',
'Donate',
'FlattrID',
@ -118,6 +119,7 @@ class App(dict):
self.WebSite = ''
self.SourceCode = ''
self.IssueTracker = ''
self.Translation = ''
self.Changelog = ''
self.Donate = None
self.FlattrID = None
@ -400,7 +402,7 @@ valuetypes = {
FieldValidator("HTTP link",
r'^http[s]?://',
["WebSite", "SourceCode", "IssueTracker", "Changelog", "Donate"]),
["WebSite", "SourceCode", "IssueTracker", "Translation", "Changelog", "Donate"]),
FieldValidator("Email",
r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$',
@ -1143,6 +1145,7 @@ def write_yaml(mf, app):
'WebSite',
'SourceCode',
'IssueTracker',
'Translation',
'Changelog',
'Donate',
'FlattrID',
@ -1437,6 +1440,7 @@ def write_plaintext_metadata(mf, app, w_comment, w_field, w_build):
w_field_always('Web Site')
w_field_always('Source Code')
w_field_always('Issue Tracker')
w_field_nonempty('Translation')
w_field_nonempty('Changelog')
w_field_nonempty('Donate')
w_field_nonempty('FlattrID')

View File

@ -4,6 +4,7 @@ License: GPL-3.0+
WebSite: https://f-droid.org
SourceCode: https://gitlab.com/fdroid/fdroidclient
IssueTracker: https://gitlab.com/fdroid/fdroidclient/issues
Translation: https://hosted.weblate.org/projects/f-droid/f-droid
Changelog: https://gitlab.com/fdroid/fdroidclient/raw/HEAD/CHANGELOG.md
Donate: https://f-droid.org/about
FlattrID: '343053'

View File

@ -29,6 +29,7 @@ RepoType: git
RequiresRoot: false
SourceCode: https://github.com/miguelvps/PoliteDroid
Summary: Calendar tool
Translation: ''
UpdateCheckData: null
UpdateCheckIgnore: null
UpdateCheckMode: Tags

View File

@ -52,6 +52,7 @@ RepoType: git
RequiresRoot: true
SourceCode: https://github.com/dschuermann/ad-away
Summary: Block advertisements
Translation: https://www.transifex.com/dominikschuermann/adaway
UpdateCheckData: null
UpdateCheckIgnore: null
UpdateCheckMode: Tags

View File

@ -49,6 +49,7 @@ RepoType: git
RequiresRoot: false
SourceCode: https://github.com/SMSSecure/SMSSecure
Summary: Send encrypted text messages (SMS)
Translation: https://www.transifex.com/silence/silence
UpdateCheckData: null
UpdateCheckIgnore: null
UpdateCheckMode: Tags

View File

@ -51,6 +51,7 @@ RepoType: git
RequiresRoot: false
SourceCode: http://git.videolan.org/?p=vlc-ports/android.git;a=summary
Summary: Media player
Translation: ''
UpdateCheckData: null
UpdateCheckIgnore: null
UpdateCheckMode: Tags

View File

@ -3,6 +3,7 @@ License:GPL-3.0
Web Site:https://dev.guardianproject.info/projects/checkey
Source Code:https://github.com/guardianproject/checkey
Issue Tracker:https://dev.guardianproject.info/projects/checkey/issues
Translation:https://www.transifex.com/otf/checkey
Bitcoin:1Fi5xUHiAPRKxHvyUGVFGt9extBe8Srdbk
Auto Name:Checkey

View File

@ -29,6 +29,7 @@
"RequiresRoot": true,
"SourceCode": "https://github.com/dschuermann/ad-away",
"Summary": "Block advertisements",
"Translation": "https://www.transifex.com/dominikschuermann/adaway",
"UpdateCheckMode": "Tags",
"WebSite": "http://sufficientlysecure.org/index.php/adaway",

View File

@ -3,6 +3,7 @@ License:GPL-3.0+
Web Site:https://f-droid.org
Source Code:https://gitlab.com/fdroid/fdroidclient
Issue Tracker:https://gitlab.com/fdroid/fdroidclient/issues
Translation:https://hosted.weblate.org/projects/f-droid/f-droid
Changelog:https://gitlab.com/fdroid/fdroidclient/raw/HEAD/CHANGELOG.md
Donate:https://f-droid.org/about
FlattrID:343053

View File

@ -3,6 +3,7 @@ License:GPL-3.0
Web Site:http://www.smssecure.org
Source Code:https://github.com/SMSSecure/SMSSecure
Issue Tracker:https://github.com/SMSSecure/SMSSecure/issues
Translation:https://www.transifex.com/silence/silence
Auto Name:SMSSecure
Summary:Send encrypted text messages (SMS)