Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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