[strings] Add localized links for osm wiki page

Signed-off-by: cyber-toad <the.cyber.toad@proton.me>
This commit is contained in:
cyber-toad 2023-03-26 21:45:17 +02:00 committed by Alexander Borsuk
parent 1a304a4906
commit 8526480513
8 changed files with 29 additions and 7 deletions

View file

@ -521,7 +521,7 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe
else if (id == R.id.add_langs)
mParent.addLanguage();
else if (id == R.id.about_osm)
startActivity(new Intent((Intent.ACTION_VIEW), Uri.parse(Constants.Url.OSM_ABOUT)));
startActivity(new Intent((Intent.ACTION_VIEW), Uri.parse(getString(R.string.osm_wiki_about_url))));
else if (id == R.id.reset)
reset();
}

View file

@ -97,7 +97,7 @@ public class ProfileFragment extends BaseMwmToolbarFragment
private void openOsmAboutUrl()
{
startActivity(new Intent((Intent.ACTION_VIEW), Uri.parse(Constants.Url.OSM_ABOUT)));
startActivity(new Intent((Intent.ACTION_VIEW), Uri.parse(getString(R.string.osm_wiki_about_url))));
}
private void openOsmHistoryUrl()

View file

@ -137,7 +137,7 @@ public class HelpFragment extends BaseMwmFragment implements View.OnClickListene
else if (id == R.id.mastodon)
openLink(Constants.Url.MASTODON);
else if (id == R.id.openstreetmap)
openLink(Constants.Url.OSM_ABOUT);
openLink(getString(R.string.osm_wiki_about_url));
else if (id == R.id.faq)
((HelpActivity) requireActivity()).stackFragment(FaqFragment.class, getString(R.string.faq), null);
else if (id == R.id.report)

View file

@ -34,7 +34,6 @@ public final class Constants
public static final String OSM_REGISTER = "https://www.openstreetmap.org/user/new";
public static final String OSM_RECOVER_PASSWORD = "https://www.openstreetmap.org/user/forgot-password";
public static final String OSM_ABOUT = "https://wiki.openstreetmap.org/wiki/About_OpenStreetMap";
private Url() {}
}

View file

@ -25383,3 +25383,26 @@
it = https://organicmaps.app/it/
ru = https://organicmaps.app/ru/
tr = https://organicmaps.app/tr/
[osm_wiki_about_url]
comment = Link to OSM wiki for Editor, Profile and About pages
tags = android,ios
en = https://wiki.openstreetmap.org/wiki/About_OpenStreetMap
ar = https://wiki.openstreetmap.org/wiki/Ar:About_OpenStreetMap
ca = https://wiki.openstreetmap.org/wiki/Ca:About
da = https://wiki.openstreetmap.org/wiki/Da:Om_OpenStreetMap
de = https://wiki.openstreetmap.org/wiki/DE:Über_OSM
el = https://wiki.openstreetmap.org/wiki/El:About_OpenStreetMap
es = https://wiki.openstreetmap.org/wiki/ES:Acerca_de_OpenStreetMap
fa = https://wiki.openstreetmap.org/wiki/Fa:About_OpenStreetMap
fr = https://wiki.openstreetmap.org/wiki/FR:À_propos_dOpenStreetMap
hu = https://wiki.openstreetmap.org/wiki/Hu:Névjegy
it = https://wiki.openstreetmap.org/wiki/IT:About
ja = https://wiki.openstreetmap.org/wiki/JA:参加する
ko = https://wiki.openstreetmap.org/wiki/Ko:OpenStreetMap_소개
nl = https://wiki.openstreetmap.org/wiki/NL:Wat_is_OpenStreetMap%3F
pl = https://wiki.openstreetmap.org/wiki/Pl:Wstęp
pt = https://wiki.openstreetmap.org/wiki/Pt:Sobre_o_OpenStreetMap
ru = https://wiki.openstreetmap.org/wiki/RU:О_проекте
tr = https://wiki.openstreetmap.org/wiki/Tr:About
uk = https://wiki.openstreetmap.org/wiki/Uk:Про_проект

View file

@ -101,7 +101,7 @@ using namespace osm_auth_ios;
- (IBAction)osmTap
{
[self openUrl:@"https://wiki.openstreetmap.org/wiki/Main_Page"];
[self openUrl:L(@"osm_wiki_about_url")];
}
- (IBAction)historyTap

View file

@ -22,7 +22,7 @@
- (IBAction)osmTap
{
[self.controller openUrl:@"https://wiki.openstreetmap.org/wiki/Main_Page"];
[self.controller openUrl:L(@"osm_wiki_about_url")];
}
@end

View file

@ -201,7 +201,7 @@ final class AboutController: MWMViewController, UITableViewDataSource, UITableVi
case 6: self.openUrl("https://facebook.com/OrganicMaps", inSafari: true)
case 7: self.openUrl("https://twitter.com/OrganicMapsApp", inSafari: true)
case 8: self.openUrl(L("instagram_url"), inSafari: true)
case 9: self.openUrl("https://wiki.openstreetmap.org/wiki/About_OpenStreetMap", inSafari: true)
case 9: self.openUrl(L("osm_wiki_about_url"), inSafari: true)
default: fatalError("Invalid cell1 \(indexPath)")
}
// Third section.