Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix typo, s/filtetype/filetype/g.

  • Loading branch information...
commit bc2386de929108d29bfa45756c99c79753f745ef 1 parent 3500e86
@julen julen authored
View
2  pootle/apps/pootle_app/project_tree.py
@@ -55,7 +55,7 @@ def match_template_filename(project, filename):
project"""
name, ext = os.path.splitext(os.path.basename(filename))
#FIXME: is the test for matching extension redundant?
- if ext == os.path.extsep + project.get_template_filtetype():
+ if ext == os.path.extsep + project.get_template_filetype():
if ext != os.path.extsep + project.localfiletype:
# template extension is distinct, surely file is a template
return True
View
4 pootle/apps/pootle_project/models.py
@@ -187,7 +187,7 @@ def get_real_path(self):
def get_absolute_url(self):
return l(self.pootle_path)
- def get_template_filtetype(self):
+ def get_template_filetype(self):
if self.localfiletype == 'po':
return 'pot'
else:
@@ -213,7 +213,7 @@ def file_belongs_to_project(self, filename, match_templates=True):
If ``match_templates`` is ``True``, this will also check if the
file matches the template filetype.
"""
- template_ext = os.path.extsep + self.get_template_filtetype()
+ template_ext = os.path.extsep + self.get_template_filetype()
return (filename.endswith(os.path.extsep + self.localfiletype)
or match_templates and filename.endswith(template_ext))
View
2  pootle/apps/pootle_translationproject/models.py
@@ -338,7 +338,7 @@ def scan_files(self):
# Scan for pots if template project
if self.is_template_project:
- ext = os.extsep + self.project.get_template_filtetype()
+ ext = os.extsep + self.project.get_template_filetype()
from pootle_app.project_tree import add_files, match_template_filename,\
direct_language_match_filename
Please sign in to comment.
Something went wrong with that request. Please try again.