Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed mistake in default value for language_as option

  • Loading branch information...
commit bd8dd26bed21052f2d8152866277aeff918e453f 1 parent fef0618
Abelardo Pardo authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 adagio/xsltproc.py
View
11 adagio/xsltproc.py
@@ -274,9 +274,9 @@ def doTransformations(styles, styleTransform, styleParams, toProcess,
lang_name = ''
if multilingual:
if language_as == 'suffix':
- lang_name = '_' + language
- else:
lang_name = language + '_'
+ else:
+ lang_name = '_' + language
# Insert the appropriate language parameters
styleParams['profile.lang'] = "\'" + language + "\'"
@@ -284,12 +284,13 @@ def doTransformations(styles, styleTransform, styleParams, toProcess,
# Derive the destination file name
if language_as == 'suffix':
- dstFile = os.path.splitext(os.path.basename(datafile))[0] + \
- lang_name + psuffix + outputFormat
- else:
dstFile = lang_name + \
os.path.splitext(os.path.basename(datafile))[0] + \
psuffix + outputFormat
+ else:
+ dstFile = os.path.splitext(os.path.basename(datafile))[0] \
+ + lang_name + psuffix + outputFormat
+
dstFile = os.path.abspath(os.path.join(dstDir, dstFile))
# Apply style and store the result, get the data tree to recycle
Please sign in to comment.
Something went wrong with that request. Please try again.