Package turbogears :: Package command :: Module i18n :: Class InternationalizationTool
[hide private]

Class InternationalizationTool

source code

Manages i18n data via command-line interface.


Version: 0.2

Author: Max Ischenko, U{http://maxischenko.in.ua}

Copyright: Copyright 2005-2006 Max Ischenko

License: MIT

Instance Methods [hide private]
 
__init__(self, version) source code
 
load_project_config(self)
Chooses the config file, trying to guess whether this is a development or installed project.
source code
 
parse_args(self) source code
 
run(self) source code
 
create_js_messages(self) source code
 
clean_generated_files(self) source code
 
merge_message_catalogs(self) source code
 
compile_message_catalogs(self) source code
 
_copy_file_withcheck(self, sourcefile, targetfile) source code
 
_copy_moduletranslation(self, sourcefile, targetdir, language) source code
 
add_languages(self, codes) source code
 
scan_source_files(self) source code
 
scan_kid_files(self, potfile, files) source code
 
get_strings_in_js(self, fname) source code
 
scan_js_files(self, potfile, files) source code
 
get_potfile_path(self) source code
 
get_locale_catalog(self, code) source code
 
list_message_catalogs(self) source code
 
fix_tzinfo(self, potfile)
In certain enviroments, tz info as formatted by strftime() is not utf-8.
source code
Class Variables [hide private]
  desc = 'Manage i18n data'
  need_project = True
  config = True
  name = None
  package = None
  __email__ = 'ischenko@gmail.com'
Method Details [hide private]

fix_tzinfo(self, potfile)

source code 

In certain enviroments, tz info as formatted by strftime() is not utf-8. E.g. Windows XP with russian MUL.

This leads to later error when a program trying to read catalog.