Skip to content

Commit

Permalink
Merge pull request #35116 from dimagi/jls/add-templates-dir
Browse files Browse the repository at this point in the history
Added translations directory to translations/templates
  • Loading branch information
orangejenny authored Sep 11, 2024
2 parents 2b3d473 + 4ba7316 commit c045bba
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions corehq/apps/translations/integrations/transifex/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c045bba

Please sign in to comment.