def get_localized_source(self, lang): # TODO: minify this source = FileSource("lib/moment-langs/%s.js" % lang) if not source.path: print >> sys.stderr, " WARNING: no moment.js support for %r" % lang return "" return source.get_source()
def get_localized_source(self, lang): # TODO: minify this source = FileSource("lib/moment-langs/%s.js" % lang) try: localized_source = source.get_source(use_built_statics=True) except IOError: print >> sys.stderr, " WARNING: no moment.js support for %r" % lang return "" return localized_source