mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-18 20:50:10 +01:00
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:
parent
eac391c58f
commit
05eef5a454
@ -32,6 +32,7 @@ metadata_v0:
|
|||||||
- cd fdroiddata
|
- cd fdroiddata
|
||||||
- ../tests/dump_internal_metadata_format.py
|
- ../tests/dump_internal_metadata_format.py
|
||||||
- sed -i
|
- sed -i
|
||||||
|
-e '/Translation:/d'
|
||||||
-e '/kivy:\sfalse/d'
|
-e '/kivy:\sfalse/d'
|
||||||
-e '/timeout:\s/d'
|
-e '/timeout:\s/d'
|
||||||
metadata/dump_*/*.yaml
|
metadata/dump_*/*.yaml
|
||||||
|
@ -67,6 +67,7 @@ app_fields = set([
|
|||||||
'Web Site',
|
'Web Site',
|
||||||
'Source Code',
|
'Source Code',
|
||||||
'Issue Tracker',
|
'Issue Tracker',
|
||||||
|
'Translation',
|
||||||
'Changelog',
|
'Changelog',
|
||||||
'Donate',
|
'Donate',
|
||||||
'FlattrID',
|
'FlattrID',
|
||||||
@ -118,6 +119,7 @@ class App(dict):
|
|||||||
self.WebSite = ''
|
self.WebSite = ''
|
||||||
self.SourceCode = ''
|
self.SourceCode = ''
|
||||||
self.IssueTracker = ''
|
self.IssueTracker = ''
|
||||||
|
self.Translation = ''
|
||||||
self.Changelog = ''
|
self.Changelog = ''
|
||||||
self.Donate = None
|
self.Donate = None
|
||||||
self.FlattrID = None
|
self.FlattrID = None
|
||||||
@ -400,7 +402,7 @@ valuetypes = {
|
|||||||
|
|
||||||
FieldValidator("HTTP link",
|
FieldValidator("HTTP link",
|
||||||
r'^http[s]?://',
|
r'^http[s]?://',
|
||||||
["WebSite", "SourceCode", "IssueTracker", "Changelog", "Donate"]),
|
["WebSite", "SourceCode", "IssueTracker", "Translation", "Changelog", "Donate"]),
|
||||||
|
|
||||||
FieldValidator("Email",
|
FieldValidator("Email",
|
||||||
r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$',
|
r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$',
|
||||||
@ -1143,6 +1145,7 @@ def write_yaml(mf, app):
|
|||||||
'WebSite',
|
'WebSite',
|
||||||
'SourceCode',
|
'SourceCode',
|
||||||
'IssueTracker',
|
'IssueTracker',
|
||||||
|
'Translation',
|
||||||
'Changelog',
|
'Changelog',
|
||||||
'Donate',
|
'Donate',
|
||||||
'FlattrID',
|
'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('Web Site')
|
||||||
w_field_always('Source Code')
|
w_field_always('Source Code')
|
||||||
w_field_always('Issue Tracker')
|
w_field_always('Issue Tracker')
|
||||||
|
w_field_nonempty('Translation')
|
||||||
w_field_nonempty('Changelog')
|
w_field_nonempty('Changelog')
|
||||||
w_field_nonempty('Donate')
|
w_field_nonempty('Donate')
|
||||||
w_field_nonempty('FlattrID')
|
w_field_nonempty('FlattrID')
|
||||||
|
@ -4,6 +4,7 @@ License: GPL-3.0+
|
|||||||
WebSite: https://f-droid.org
|
WebSite: https://f-droid.org
|
||||||
SourceCode: https://gitlab.com/fdroid/fdroidclient
|
SourceCode: https://gitlab.com/fdroid/fdroidclient
|
||||||
IssueTracker: https://gitlab.com/fdroid/fdroidclient/issues
|
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
|
Changelog: https://gitlab.com/fdroid/fdroidclient/raw/HEAD/CHANGELOG.md
|
||||||
Donate: https://f-droid.org/about
|
Donate: https://f-droid.org/about
|
||||||
FlattrID: '343053'
|
FlattrID: '343053'
|
||||||
|
@ -29,6 +29,7 @@ RepoType: git
|
|||||||
RequiresRoot: false
|
RequiresRoot: false
|
||||||
SourceCode: https://github.com/miguelvps/PoliteDroid
|
SourceCode: https://github.com/miguelvps/PoliteDroid
|
||||||
Summary: Calendar tool
|
Summary: Calendar tool
|
||||||
|
Translation: ''
|
||||||
UpdateCheckData: null
|
UpdateCheckData: null
|
||||||
UpdateCheckIgnore: null
|
UpdateCheckIgnore: null
|
||||||
UpdateCheckMode: Tags
|
UpdateCheckMode: Tags
|
||||||
|
@ -52,6 +52,7 @@ RepoType: git
|
|||||||
RequiresRoot: true
|
RequiresRoot: true
|
||||||
SourceCode: https://github.com/dschuermann/ad-away
|
SourceCode: https://github.com/dschuermann/ad-away
|
||||||
Summary: Block advertisements
|
Summary: Block advertisements
|
||||||
|
Translation: https://www.transifex.com/dominikschuermann/adaway
|
||||||
UpdateCheckData: null
|
UpdateCheckData: null
|
||||||
UpdateCheckIgnore: null
|
UpdateCheckIgnore: null
|
||||||
UpdateCheckMode: Tags
|
UpdateCheckMode: Tags
|
||||||
|
@ -49,6 +49,7 @@ RepoType: git
|
|||||||
RequiresRoot: false
|
RequiresRoot: false
|
||||||
SourceCode: https://github.com/SMSSecure/SMSSecure
|
SourceCode: https://github.com/SMSSecure/SMSSecure
|
||||||
Summary: Send encrypted text messages (SMS)
|
Summary: Send encrypted text messages (SMS)
|
||||||
|
Translation: https://www.transifex.com/silence/silence
|
||||||
UpdateCheckData: null
|
UpdateCheckData: null
|
||||||
UpdateCheckIgnore: null
|
UpdateCheckIgnore: null
|
||||||
UpdateCheckMode: Tags
|
UpdateCheckMode: Tags
|
||||||
|
@ -51,6 +51,7 @@ RepoType: git
|
|||||||
RequiresRoot: false
|
RequiresRoot: false
|
||||||
SourceCode: http://git.videolan.org/?p=vlc-ports/android.git;a=summary
|
SourceCode: http://git.videolan.org/?p=vlc-ports/android.git;a=summary
|
||||||
Summary: Media player
|
Summary: Media player
|
||||||
|
Translation: ''
|
||||||
UpdateCheckData: null
|
UpdateCheckData: null
|
||||||
UpdateCheckIgnore: null
|
UpdateCheckIgnore: null
|
||||||
UpdateCheckMode: Tags
|
UpdateCheckMode: Tags
|
||||||
|
@ -3,6 +3,7 @@ License:GPL-3.0
|
|||||||
Web Site:https://dev.guardianproject.info/projects/checkey
|
Web Site:https://dev.guardianproject.info/projects/checkey
|
||||||
Source Code:https://github.com/guardianproject/checkey
|
Source Code:https://github.com/guardianproject/checkey
|
||||||
Issue Tracker:https://dev.guardianproject.info/projects/checkey/issues
|
Issue Tracker:https://dev.guardianproject.info/projects/checkey/issues
|
||||||
|
Translation:https://www.transifex.com/otf/checkey
|
||||||
Bitcoin:1Fi5xUHiAPRKxHvyUGVFGt9extBe8Srdbk
|
Bitcoin:1Fi5xUHiAPRKxHvyUGVFGt9extBe8Srdbk
|
||||||
|
|
||||||
Auto Name:Checkey
|
Auto Name:Checkey
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
"RequiresRoot": true,
|
"RequiresRoot": true,
|
||||||
"SourceCode": "https://github.com/dschuermann/ad-away",
|
"SourceCode": "https://github.com/dschuermann/ad-away",
|
||||||
"Summary": "Block advertisements",
|
"Summary": "Block advertisements",
|
||||||
|
"Translation": "https://www.transifex.com/dominikschuermann/adaway",
|
||||||
"UpdateCheckMode": "Tags",
|
"UpdateCheckMode": "Tags",
|
||||||
"WebSite": "http://sufficientlysecure.org/index.php/adaway",
|
"WebSite": "http://sufficientlysecure.org/index.php/adaway",
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ License:GPL-3.0+
|
|||||||
Web Site:https://f-droid.org
|
Web Site:https://f-droid.org
|
||||||
Source Code:https://gitlab.com/fdroid/fdroidclient
|
Source Code:https://gitlab.com/fdroid/fdroidclient
|
||||||
Issue Tracker:https://gitlab.com/fdroid/fdroidclient/issues
|
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
|
Changelog:https://gitlab.com/fdroid/fdroidclient/raw/HEAD/CHANGELOG.md
|
||||||
Donate:https://f-droid.org/about
|
Donate:https://f-droid.org/about
|
||||||
FlattrID:343053
|
FlattrID:343053
|
||||||
|
@ -3,6 +3,7 @@ License:GPL-3.0
|
|||||||
Web Site:http://www.smssecure.org
|
Web Site:http://www.smssecure.org
|
||||||
Source Code:https://github.com/SMSSecure/SMSSecure
|
Source Code:https://github.com/SMSSecure/SMSSecure
|
||||||
Issue Tracker:https://github.com/SMSSecure/SMSSecure/issues
|
Issue Tracker:https://github.com/SMSSecure/SMSSecure/issues
|
||||||
|
Translation:https://www.transifex.com/silence/silence
|
||||||
|
|
||||||
Auto Name:SMSSecure
|
Auto Name:SMSSecure
|
||||||
Summary:Send encrypted text messages (SMS)
|
Summary:Send encrypted text messages (SMS)
|
||||||
|
Loading…
Reference in New Issue
Block a user