Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/i18n/extract.py   MHST2013-14(Download)
from polib import pofile
 
from config import BASE_DIR, LOCALE_DIR, CONFIGURATION
from execute import execute, create_dir_if_necessary, remove_file
 
def main ():
    logging.basicConfig(stream=sys.stdout, level=logging.INFO)
    create_dir_if_necessary(LOCALE_DIR)
    source_msgs_dir = CONFIGURATION.source_messages_dir
 

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/i18n/tests/test_validate.py   MHST2013-14(Download)
import os, sys, logging
from unittest import TestCase
from nose.plugins.skip import SkipTest
 
from config import LOCALE_DIR
    raise SkipTest()
    # Use relative paths to make output less noisy.
    rfile = os.path.relpath(filename, LOCALE_DIR)
    (out, err) = call(['msgfmt','-c', rfile], working_directory=LOCALE_DIR)
    if err != '':

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/i18n/tests/test_config.py   MHST2013-14(Download)
import os
from unittest import TestCase
 
from config import Configuration, LOCALE_DIR, CONFIGURATION
 
    def test_config(self):
        config_filename = os.path.normpath(os.path.join(LOCALE_DIR, 'config'))
        config = Configuration(config_filename)
        self.assertEqual(config.source_locale, 'en')
 
    def test_no_config(self):
        config_filename = os.path.normpath(os.path.join(LOCALE_DIR, 'no_such_file'))