Commit cc1be262 authored by Manuel Cortez's avatar Manuel Cortez

Added babel as a dependency and prepare the setup file for translating with this

parent ae2288a9
......@@ -15,6 +15,7 @@ backports.functools_lru_cache
yandex.translate
mutagen
mock
babel
# cx_freeze for building the executable files.
cx_freeze
symspellpy
......
This diff is collapsed.
[python: **.py]
input_dirs = .
output_file=socializer.pot
msgid_bugs_address=manuel@manuelcortez.net
copyright_holder=Manuel Cortez
......@@ -4,6 +4,7 @@ import application
import platform
import os
from cx_Freeze import setup, Executable
from babel.messages import frontend as babel
def find_sound_lib_datafiles():
import os
......@@ -45,6 +46,12 @@ executables = [
setup(name='Socializer',
version=application.version,
description=application.description,
# Register babel commands in setup file.
cmdclass = {'compile_catalog': babel.compile_catalog,
'extract_messages': babel.extract_messages,
'init_catalog': babel.init_catalog,
'update_catalog': babel.update_catalog},
message_extractors = {"socializer": [('**.py', 'python', None)]},
options = {"build_exe": build_exe_options},
executables=executables
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment