Skip to content

Commit

Permalink
Move translation source file to /src/lang
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-easterbrook committed Jul 8, 2015
1 parent 88b701e commit 0a6836f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pip-log.txt
# Extras
MANIFEST
/doc
/src/lang/photini.ts
/src/photini/data/lang
/src/windows/installers
/src/windows/WinPython
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ host = https://www.transifex.com

[photini.photini]
file_filter = src/lang/photini.<lang>.ts
source_file = build/messages/photini.ts
source_file = src/lang/photini.ts
source_lang = en

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def run(self):

cmdclass['extract_messages'] = extract_messages
command_options['extract_messages'] = {
'output_file' : ('setup.py', 'build/messages/photini.ts'),
'output_file' : ('setup.py', 'src/lang/photini.ts'),
'input_dir' : ('setup.py', 'src/photini'),
}

Expand All @@ -205,7 +205,7 @@ def run(self):
self.mkpath(self.output_dir)
for name in os.listdir(self.input_dir):
base, ext = os.path.splitext(name)
if ext != '.ts':
if ext != '.ts' or '.' not in base:
continue
subprocess.check_call(
['lrelease', os.path.join(self.input_dir, name),
Expand Down
6 changes: 3 additions & 3 deletions src/photini/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals

__version__ = '15.07.2.dev286'
_dev_no = '286'
_commit = '05703eb'
__version__ = '15.07.2.dev287'
_dev_no = '287'
_commit = '88b701e'

0 comments on commit 0a6836f

Please sign in to comment.