Skip to content

Commit

Permalink
Rename firefox/new FTL folder to firefox/download
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgibson committed Feb 12, 2025
1 parent e5ade84 commit ecd35ce
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions l10n/configs/pontoon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ locales = [
reference = "en/firefox/features/**/*.ftl"
l10n = "{locale}/firefox/features/**/*.ftl"
[[paths]]
reference = "en/firefox/new/**/*.ftl"
l10n = "{locale}/firefox/new/**/*.ftl"
reference = "en/firefox/download/**/*.ftl"
l10n = "{locale}/firefox/download/**/*.ftl"
[[paths]]
reference = "en/firefox/set-as-default/**/*.ftl"
l10n = "{locale}/firefox/set-as-default/**/*.ftl"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions springfield/firefox/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,14 @@ class MobileRelease:

class DownloadThanksView(L10nTemplateView):
ftl_files_map = {
"firefox/download/basic/thanks.html": ["firefox/new/download"],
"firefox/download/basic/thanks_direct.html": ["firefox/new/download"],
"firefox/download/desktop/thanks.html": ["firefox/new/desktop"],
"firefox/download/desktop/thanks_direct.html": ["firefox/new/desktop"],
"firefox/download/basic/thanks.html": ["firefox/download/download"],
"firefox/download/basic/thanks_direct.html": ["firefox/download/download"],
"firefox/download/desktop/thanks.html": ["firefox/download/desktop"],
"firefox/download/desktop/thanks_direct.html": ["firefox/download/desktop"],
}
activation_files = [
"firefox/new/download",
"firefox/new/desktop",
"firefox/download/download",
"firefox/download/desktop",
]

# place expected ?v= values in this list
Expand All @@ -421,7 +421,7 @@ def get_template_names(self):
experience = self.request.GET.get("xv", None)
source = self.request.GET.get("s", None)

if ftl_file_is_active("firefox/new/desktop") and experience != "basic":
if ftl_file_is_active("firefox/download/desktop") and experience != "basic":
if source == "direct":
template = "firefox/download/desktop/thanks_direct.html"
else:
Expand All @@ -437,12 +437,12 @@ def get_template_names(self):

class DownloadView(L10nTemplateView):
ftl_files_map = {
"firefox/download/basic/base_download.html": ["firefox/new/download"],
"firefox/download/desktop/download.html": ["firefox/new/desktop"],
"firefox/download/basic/base_download.html": ["firefox/download/download"],
"firefox/download/desktop/download.html": ["firefox/download/desktop"],
}
activation_files = [
"firefox/new/download",
"firefox/new/desktop",
"firefox/download/download",
"firefox/download/desktop",
]

# place expected ?v= values in this list
Expand Down Expand Up @@ -492,7 +492,7 @@ def get_template_names(self):
if variation not in self.variations:
variation = None

if ftl_file_is_active("firefox/new/desktop") and experience != "basic":
if ftl_file_is_active("firefox/download/desktop") and experience != "basic":
template = "firefox/download/desktop/download.html"
else:
template = "firefox/download/basic/base_download.html"
Expand Down

0 comments on commit ecd35ce

Please sign in to comment.