chiark / gitweb /
metadata: add new Translation app field for URL for contributions
authorHans-Christoph Steiner <hans@eds.org>
Tue, 30 Jan 2018 10:14:36 +0000 (11:14 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 5 Feb 2018 14:45:12 +0000 (15:45 +0100)
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

.gitlab-ci.yml
fdroidserver/metadata.py
tests/metadata-rewrite-yml/org.fdroid.fdroid.yml
tests/metadata/dump/com.politedroid.yaml
tests/metadata/dump/org.adaway.yaml
tests/metadata/dump/org.smssecure.smssecure.yaml
tests/metadata/dump/org.videolan.vlc.yaml
tests/metadata/info.guardianproject.checkey.txt
tests/metadata/org.adaway.json
tests/metadata/org.fdroid.fdroid.txt
tests/metadata/org.smssecure.smssecure.txt

index c00c90c20a118b8c7e497af9bad4101ca101f2b5..1705910f7b88f5f6a6f1aba89627e8166aaaa173 100644 (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
index 1c43fbaed603f9941f74c703d0a35962bb7c6c82..80c49a8ddff72c88af08f46e3eecf17dc8e48b10 100644 (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')
index 1982ace6a3d6a90c0bf1082ca386b9f3a0a13031..af3a767f03cc6805caf5cd6025d833ff1f0926c5 100644 (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'
index 698f216dd80fb7a80c507989530ebb3b30df3b81..bf0b9b6ba4e26043fc0818f46f7892bfa4e7842d 100644 (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
index 8a599d2904c6b02b35bc875025e1254867e66c00..b31b2a046870925ec95cffc8698e47b1174cfb24 100644 (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
index 8935e1c49d0266fbd0abb689767619b7ff43d9c6..bcbffd6d84628c73ac94a0868b45583c90402a8d 100644 (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
index a6d309e2461e5fa11897eaa5fe21c8f43880b22d..e40baaa128fded68eb270780d69e4da69890cb64 100644 (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
index 4beeec897aa8291d93ec7b90e0463c71acdac580..8e57eef087e8b0b7f654a9066ffac362783ba712 100644 (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
index dda8ae600321ad96227da64964248d9851571e1a..7a09ef5d46bc5329f96995250f420874041fe2c7 100644 (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",
 
index 912cd5817cd93b2e6198a401b35e47889bbba0fe..4d38c837afaeb473fd59fe49dd5d95f41bc7424e 100644 (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
index 655857effb93b4f9941252fe911db65c762699eb..38ab004f4c1d947c170216ddb4d7c582739b27ae 100644 (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)