Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(102)  |  Call(102)  |  Derive(0)  |  Import(0)
Verify the number of plurals in the translation.

        def num_plurals(catalog, message):
    """Verify the number of plurals in the translation."""
    if not message.pluralizable:
        if not isinstance(message.string, string_types):
            raise TranslationError("Found plural forms for non-pluralizable "
                                   "message")
        return

    # skip further tests if no catalog is provided.
    elif catalog is None:
        return

    msgstrs = message.string
    if not isinstance(msgstrs, (list, tuple)):
        msgstrs = (msgstrs,)
    if len(msgstrs) != catalog.num_plurals:
        raise TranslationError("Wrong number of plural forms (expected %d)" %
                               catalog.num_plurals)
        


src/h/u/hue-HEAD/desktop/core/ext-py/Babel-0.9.6/babel/messages/tests/checkers.py   hue(Download)
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Babel-0.9.6/babel/messages/tests/checkers.py   hortonworks-sandbox(Download)
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

src/k/i/kitsune-HEAD/vendor/packages/Babel/babel/messages/tests/checkers.py   kitsune(Download)
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

src/f/j/fjord-HEAD/vendor/packages/Babel/tests/messages/test_checkers.py   fjord(Download)
            catalog = read_po(BytesIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(BytesIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(BytesIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(BytesIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(BytesIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

src/g/a/gae-boilerplate-HEAD/bp_includes/external/babel/messages/tests/checkers.py   gae-boilerplate(Download)
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

src/w/e/webapp-improved-HEAD/lib/babel/babel/messages/tests/checkers.py   webapp-improved(Download)
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

src/s/t/stackgeek-gaeb-HEAD/lib/externals/babel/messages/tests/checkers.py   stackgeek-gaeb(Download)
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

src/k/u/kuma-lib-HEAD/packages/Babel/babel/messages/tests/checkers.py   kuma-lib(Download)
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

src/p/l/plexnet-HEAD/third_party/python/babel/messages/tests/checkers.py   plexnet(Download)
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

src/i/n/input-lib-HEAD/packages/Babel/babel/messages/tests/checkers.py   input-lib(Download)
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_2_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_3_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_4_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_5_num_plurals_checkers(self):
            catalog = read_po(StringIO(po_file), _locale)
            message = catalog['foobar']
            checkers.num_plurals(catalog, message)
 
    def test_6_num_plurals_checkers(self):

  1 | 2  Next