[ios] Added Mastodon & Bluesky

This commit is contained in:
Yannik Bloscheck
2025-06-19 16:34:48 +02:00
committed by Yannik Bloscheck
parent fe92bf2359
commit e500a9e5fa
63 changed files with 554 additions and 1 deletions

View File

@@ -13,11 +13,13 @@ NS_ASSUME_NONNULL_BEGIN
@property(nonatomic, readonly, nullable) NSString *website;
@property(nonatomic, readonly, nullable) NSString *wikipedia;
@property(nonatomic, readonly, nullable) NSString *wikimediaCommons;
@property(nonatomic, readonly, nullable) NSString *fediverse;
@property(nonatomic, readonly, nullable) NSString *facebook;
@property(nonatomic, readonly, nullable) NSString *instagram;
@property(nonatomic, readonly, nullable) NSString *twitter;
@property(nonatomic, readonly, nullable) NSString *vk;
@property(nonatomic, readonly, nullable) NSString *line;
@property(nonatomic, readonly, nullable) NSString *bluesky;
@property(nonatomic, readonly, nullable) NSString *email;
@property(nonatomic, readonly, nullable) NSURL *emailUrl;
@property(nonatomic, readonly, nullable) NSString *cuisine;

View File

@@ -68,11 +68,13 @@ NSString * GetLocalizedMetadataValueString(MapObject::MetadataID metaID, std::st
_email = ToNSString(value);
_emailUrl = [NSURL URLWithString:[NSString stringWithFormat:@"mailto:%@", _email]];
break;
case MetadataID::FMD_CONTACT_FEDIVERSE: _fediverse = ToNSString(value); break;
case MetadataID::FMD_CONTACT_FACEBOOK: _facebook = ToNSString(value); break;
case MetadataID::FMD_CONTACT_INSTAGRAM: _instagram = ToNSString(value); break;
case MetadataID::FMD_CONTACT_TWITTER: _twitter = ToNSString(value); break;
case MetadataID::FMD_CONTACT_VK: _vk = ToNSString(value); break;
case MetadataID::FMD_CONTACT_LINE: _line = ToNSString(value); break;
case MetadataID::FMD_CONTACT_BLUESKY: _bluesky = ToNSString(value); break;
case MetadataID::FMD_OPERATOR: _ppOperator = [NSString stringWithFormat:NSLocalizedString(@"operator", nil), ToNSString(value)]; break;
case MetadataID::FMD_INTERNET:
_wifiAvailable = (rawData.GetInternet() == feature::Internet::No)

View File

@@ -0,0 +1,26 @@
{
"images" : [
{
"filename" : "ic_placepage_bluesky.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ic_placepage_bluesky@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_placepage_bluesky@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 731 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,26 @@
{
"images" : [
{
"filename" : "ic_placepage_fediverse.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ic_placepage_fediverse@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_placepage_fediverse@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Nuus";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Gradeer die toep";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "أخبار";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "فيسبوك";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "قيّم التطبيق";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Xəbərlər";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Proqramı qiymətləndirin";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Навіны";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Ацаніць праграму";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Новини";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Оцени приложение";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Notícies";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Puntua l'aplicació";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Novinky";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Ohodnotit aplikaci";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Nyheder";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Bedøm appen";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Neuigkeiten";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Bewerten Sie die App";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Νέα";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Βαθμολογήστε την εφαρμογή";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "News";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Rate the app";

View File

@@ -267,6 +267,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "News";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -279,6 +282,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Rate the app";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Noticias";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Valore la aplicación";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Noticias";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Valore la aplicación";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Uudised";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Hinda rakendust";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Albisteak";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Baloratu aplikazioa";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "اخبار";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "امتیاز به این اپلیکیشن";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Uutiset";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Arvioi sovellus";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Nouvelles";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Évaluer l'appli";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "חדשות";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "דרגו את האפליקציה";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "समाचार";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "फेसबुक";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "एप्लिकेशन की श्रेणी बताओ";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Hírek";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VKontakte";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Értékelje az alkalmazást";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Berita";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Beri nilai aplikasi";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Notizie";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Vota l'app";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "ニュース";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "アプリを評価";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "소식";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "앱 평가";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Naujienos";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Įvertinti šią programėlę";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Jaunumi";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Novērtējiet lietotni";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "बातम्या";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "ऍप मानांकित करा";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Aħbarijiet";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Għati rata lill-app";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Nyheter";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Ranger appen";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Nieuws";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Beoordeel de app";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Wiadomości";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Oceń aplikację";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Notícias";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Avaliar o aplicativo";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Notícias";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Avaliar a aplicação";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Știri";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Evaluează aplicația";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Новости";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Оценить приложение";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Správy";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Ohodnotiť aplikáciu";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Новости";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Оцена апликације";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Nyheter";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Betygsätt appen";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Habari";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Rate the app";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "ข่าว";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "ให้คะแนนแอป";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Haberler";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Uygulamayı değerlendir";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Новини";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Оцінити застосунок";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "Tin tức";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "Cho điểm ứng dụng";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "新闻";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "为我们评分";

View File

@@ -255,6 +255,9 @@
/* Text in About menu, opens CoMaps news website */
"news" = "新聞";
/* Text in the editor */
"fediverse" = "Mastodon";
/* Text in menu */
"facebook" = "Facebook";
@@ -267,6 +270,12 @@
/* Text in the editor */
"vk" = "VK";
/* Text in the editor */
"line" = "Line";
/* Text in the editor */
"bluesky" = "Bluesky";
/* Text in menu */
"rate_the_app" = "為我們評分";

View File

@@ -670,6 +670,14 @@ void registerCellsForTableView(std::vector<MWMEditorCellID> const & cells, UITab
value:feature::YesNoUnknownFromString(m_mapObject.GetMetadata(feature::Metadata::FMD_OUTDOOR_SEATING))];
break;
}
case MetadataID::FMD_CONTACT_FEDIVERSE:
{
[self configTextViewCell:cell
cellID:cellID
icon:@"ic_placepage_fediverse"
placeholder:L(@"fediverse")];
break;
}
case MetadataID::FMD_CONTACT_FACEBOOK:
{
[self configTextViewCell:cell
@@ -710,6 +718,14 @@ void registerCellsForTableView(std::vector<MWMEditorCellID> const & cells, UITab
placeholder:L(@"line")];
break;
}
case MetadataID::FMD_CONTACT_BLUESKY:
{
[self configTextViewCell:cell
cellID:cellID
icon:@"ic_placepage_bluesky"
placeholder:L(@"bluesky")];
break;
}
case MWMEditorCellTypeNote:
{
MWMNoteCell * tCell = static_cast<MWMNoteCell *>(cell);

View File

@@ -79,11 +79,13 @@ protocol PlacePageInfoViewControllerDelegate: AnyObject {
func didPressWebsiteMenu()
func didPressWikipedia()
func didPressWikimediaCommons()
func didPressFediverse()
func didPressFacebook()
func didPressInstagram()
func didPressTwitter()
func didPressVk()
func didPressLine()
func didPressBluesky()
func didPressEmail()
func didPressOpenInApp(from sourceView: UIView)
func didCopy(_ content: String)
@@ -109,11 +111,13 @@ class PlacePageInfoViewController: UIViewController {
private var wikipediaView: InfoItemViewController?
private var wikimediaCommonsView: InfoItemViewController?
private var emailView: InfoItemViewController?
private var fediverseView: InfoItemViewController?
private var facebookView: InfoItemViewController?
private var instagramView: InfoItemViewController?
private var twitterView: InfoItemViewController?
private var vkView: InfoItemViewController?
private var lineView: InfoItemViewController?
private var blueskyView: InfoItemViewController?
private var cuisineView: InfoItemViewController?
private var operatorView: InfoItemViewController?
private var wifiView: InfoItemViewController?
@@ -274,6 +278,18 @@ class PlacePageInfoViewController: UIViewController {
})
}
if let fediverse = placePageInfoData.fediverse {
fediverseView = createInfoItem(fediverse,
icon: UIImage(named: "ic_placepage_fediverse"),
style: .link,
tapHandler: { [weak self] in
self?.delegate?.didPressFediverse()
},
longPressHandler: { [weak self] in
self?.delegate?.didCopy(fediverse)
})
}
if let facebook = placePageInfoData.facebook {
facebookView = createInfoItem(facebook,
icon: UIImage(named: "ic_placepage_facebook"),
@@ -334,6 +350,18 @@ class PlacePageInfoViewController: UIViewController {
})
}
if let bluesky = placePageInfoData.line {
blueskyView = createInfoItem(bluesky,
icon: UIImage(named: "ic_placepage_bluesky"),
style: .link,
tapHandler: { [weak self] in
self?.delegate?.didPressBluesky()
},
longPressHandler: { [weak self] in
self?.delegate?.didCopy(bluesky)
})
}
if let address = placePageInfoData.address {
addressView = createInfoItem(address,
icon: UIImage(named: "ic_placepage_address"),

View File

@@ -100,6 +100,10 @@ extension PlacePageInteractor: PlacePageInfoViewControllerDelegate {
MWMPlacePageManagerHelper.openWikimediaCommons(placePageData)
}
func didPressFediverse() {
MWMPlacePageManagerHelper.openFediverse(placePageData)
}
func didPressFacebook() {
MWMPlacePageManagerHelper.openFacebook(placePageData)
}
@@ -120,6 +124,10 @@ extension PlacePageInteractor: PlacePageInfoViewControllerDelegate {
MWMPlacePageManagerHelper.openLine(placePageData)
}
func didPressBluesky() {
MWMPlacePageManagerHelper.openBluesky(placePageData)
}
func didPressEmail() {
MWMPlacePageManagerHelper.openEmail(placePageData)
}

View File

@@ -258,6 +258,11 @@ using namespace storage;
[self.ownerViewController openUrl:data.infoData.wikimediaCommons externally:YES];
}
- (void)openFediverse:(PlacePageData *)data {
std::string const fullUrl = osm::socialContactToURL(osm::MapObject::MetadataID::FMD_CONTACT_FEDIVERSE, [data.infoData.fediverse UTF8String]);
[self.ownerViewController openUrl:ToNSString(fullUrl) externally:YES];
}
- (void)openFacebook:(PlacePageData *)data {
std::string const fullUrl = osm::socialContactToURL(osm::MapObject::MetadataID::FMD_CONTACT_FACEBOOK, [data.infoData.facebook UTF8String]);
[self.ownerViewController openUrl:ToNSString(fullUrl) externally:YES];
@@ -283,6 +288,11 @@ using namespace storage;
[self.ownerViewController openUrl:ToNSString(fullUrl) externally:YES];
}
- (void)openBluesky:(PlacePageData *)data {
std::string const fullUrl = osm::socialContactToURL(osm::MapObject::MetadataID::FMD_CONTACT_BLUESKY, [data.infoData.bluesky UTF8String]);
[self.ownerViewController openUrl:ToNSString(fullUrl) externally:YES];
}
- (void)openEmail:(PlacePageData *)data {
[MailComposer sendEmailWithSubject:nil body:nil toRecipients:@[data.infoData.email] attachmentFileURL:nil];
}

View File

@@ -13,11 +13,13 @@
+ (void)openWikipedia:(PlacePageData *)data;
+ (void)openWikimediaCommons:(PlacePageData *)data;
+ (void)openEmail:(PlacePageData *)data;
+ (void)openFediverse:(PlacePageData *)data;
+ (void)openFacebook:(PlacePageData *)data;
+ (void)openInstagram:(PlacePageData *)data;
+ (void)openTwitter:(PlacePageData *)data;
+ (void)openVk:(PlacePageData *)data;
+ (void)openLine:(PlacePageData *)data;
+ (void)openBluesky:(PlacePageData *)data;
+ (void)call:(PlacePagePhone *)phone;
+ (void)showAllFacilities:(PlacePageData *)data;
+ (void)showPlaceDescription:(NSString *)htmlString;

View File

@@ -19,11 +19,13 @@
- (void)openWikipedia:(PlacePageData *)data;
- (void)openWikimediaCommons:(PlacePageData *)data;
- (void)openEmail:(PlacePageData *)data;
- (void)openFediverse:(PlacePageData *)data;
- (void)openFacebook:(PlacePageData *)data;
- (void)openInstagram:(PlacePageData *)data;
- (void)openTwitter:(PlacePageData *)data;
- (void)openVk:(PlacePageData *)data;
- (void)openLine:(PlacePageData *)data;
- (void)openBluesky:(PlacePageData *)data;
- (void)call:(PlacePagePhone *)phone;
- (void)showAllFacilities:(PlacePageData *)data;
- (void)showPlaceDescription:(NSString *)htmlString;
@@ -89,6 +91,10 @@
[[MWMMapViewControlsManager manager].placePageManager openWikimediaCommons:data];
}
+ (void)openFediverse:(PlacePageData *)data {
[[MWMMapViewControlsManager manager].placePageManager openFediverse:data];
}
+ (void)openFacebook:(PlacePageData *)data {
[[MWMMapViewControlsManager manager].placePageManager openFacebook:data];
}
@@ -109,6 +115,10 @@
[[MWMMapViewControlsManager manager].placePageManager openLine:data];
}
+ (void)openBluesky:(PlacePageData *)data {
[[MWMMapViewControlsManager manager].placePageManager openBluesky:data];
}
+ (void)call:(PlacePagePhone *)phone {
[[MWMMapViewControlsManager manager].placePageManager call:phone];
}