Received: from mail.netlandish.com (mail.netlandish.com [174.136.98.166]) by code.netlandish.com (Postfix) with ESMTP id 8427553C5 for <~netlandish/links-dev@lists.code.netlandish.com>; Thu, 13 Jun 2024 16:55:57 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.54; helo=mail-ua1-f54.google.com; envelope-from=ra.elemm2009@gmail.com; receiver=lists.code.netlandish.com Authentication-Results: mail.netlandish.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=dj9GDIHY Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) by mail.netlandish.com (Postfix) with ESMTP id 1350717A3C7 for <~netlandish/links-dev@lists.code.netlandish.com>; Thu, 13 Jun 2024 16:56:10 +0000 (UTC) Received: by mail-ua1-f54.google.com with SMTP id a1e0cc1a2514c-80b76c5de79so369021241.1 for <~netlandish/links-dev@lists.code.netlandish.com>; Thu, 13 Jun 2024 09:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718297769; x=1718902569; darn=lists.code.netlandish.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ILe6KDqvjoA39hoNcWh47GCMSFBqbEPIDD6c9X+npFI=; b=dj9GDIHY3h2HXxtOZPKY+Ro2N7ReHG6Q/DS5ecbMpv5kYN6fbx6mFniQeD7Med+gpH 8dlTBsUH0yoiWGjNWOLbsJAHMH0wupwpBwbyIVEykSPj6ZJ+yD+QPGfym5ZjtPPRaQl6 0nDEp9/6EfUzbDFv8DQdRj4R+Z1jSrZ8He4KNe5lpHY4+cyGoLtzgTX3IHP5wQ8zaSbC HOjnGZA3RDaDG2i9KjfRSwN2IBhI1yB0kUC3PqRt1Gt15F5y0TmYOXcGLCZh7lxpcITU jsANUxndey6ioefaw2y1fU9g79r97w46SJ73moXcj+tBq8GJz6G31abG+GZh1VAFlkBn +Brg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718297769; x=1718902569; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ILe6KDqvjoA39hoNcWh47GCMSFBqbEPIDD6c9X+npFI=; b=Ka7oXcpK9avjgCvVT/o4zWfxjWlCZH0Yv3Du4lOatyB8CWlS/u+Fhz/lV6D9fOxWsp 1X9Xd1uf18MOMniKiLTlqRRR6Gaz+1qfIi2oH3J9ISuNjtxHaTsZK/7CGcUKJC6IvpXF K7/V0kl27KqQ4P3dqvMLPgYYBG0MO6t32HX/5CkhvvYeRjoMdxPbMYBVn5QCnCaRtdCW xovolX31SnJXqUvhF9qP1CZ079ogNKRCcHCO/YX8Ai8FQ1ZysJIUQLd8MCvW+Lq8Vsbl 9yANziJhnEf0QmYLY48xaTArCr4bqBWF8O9cXTxvgZvYFfUEW5lsHq5UiSGzKlvi5E35 7uLw== X-Gm-Message-State: AOJu0Yxf1byCI0IrBjtXbq7DuVPWaj3grQ6RbEwtIao8GFbHbtBq3w4g qWadbsDvaPrdR2e/2WFSYyGd81MTsuROs3X3wk5VkpvsrFQ/+UQd9wD3gw== X-Google-Smtp-Source: AGHT+IHuLFaLH/XQFhJiqkCHHj/G/hw4is55YBijyjSUVzfX8g+OGQmo5k2WXRwFWlUiP/Alaps5cg== X-Received: by 2002:a05:6122:2a0b:b0:4eb:3789:4bcb with SMTP id 71dfb90a1353d-4ee3f759650mr518747e0c.10.1718297768626; Thu, 13 Jun 2024 09:56:08 -0700 (PDT) Received: from mudkip-B85M-DS3H-A.. ([186.77.207.152]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-4ed3f7d130asm256963e0c.21.2024.06.13.09.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 09:56:08 -0700 (PDT) From: Rael Monge To: ~netlandish/links-dev@lists.code.netlandish.com Cc: Rael Monge Subject: [PATCH links] Adding translate variable to all the Pricing List page Date: Thu, 13 Jun 2024 10:56:04 -0600 Message-Id: <20240613165604.26614-1-ra.elemm2009@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- core/routes.go | 69 +++++++++++++++++++ templates/pricing_list.html | 132 +++++++++++++++++------------------- 2 files changed, 133 insertions(+), 68 deletions(-) diff --git a/core/routes.go b/core/routes.go index f846d3d..4c545c1 100644 --- a/core/routes.go +++ b/core/routes.go @@ -337,6 +337,75 @@ func (s *Service) PricingList(c echo.Context) error { lt := localizer.GetSessionLocalizer(c) pd := localizer.NewPageData(lt.Translate("Pricing List")) pd.Data["organizations"] = lt.Translate("Organizations") + pd.Data["organizations_definition"] = lt.Translate( + "Every account can create unlimited organizations. Each organization can has it's own bookmarks, listings, analytics, etc. All of the features below belong to each organization. Each has their own URL's, groupings, etc. ") + + pd.Data["feature"] = lt.Translate("Feature") + pd.Data["free"] = lt.Translate("Free") + pd.Data["personal"] = lt.Translate("Personal") + pd.Data["business"] = lt.Translate("Business") + pd.Data["price"] = lt.Translate("Price") + pd.Data["per_year"] = lt.Translate("per year") + pd.Data["per_month"] = lt.Translate("per month") + pd.Data["months"] = lt.Translate("months") + pd.Data["unlimited"] = lt.Translate("Unlimited") + + pd.Data["bookmarks"] = lt.Translate("Bookmarks") + pd.Data["feature_bookmarks_1"] = lt.Translate("Save public/private links") + pd.Data["feature_bookmarks_2"] = lt.Translate("Save public/private notes") + pd.Data["feature_bookmarks_3"] = lt.Translate("Organize by tags") + pd.Data["feature_bookmarks_4"] = lt.Translate("Advanced filtering/search") + pd.Data["feature_bookmarks_5"] = lt.Translate("Full RSS feeds") + pd.Data["feature_bookmarks_6"] = lt.Translate("Custom domain + SSL") + + pd.Data["link_listings"] = lt.Translate("Link Listings") + pd.Data["feature_link_listings_1"] = lt.Translate("Save custom link listings (ie, for use in social media bios, etc.") + pd.Data["feature_link_listings_2"] = lt.Translate("Organize listings by tag") + pd.Data["feature_link_listings_3"] = lt.Translate("Filter/Search listing") + pd.Data["feature_link_listings_4"] = lt.Translate("Unlimited QR codes per listin") + pd.Data["feature_link_listings_5"] = lt.Translate("Full Analytic") + pd.Data["feature_link_listings_6"] = lt.Translate("Custom domain + SS") + + pd.Data["link_short"] = lt.Translate("Link Shortening") + pd.Data["feature_link_short_1"] = lt.Translate("Unlimited short links") + pd.Data["feature_link_short_2"] = lt.Translate("Organize shorts by tag") + pd.Data["feature_link_short_3"] = lt.Translate("Filter/Search short") + pd.Data["feature_link_short_4"] = lt.Translate("Unlimited QR codes per shor") + pd.Data["feature_link_short_5"] = lt.Translate("Full Analytic") + pd.Data["feature_link_short_6"] = lt.Translate("Custom domain + SS") + + pd.Data["analytics"] = lt.Translate("Analytics") + pd.Data["feature_analytics_1"] = lt.Translate("Full analytics histor") + pd.Data["feature_analytics_2"] = lt.Translate("QR Code specific analytic") + pd.Data["feature_analytics_3"] = lt.Translate("Click analytic") + pd.Data["feature_analytics_4"] = lt.Translate("Referer analyitc") + pd.Data["feature_analytics_5"] = lt.Translate("Country analytic") + pd.Data["feature_analytics_6"] = lt.Translate("City analytic") + pd.Data["feature_analytics_7"] = lt.Translate("Device analytic") + + pd.Data["collaboration_integrations"] = lt.Translate("Collaboration / Integrations") + pd.Data["feature_collab_integrat_1"] = lt.Translate("Add unlimited members to organizatio") + pd.Data["feature_collab_integrat_2"] = lt.Translate("Slack Integratio") + pd.Data["feature_collab_integrat_3"] = lt.Translate("MatterMost Integratio") + pd.Data["feature_collab_integrat_4"] = lt.Translate("Build Your Own Integratio") + + pd.Data["import_export"] = lt.Translate("Import / Export") + pd.Data["feature_import_export_1"] = lt.Translate("Import from Pinboar") + pd.Data["feature_import_export_2"] = lt.Translate("Import from Firefo") + pd.Data["feature_import_export_3"] = lt.Translate("Import from Chrom") + pd.Data["feature_import_export_4"] = lt.Translate("Import from Safar") + pd.Data["feature_import_export_5"] = lt.Translate("Export in JSON or HTM") + + pd.Data["api_powered"] = lt.Translate("API Powered") + pd.Data["feature_api_powered_1"] = lt.Translate("Full GraphQL API Acces") + pd.Data["feature_api_powered_2"] = lt.Translate("GraphQL Playgroun") + pd.Data["feature_api_powered_3"] = lt.Translate("OAuth2 Suppor") + pd.Data["feature_api_powered_4"] = lt.Translate("Personal Access Token") + + pd.Data["self_hosting"] = lt.Translate("Self Hosting") + pd.Data["feature_self_hosting_1"] = lt.Translate("Fully open source") + pd.Data["feature_self_hosting_2"] = lt.Translate("Host your own version of Link Tac") + pd.Data["feature_self_hosting_3"] = lt.Translate("Documentation") gmap := gobwebs.Map{ "pd": pd, diff --git a/templates/pricing_list.html b/templates/pricing_list.html index 0e5e8e5..bf52d1d 100644 --- a/templates/pricing_list.html +++ b/templates/pricing_list.html @@ -7,29 +7,25 @@

{{.pd.Data.organizations}}

-

- Every account can create unlimited organizations. Each organization can has it's own bookmarks, - listings, analytics, etc. All of the features below belong to each organization. Each has their - own URL's, groupings, etc. -

+

{{.pd.Data.organizations_definition}}

- - - - + + + + - + - + - + - + - + - + - + - + - - - - + + + + - + - + - + - - + + - + - + - + - + - + - + - - + + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - + + + +
FeatureFreePersonalBusiness{{.pd.Data.feature}}{{.pd.Data.free}}{{.pd.Data.personal}}{{.pd.Data.business}}
Bookmarks{{.pd.Data.bookmarks}}
Save public/private links{{.pd.Data.feature_bookmarks_1}} @@ -47,7 +43,7 @@
Save public/private notes{{.pd.Data.feature_bookmarks_2}} @@ -65,7 +61,7 @@
Organize by tags{{.pd.Data.feature_bookmarks_3}} @@ -83,7 +79,7 @@
Advanced filtering/search{{.pd.Data.feature_bookmarks_4}} @@ -101,7 +97,7 @@
Full RSS feeds{{.pd.Data.feature_bookmarks_5}} @@ -119,7 +115,7 @@
Custom domain + SSL{{.pd.Data.feature_bookmarks_6}} @@ -136,17 +132,17 @@
Link LIstings{{.pd.Data.link_listings}}
Save custom link listings
(ie, for use in social media bios, etc.)
1 monthsUnlimitedUnlimited{{.pd.Data.feature_link_listings_1}}1 {{.pd.Data.months}}{{.pd.Data.unlimited}}{{.pd.Data.unlimited}}
Organize listings by tags{{.pd.Data.feature_link_listings_2}} @@ -164,7 +160,7 @@
Filter/Search listings{{.pd.Data.feature_link_listings_3}} @@ -182,7 +178,7 @@
Unlimited QR codes per listing{{.pd.Data.feature_link_listings_4}} @@ -200,8 +196,8 @@
Full Analytics2 months{{.pd.Data.feature_link_listings_5}}2 {{.pd.Data.months}} @@ -214,7 +210,7 @@
Custom domain + SSL{{.pd.Data.feature_link_listings_6}} @@ -231,17 +227,17 @@
Link Shortening{{.pd.Data.link_short}}
Unlimited short links{{.pd.Data.feature_link_short_1}}
Organize shorts by tags{{.pd.Data.feature_link_short_2}} @@ -259,7 +255,7 @@
Filter/Search shorts{{.pd.Data.feature_link_short_3}} @@ -277,7 +273,7 @@
Unlimited QR codes per short{{.pd.Data.feature_link_short_4}} @@ -295,8 +291,8 @@
Full Analytics2 months{{.pd.Data.feature_link_short_5}}2 {{.pd.Data.months}} @@ -309,7 +305,7 @@
Custom domain + SSL{{.pd.Data.feature_link_short_6}} @@ -326,12 +322,12 @@
Analytics{{.pd.Data.analytics}}
Full analytics history2 months{{.pd.Data.feature_analytics_1}}2 {{.pd.Data.months}} @@ -344,7 +340,7 @@
QR Code specific analyt{{.pd.Data.feature_analytics_2}} @@ -362,7 +358,7 @@
Click analytics{{.pd.Data.feature_analytics_3}} @@ -380,7 +376,7 @@
Referer analyitcs{{.pd.Data.feature_analytics_4}} @@ -398,7 +394,7 @@
Country analytics{{.pd.Data.feature_analytics_5}} @@ -416,7 +412,7 @@
City analytics{{.pd.Data.feature_analytics_6}} @@ -433,7 +429,7 @@
Device analytics{{.pd.Data.feature_analytics_7}} @@ -450,11 +446,11 @@
Collaboration / Integrations{{.pd.Data.collaboration_integrations}}
Add unlimited members to organization{{.pd.Data.feature_collab_integrat_1}} @@ -470,7 +466,7 @@
Slack Integration{{.pd.Data.feature_collab_integrat_2}} @@ -486,7 +482,7 @@
MatterMost Integration{{.pd.Data.feature_collab_integrat_3}} @@ -502,7 +498,7 @@
Build Your Own Integration{{.pd.Data.feature_collab_integrat_4}} @@ -520,11 +516,11 @@
Import / Export{{.pd.Data.import_export}}
Import from Pinboard{{.pd.Data.feature_import_export_1}} @@ -542,7 +538,7 @@
Import from Firefox{{.pd.Data.feature_import_export_2}} @@ -560,7 +556,7 @@
Import from Chrome{{.pd.Data.feature_import_export_3}} @@ -578,7 +574,7 @@
Import from Safari{{.pd.Data.feature_import_export_4}} @@ -596,7 +592,7 @@
Export in JSON or HTML{{.pd.Data.feature_import_export_5}} @@ -614,11 +610,11 @@
API Powered{{.pd.Data.api_powered}}
Full GraphQL API Access{{.pd.Data.feature_api_powered_1}} @@ -636,7 +632,7 @@
GraphQL Playground{{.pd.Data.feature_api_powered_2}} @@ -654,7 +650,7 @@
OAuth2 Support{{.pd.Data.feature_api_powered_3}} @@ -672,7 +668,7 @@
Personal Access Tokens{{.pd.Data.feature_api_powered_4}} @@ -690,11 +686,11 @@
Self Hosting{{.pd.Data.self_hosting}}
Fully open source{{.pd.Data.feature_self_hosting_1}} @@ -712,7 +708,7 @@
Host your own version o{{.pd.Data.feature_self_hosting_2}} @@ -730,7 +726,7 @@
Documentation{{.pd.Data.feature_self_hosting_3}} @@ -748,10 +744,10 @@
PriceFree$25 per year$25 per month{{.pd.Data.price}}{{.pd.Data.free}}$25 {{.pd.Data.per_year}}$25 {{.pd.Data.per_month}}
-- 2.34.1