From 4ba731673366b6ddb9d9186943c2376c2814cdd4 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Wed, 11 Sep 2024 11:12:20 -0400 Subject: [PATCH] Added translations directory to translations/templates --- .../translations/integrations/transifex/views.py | 12 ++++++------ .../{ => translations}/app_translations.html | 0 .../{ => translations}/blacklist_translations.html | 0 .../{ => translations}/convert_translations.html | 0 .../{ => translations}/download_translations.html | 0 .../{ => translations}/migrate_project.html | 0 .../templates/{ => translations}/pull_resource.html | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename corehq/apps/translations/templates/{ => translations}/app_translations.html (100%) rename corehq/apps/translations/templates/{ => translations}/blacklist_translations.html (100%) rename corehq/apps/translations/templates/{ => translations}/convert_translations.html (100%) rename corehq/apps/translations/templates/{ => translations}/download_translations.html (100%) rename corehq/apps/translations/templates/{ => translations}/migrate_project.html (100%) rename corehq/apps/translations/templates/{ => translations}/pull_resource.html (100%) diff --git a/corehq/apps/translations/integrations/transifex/views.py b/corehq/apps/translations/integrations/transifex/views.py index 8c9e6a3c5762..5a783430d5a2 100644 --- a/corehq/apps/translations/integrations/transifex/views.py +++ b/corehq/apps/translations/integrations/transifex/views.py @@ -71,7 +71,7 @@ def transifex_integration_enabled(self, request): class ConvertTranslations(BaseTranslationsView): page_title = _('Convert Translations') urlname = 'convert_translations' - template_name = 'convert_translations.html' + template_name = 'translations/convert_translations.html' @property @memoized @@ -211,7 +211,7 @@ def page_context(self): class PullResource(BaseTranslationsView): page_title = _('Pull Resource') urlname = 'pull_resource' - template_name = 'pull_resource.html' + template_name = 'translations/pull_resource.html' def dispatch(self, request, *args, **kwargs): return super(PullResource, self).dispatch(request, *args, **kwargs) @@ -311,7 +311,7 @@ def post(self, request, *args, **kwargs): class BlacklistTranslations(BaseTranslationsView): page_title = _('Blacklist Translations') urlname = 'blacklist_translations' - template_name = 'blacklist_translations.html' + template_name = 'translations/blacklist_translations.html' def section_url(self): return self.page_url @@ -341,7 +341,7 @@ def post(self, request, *args, **kwargs): class AppTranslations(BaseTranslationsView): page_title = gettext_lazy('App Translations') urlname = 'app_translations' - template_name = 'app_translations.html' + template_name = 'translations/app_translations.html' def dispatch(self, request, *args, **kwargs): return super(AppTranslations, self).dispatch(request, *args, **kwargs) @@ -528,7 +528,7 @@ def page_context(self): class DownloadTranslations(BaseTranslationsView): page_title = gettext_lazy('Download Translations') urlname = 'download_translations' - template_name = 'download_translations.html' + template_name = 'translations/download_translations.html' @property def page_context(self): @@ -572,7 +572,7 @@ def post(self, request, *args, **kwargs): class MigrateTransifexProject(BaseTranslationsView): page_title = gettext_lazy('Migrate Project') urlname = 'migrate_transifex_project' - template_name = 'migrate_project.html' + template_name = 'translations/migrate_project.html' def section_url(self): return reverse(MigrateTransifexProject.urlname, args=self.args, kwargs=self.kwargs) diff --git a/corehq/apps/translations/templates/app_translations.html b/corehq/apps/translations/templates/translations/app_translations.html similarity index 100% rename from corehq/apps/translations/templates/app_translations.html rename to corehq/apps/translations/templates/translations/app_translations.html diff --git a/corehq/apps/translations/templates/blacklist_translations.html b/corehq/apps/translations/templates/translations/blacklist_translations.html similarity index 100% rename from corehq/apps/translations/templates/blacklist_translations.html rename to corehq/apps/translations/templates/translations/blacklist_translations.html diff --git a/corehq/apps/translations/templates/convert_translations.html b/corehq/apps/translations/templates/translations/convert_translations.html similarity index 100% rename from corehq/apps/translations/templates/convert_translations.html rename to corehq/apps/translations/templates/translations/convert_translations.html diff --git a/corehq/apps/translations/templates/download_translations.html b/corehq/apps/translations/templates/translations/download_translations.html similarity index 100% rename from corehq/apps/translations/templates/download_translations.html rename to corehq/apps/translations/templates/translations/download_translations.html diff --git a/corehq/apps/translations/templates/migrate_project.html b/corehq/apps/translations/templates/translations/migrate_project.html similarity index 100% rename from corehq/apps/translations/templates/migrate_project.html rename to corehq/apps/translations/templates/translations/migrate_project.html diff --git a/corehq/apps/translations/templates/pull_resource.html b/corehq/apps/translations/templates/translations/pull_resource.html similarity index 100% rename from corehq/apps/translations/templates/pull_resource.html rename to corehq/apps/translations/templates/translations/pull_resource.html