From d338f00e396d9d485e02e55b5e91875ba97a2fa7 Mon Sep 17 00:00:00 2001 From: 0x29a Date: Fri, 30 Dec 2022 12:04:15 +0100 Subject: [PATCH] refactor: rename module (or item) -> block within cms --- .../contentstore/course_group_config.py | 36 ++++++------ .../contentstore/courseware_index.py | 2 +- .../management/commands/delete_orphans.py | 2 +- .../commands/tests/test_delete_orphans.py | 2 +- .../contentstore/signals/handlers.py | 8 +-- cms/djangoapps/contentstore/tasks.py | 12 ++-- .../contentstore/tests/test_contentstore.py | 30 +++++----- .../tests/test_courseware_index.py | 4 +- .../contentstore/tests/test_i18n.py | 26 ++++----- .../contentstore/tests/test_libraries.py | 34 +++++------ .../contentstore/tests/test_orphan.py | 8 +-- cms/djangoapps/contentstore/utils.py | 2 +- cms/djangoapps/contentstore/views/__init__.py | 2 +- .../contentstore/views/{item.py => block.py} | 58 +++++++++---------- .../contentstore/views/component.py | 4 +- cms/djangoapps/contentstore/views/course.py | 4 +- .../contentstore/views/entrance_exam.py | 12 ++-- cms/djangoapps/contentstore/views/helpers.py | 2 +- .../contentstore/views/import_export.py | 16 ++--- cms/djangoapps/contentstore/views/library.py | 2 +- cms/djangoapps/contentstore/views/preview.py | 28 ++++----- .../tests/{test_item.py => test_block.py} | 26 ++++----- .../views/tests/test_container_page.py | 30 +++++----- .../views/tests/test_course_index.py | 2 +- .../views/tests/test_entrance_exam.py | 8 +-- .../contentstore/views/tests/test_gating.py | 16 ++--- .../views/tests/test_import_export.py | 2 +- .../views/tests/test_transcripts.py | 12 ++-- .../contentstore/views/transcripts_ajax.py | 8 +-- conf/locale/ar/LC_MESSAGES/django.po | 34 +++++------ conf/locale/ca/LC_MESSAGES/django.po | 34 +++++------ conf/locale/de_DE/LC_MESSAGES/django.po | 34 +++++------ conf/locale/el/LC_MESSAGES/django.po | 34 +++++------ conf/locale/en/LC_MESSAGES/django.po | 34 +++++------ conf/locale/eo/LC_MESSAGES/django.po | 34 +++++------ conf/locale/es_419/LC_MESSAGES/django.po | 34 +++++------ conf/locale/eu_ES/LC_MESSAGES/django.po | 34 +++++------ conf/locale/fr/LC_MESSAGES/django.po | 34 +++++------ conf/locale/he/LC_MESSAGES/django.po | 32 +++++----- conf/locale/hi/LC_MESSAGES/django.po | 32 +++++----- conf/locale/id/LC_MESSAGES/django.po | 34 +++++------ conf/locale/it_IT/LC_MESSAGES/django.po | 34 +++++------ conf/locale/ja_JP/LC_MESSAGES/django.po | 34 +++++------ conf/locale/ka/LC_MESSAGES/django.po | 34 +++++------ conf/locale/lt_LT/LC_MESSAGES/django.po | 34 +++++------ conf/locale/lv/LC_MESSAGES/django.po | 34 +++++------ conf/locale/mn/LC_MESSAGES/django.po | 34 +++++------ conf/locale/pl/LC_MESSAGES/django.po | 34 +++++------ conf/locale/pt_BR/LC_MESSAGES/django.po | 32 +++++----- conf/locale/pt_PT/LC_MESSAGES/django.po | 34 +++++------ conf/locale/rtl/LC_MESSAGES/django.po | 34 +++++------ conf/locale/ru/LC_MESSAGES/django.po | 32 +++++----- conf/locale/sk/LC_MESSAGES/django.po | 34 +++++------ conf/locale/sw_KE/LC_MESSAGES/django.po | 34 +++++------ conf/locale/th/LC_MESSAGES/django.po | 34 +++++------ conf/locale/tr_TR/LC_MESSAGES/django.po | 34 +++++------ conf/locale/uk/LC_MESSAGES/django.po | 34 +++++------ conf/locale/vi/LC_MESSAGES/django.po | 34 +++++------ conf/locale/zh_CN/LC_MESSAGES/django.po | 34 +++++------ conf/locale/zh_HANS/LC_MESSAGES/django.po | 34 +++++------ conf/locale/zh_TW/LC_MESSAGES/django.po | 34 +++++------ lms/djangoapps/courseware/block_render.py | 4 +- .../courseware/tests/test_block_render.py | 6 +- .../core/djangoapps/xblock/runtime/runtime.py | 4 +- setup.cfg | 2 +- xmodule/modulestore/django.py | 4 +- xmodule/video_block/video_block.py | 2 +- xmodule/x_module.py | 4 +- 68 files changed, 752 insertions(+), 752 deletions(-) rename cms/djangoapps/contentstore/views/{item.py => block.py} (97%) rename cms/djangoapps/contentstore/views/tests/{test_item.py => test_block.py} (99%) diff --git a/cms/djangoapps/contentstore/course_group_config.py b/cms/djangoapps/contentstore/course_group_config.py index 09036dad13..569a1f72b3 100644 --- a/cms/djangoapps/contentstore/course_group_config.py +++ b/cms/djangoapps/contentstore/course_group_config.py @@ -114,26 +114,26 @@ class GroupConfiguration: raise GroupConfigurationsValidationError(_("unable to load this type of group configuration")) # lint-amnesty, pylint: disable=raise-missing-from @staticmethod - def _get_usage_dict(course, unit, item, scheme_name=None): + def _get_usage_dict(course, unit, block, scheme_name=None): """ - Get usage info for unit/module. + Get usage info for unit/block. """ - parent_unit = get_parent_unit(item) + parent_unit = get_parent_unit(block) - if unit == parent_unit and not item.has_children: + if unit == parent_unit and not block.has_children: # Display the topmost unit page if # the item is a child of the topmost unit and doesn't have its own children. unit_for_url = unit - elif (not parent_unit and unit.get_parent()) or (unit == parent_unit and item.has_children): + elif (not parent_unit and unit.get_parent()) or (unit == parent_unit and block.has_children): # Display the item's page rather than the unit page if # the item is one level below the topmost unit and has children, or # the item itself *is* the topmost unit (and thus does not have a parent unit, but is not an orphan). - unit_for_url = item + unit_for_url = block else: # If the item is nested deeper than two levels (the topmost unit > vertical > ... > item) # display the page for the nested vertical element. - parent = item.get_parent() - nested_vertical = item + parent = block.get_parent() + nested_vertical = block while parent != parent_unit: nested_vertical = parent parent = parent.get_parent() @@ -144,9 +144,9 @@ class GroupConfiguration: course.location.course_key.make_usage_key(unit_for_url.location.block_type, unit_for_url.location.block_id) ) - usage_dict = {'label': f"{unit.display_name} / {item.display_name}", 'url': unit_url} + usage_dict = {'label': f"{unit.display_name} / {block.display_name}", 'url': unit_url} if scheme_name == RANDOM_SCHEME: - validation_summary = item.general_validation_message() + validation_summary = block.general_validation_message() usage_dict.update({'validation': validation_summary.to_json() if validation_summary else None}) return usage_dict @@ -204,7 +204,7 @@ class GroupConfiguration: usage_info[split_test.user_partition_id].append(GroupConfiguration._get_usage_dict( course=course, unit=unit, - item=split_test, + block=split_test, scheme_name=RANDOM_SCHEME, )) return usage_info @@ -233,16 +233,16 @@ class GroupConfiguration: items = store.get_items(course.id, settings={'group_access': {'$exists': True}}, include_orphans=False) usage_info = defaultdict(lambda: defaultdict(list)) - for item, partition_id, group_id in GroupConfiguration._iterate_items_and_group_ids(course, items): - unit = item.get_parent() + for block, partition_id, group_id in GroupConfiguration._iterate_items_and_group_ids(course, items): + unit = block.get_parent() if not unit: - log.warning("Unable to find parent for component %s", item.location) + log.warning("Unable to find parent for component %s", block.location) continue usage_info[partition_id][group_id].append(GroupConfiguration._get_usage_dict( course, unit=unit, - item=item, + block=block, )) return usage_info @@ -280,11 +280,11 @@ class GroupConfiguration: } """ usage_info = defaultdict(lambda: defaultdict(list)) - for item, partition_id, group_id in GroupConfiguration._iterate_items_and_group_ids(course, items): + for block, partition_id, group_id in GroupConfiguration._iterate_items_and_group_ids(course, items): usage_info[partition_id][group_id].append(GroupConfiguration._get_usage_dict( course, - unit=item, - item=item, + unit=block, + block=block, )) return usage_info diff --git a/cms/djangoapps/contentstore/courseware_index.py b/cms/djangoapps/contentstore/courseware_index.py index d21f9b8ffc..dc28774c50 100644 --- a/cms/djangoapps/contentstore/courseware_index.py +++ b/cms/djangoapps/contentstore/courseware_index.py @@ -613,7 +613,7 @@ class CourseAboutSearchIndexer(CoursewareSearchIndexer): 'image_url': course_image_url(course), } - # load data for all of the 'about' modules for this course into a dictionary + # load data for all of the 'about' blocks for this course into a dictionary about_dictionary = { item.location.block_id: item.data for item in modulestore.get_items(course.id, qualifiers={"category": "about"}) diff --git a/cms/djangoapps/contentstore/management/commands/delete_orphans.py b/cms/djangoapps/contentstore/management/commands/delete_orphans.py index a79b362f43..267af09a54 100644 --- a/cms/djangoapps/contentstore/management/commands/delete_orphans.py +++ b/cms/djangoapps/contentstore/management/commands/delete_orphans.py @@ -5,7 +5,7 @@ from django.core.management.base import BaseCommand, CommandError from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey -from cms.djangoapps.contentstore.views.item import _delete_orphans +from cms.djangoapps.contentstore.views.block import _delete_orphans from xmodule.modulestore import ModuleStoreEnum # lint-amnesty, pylint: disable=wrong-import-order diff --git a/cms/djangoapps/contentstore/management/commands/tests/test_delete_orphans.py b/cms/djangoapps/contentstore/management/commands/tests/test_delete_orphans.py index 91a39e7d67..75650d41dc 100644 --- a/cms/djangoapps/contentstore/management/commands/tests/test_delete_orphans.py +++ b/cms/djangoapps/contentstore/management/commands/tests/test_delete_orphans.py @@ -42,7 +42,7 @@ class TestDeleteOrphan(TestOrphanBase): call_command('delete_orphans', str(course.id), '--commit') - # make sure this module wasn't deleted + # make sure this block wasn't deleted self.assertTrue(self.store.has_item(course.id.make_usage_key('html', 'multi_parent_html'))) # and make sure that these were diff --git a/cms/djangoapps/contentstore/signals/handlers.py b/cms/djangoapps/contentstore/signals/handlers.py index 535169f021..5011af10f0 100644 --- a/cms/djangoapps/contentstore/signals/handlers.py +++ b/cms/djangoapps/contentstore/signals/handlers.py @@ -204,12 +204,12 @@ def handle_item_deleted(**kwargs): # Strip branch info usage_key = usage_key.for_branch(None) course_key = usage_key.course_key - deleted_module = modulestore().get_item(usage_key) - for module in yield_dynamic_descriptor_descendants(deleted_module, kwargs.get('user_id')): + deleted_block = modulestore().get_item(usage_key) + for block in yield_dynamic_descriptor_descendants(deleted_block, kwargs.get('user_id')): # Remove prerequisite milestone data - gating_api.remove_prerequisite(module.location) + gating_api.remove_prerequisite(block.location) # Remove any 'requires' course content milestone relationships - gating_api.set_required_content(course_key, module.location, None, None, None) + gating_api.set_required_content(course_key, block.location, None, None, None) @receiver(GRADING_POLICY_CHANGED) diff --git a/cms/djangoapps/contentstore/tasks.py b/cms/djangoapps/contentstore/tasks.py index 5463227a43..d08ac886e2 100644 --- a/cms/djangoapps/contentstore/tasks.py +++ b/cms/djangoapps/contentstore/tasks.py @@ -317,13 +317,13 @@ def export_olx(self, user_id, course_key_string, language): return if isinstance(courselike_key, LibraryLocator): - courselike_module = modulestore().get_library(courselike_key) + courselike_block = modulestore().get_library(courselike_key) else: - courselike_module = modulestore().get_course(courselike_key) + courselike_block = modulestore().get_course(courselike_key) try: self.status.set_state('Exporting') - tarball = create_export_tarball(courselike_module, courselike_key, {}, self.status) + tarball = create_export_tarball(courselike_block, courselike_key, {}, self.status) artifact = UserTaskArtifact(status=self.status, name='Output') artifact.file.save(name=os.path.basename(tarball.name), content=File(tarball)) artifact.save() @@ -541,11 +541,11 @@ def import_olx(self, user_id, course_key_string, archive_path, archive_name, lan is_course = not is_library if is_library: root_name = LIBRARY_ROOT - courselike_module = modulestore().get_library(courselike_key) + courselike_block = modulestore().get_library(courselike_key) import_func = import_library_from_xml else: root_name = COURSE_ROOT - courselike_module = modulestore().get_course(courselike_key) + courselike_block = modulestore().get_course(courselike_key) import_func = import_course_from_xml # Locate the uploaded OLX archive (and download it from S3 if necessary) @@ -581,7 +581,7 @@ def import_olx(self, user_id, course_key_string, archive_path, archive_name, lan # If the course has an entrance exam then remove it and its corresponding milestone. # current course state before import. if is_course: - if courselike_module.entrance_exam_enabled: + if courselike_block.entrance_exam_enabled: fake_request = RequestFactory().get('/') fake_request.user = user from .views.entrance_exam import remove_entrance_exam_milestone_reference diff --git a/cms/djangoapps/contentstore/tests/test_contentstore.py b/cms/djangoapps/contentstore/tests/test_contentstore.py index d67b819aa7..a112e0501b 100644 --- a/cms/djangoapps/contentstore/tests/test_contentstore.py +++ b/cms/djangoapps/contentstore/tests/test_contentstore.py @@ -400,7 +400,7 @@ class ImportRequiredTestCases(ContentStoreTestCase): parent = verticals[0] - # Create a module, and ensure that its `data` field is empty + # Create a block, and ensure that its `data` field is empty word_cloud = BlockFactory.create( parent_location=parent.location, category="word_cloud", display_name="untitled") del word_cloud.data @@ -478,7 +478,7 @@ class ImportRequiredTestCases(ContentStoreTestCase): def test_export_course_no_xml_attributes(self): """ - Test that a module without an `xml_attributes` attr will still be + Test that a block without an `xml_attributes` attr will still be exported successfully """ content_store = contentstore() @@ -732,7 +732,7 @@ class MiscCourseTests(ContentStoreTestCase): def test_draft_metadata(self): """ This verifies a bug we had where inherited metadata was getting written to the - module as 'own-metadata' when publishing. Also verifies the metadata inheritance is + block as 'own-metadata' when publishing. Also verifies the metadata inheritance is properly computed """ # refetch course so it has all the children correct @@ -752,7 +752,7 @@ class MiscCourseTests(ContentStoreTestCase): self.assertEqual(problem.graceperiod, course.graceperiod) self.assertNotIn('graceperiod', own_metadata(problem)) - # publish module + # publish block self.store.publish(problem.location, self.user.id) # refetch to check metadata @@ -831,7 +831,7 @@ class MiscCourseTests(ContentStoreTestCase): def test_module_preview_in_whitelist(self): """ - Tests the ajax callback to render an XModule + Tests the ajax callback to render an XBlock """ with override_settings(COURSES_WITH_UNSAFE_CODE=[str(self.course.id)]): # also try a custom response which will trigger the 'is this course in whitelist' logic @@ -971,7 +971,7 @@ class MiscCourseTests(ContentStoreTestCase): # delete the course self.store.delete_course(self.course.id, self.user.id) - # assert that there's absolutely no non-draft modules in the course + # assert that there's absolutely no non-draft blocks in the course # this should also include all draft items with self.assertRaises(ItemNotFoundError): self.store.get_items(self.course.id) @@ -992,7 +992,7 @@ class MiscCourseTests(ContentStoreTestCase): } ) - # get module info (json) + # get block info (json) resp = self.client.get(get_url('xblock_handler', handouts.location)) # make sure we got a successful response @@ -1386,7 +1386,7 @@ class ContentStoreTest(ContentStoreTestCase): html=True ) - def test_create_item(self): + def test_create_block(self): """Test creating a new xblock instance.""" course = CourseFactory.create() @@ -1493,11 +1493,11 @@ class ContentStoreTest(ContentStoreTestCase): import_course_from_xml(self.store, self.user.id, TEST_DATA_DIR, ['toy'], target_id=target_id) - modules = self.store.get_items(target_id) + blocks = self.store.get_items(target_id) - # we should have a number of modules in there + # we should have a number of blocks in there # we can't specify an exact number since it'll always be changing - self.assertGreater(len(modules), 10) + self.assertGreater(len(blocks), 10) # # test various re-namespacing elements @@ -1602,7 +1602,7 @@ class ContentStoreTest(ContentStoreTestCase): self.assertGreater(len(verticals), 0) - # crate a new module and add it as a child to a vertical + # crate a new block and add it as a child to a vertical parent = verticals[0] new_block = self.store.create_child( self.user.id, parent.location, 'html', 'new_component' @@ -1743,13 +1743,13 @@ class MetadataSaveTestCase(ContentStoreTestCase): self.assertNotIn('html5_sources', own_metadata(self.video_descriptor)) self.store.update_item(self.video_descriptor, self.user.id) - module = self.store.get_item(location) + block = self.store.get_item(location) - self.assertNotIn('html5_sources', own_metadata(module)) + self.assertNotIn('html5_sources', own_metadata(block)) def test_metadata_persistence(self): # TODO: create the same test as `test_metadata_not_persistence`, - # but check persistence for some other module. + # but check persistence for some other block. pass diff --git a/cms/djangoapps/contentstore/tests/test_courseware_index.py b/cms/djangoapps/contentstore/tests/test_courseware_index.py index 429b3cd316..7d7a0d533b 100644 --- a/cms/djangoapps/contentstore/tests/test_courseware_index.py +++ b/cms/djangoapps/contentstore/tests/test_courseware_index.py @@ -206,7 +206,7 @@ class TestCoursewareSearchIndexer(MixedWithOptionsTestCase): def _test_indexing_course(self, store): """ indexing course tests """ - # Only published modules should be in the index + # Only published blocks should be in the index added_to_index = self.reindex_course(store) # This reindex may not be necessary (it may already be indexed) self.assertEqual(added_to_index, 3) response = self.search() @@ -1164,7 +1164,7 @@ class GroupConfigurationSearchSplit(CourseTestCase, MixedWithOptionsTestCase): Indexing course with content groups added test. """ - # Only published modules should be in the index + # Only published blocks should be in the index added_to_index = self.reindex_course(self.store) self.assertEqual(added_to_index, 16) response = self.searcher.search(field_dictionary={"course": str(self.course.id)}) diff --git a/cms/djangoapps/contentstore/tests/test_i18n.py b/cms/djangoapps/contentstore/tests/test_i18n.py index 5bcb10834d..ebd5616b9d 100644 --- a/cms/djangoapps/contentstore/tests/test_i18n.py +++ b/cms/djangoapps/contentstore/tests/test_i18n.py @@ -1,5 +1,5 @@ """ -Tests for validate Internationalization and Module i18n service. +Tests for validate Internationalization and XBlock i18n service. """ @@ -9,7 +9,7 @@ from unittest import mock, skip from django.utils import translation from django.utils.translation import get_language from xblock.core import XBlock -from xmodule.modulestore.django import ModuleI18nService +from xmodule.modulestore.django import XBlockI18nService from xmodule.modulestore.tests.django_utils import TEST_DATA_SPLIT_MODULESTORE, ModuleStoreTestCase from xmodule.modulestore.tests.factories import CourseFactory, BlockFactory from xmodule.tests.test_export import PureXBlock @@ -20,7 +20,7 @@ from common.djangoapps.student.tests.factories import UserFactory from openedx.core.lib.edx_six import get_gettext -class FakeTranslations(ModuleI18nService): +class FakeTranslations(XBlockI18nService): """A test GNUTranslations class that takes a map of msg -> translations.""" def __init__(self, translations): # pylint: disable=super-init-not-called @@ -57,8 +57,8 @@ class FakeTranslations(ModuleI18nService): return _translation -class TestModuleI18nService(ModuleStoreTestCase): - """ Test ModuleI18nService """ +class TestXBlockI18nService(ModuleStoreTestCase): + """ Test XBlockI18nService """ MODULESTORE = TEST_DATA_SPLIT_MODULESTORE @XBlock.register_temp_plugin(PureXBlock, 'pure') @@ -77,13 +77,13 @@ class TestModuleI18nService(ModuleStoreTestCase): ) self.addCleanup(translation.deactivate) - def get_module_i18n_service(self, descriptor): + def get_block_i18n_service(self, descriptor): """ - return the module i18n service. + return the block i18n service. """ i18n_service = self.runtime.service(descriptor, 'i18n') self.assertIsNotNone(i18n_service) - self.assertIsInstance(i18n_service, ModuleI18nService) + self.assertIsInstance(i18n_service, XBlockI18nService) return i18n_service def test_django_service_translation_works(self): @@ -113,7 +113,7 @@ class TestModuleI18nService(ModuleStoreTestCase): self.module.ugettext = self.old_ugettext self.module.gettext = self.old_ugettext - i18n_service = self.get_module_i18n_service(self.descriptor) + i18n_service = self.get_block_i18n_service(self.descriptor) # Activate french, so that if the fr files haven't been loaded, they will be loaded now. with translation.override("fr"): @@ -132,7 +132,7 @@ class TestModuleI18nService(ModuleStoreTestCase): """ Test: Django default translator should in use if we have an empty block """ - i18n_service = ModuleI18nService(None) + i18n_service = XBlockI18nService(None) self.assertEqual(i18n_service.ugettext(self.test_language), 'XYZ-TEST-LANGUAGE') @mock.patch('django.utils.translation.ugettext', mock.Mock(return_value='XYZ-TEST-LANGUAGE')) @@ -150,13 +150,13 @@ class TestModuleI18nService(ModuleStoreTestCase): translation.activate("es") with mock.patch('gettext.translation', return_value=_translator(domain='text', localedir=localedir, languages=[get_language()])): - i18n_service = self.get_module_i18n_service(self.descriptor) + i18n_service = self.get_block_i18n_service(self.descriptor) self.assertEqual(i18n_service.ugettext('Hello'), 'es-hello-world') translation.activate("ar") with mock.patch('gettext.translation', return_value=_translator(domain='text', localedir=localedir, languages=[get_language()])): - i18n_service = self.get_module_i18n_service(self.descriptor) + i18n_service = self.get_block_i18n_service(self.descriptor) self.assertEqual(get_gettext(i18n_service)('Hello'), 'Hello') self.assertNotEqual(get_gettext(i18n_service)('Hello'), 'fr-hello-world') self.assertNotEqual(get_gettext(i18n_service)('Hello'), 'es-hello-world') @@ -164,7 +164,7 @@ class TestModuleI18nService(ModuleStoreTestCase): translation.activate("fr") with mock.patch('gettext.translation', return_value=_translator(domain='text', localedir=localedir, languages=[get_language()])): - i18n_service = self.get_module_i18n_service(self.descriptor) + i18n_service = self.get_block_i18n_service(self.descriptor) self.assertEqual(i18n_service.ugettext('Hello'), 'fr-hello-world') def test_i18n_service_callable(self): diff --git a/cms/djangoapps/contentstore/tests/test_libraries.py b/cms/djangoapps/contentstore/tests/test_libraries.py index 22563ec753..3e850e4794 100644 --- a/cms/djangoapps/contentstore/tests/test_libraries.py +++ b/cms/djangoapps/contentstore/tests/test_libraries.py @@ -16,8 +16,8 @@ from xmodule.x_module import STUDIO_VIEW from cms.djangoapps.contentstore.tests.utils import AjaxEnabledTestClient, parse_json from cms.djangoapps.contentstore.utils import reverse_library_url, reverse_url, reverse_usage_url -from cms.djangoapps.contentstore.views.item import _duplicate_item -from cms.djangoapps.contentstore.views.preview import _load_preview_module +from cms.djangoapps.contentstore.views.block import _duplicate_block +from cms.djangoapps.contentstore.views.preview import _load_preview_block from cms.djangoapps.contentstore.views.tests.test_library import LIBRARY_REST_URL from cms.djangoapps.course_creators.views import add_user_with_status_granted from common.djangoapps.student import auth @@ -50,7 +50,7 @@ class LibraryTestCase(ModuleStoreTestCase): self.lib_key = self._create_library() self.library = modulestore().get_library(self.lib_key) - self.session_data = {} # Used by _bind_module + self.session_data = {} # Used by _bind_block def _login_as_staff_user(self, logout_first=True): """ Login as a staff user """ @@ -114,7 +114,7 @@ class LibraryTestCase(ModuleStoreTestCase): self.assertEqual(response.status_code, status_code_expected) return modulestore().get_item(lib_content_block.location) - def _bind_module(self, descriptor, user=None): + def _bind_block(self, descriptor, user=None): """ Helper to use the CMS's module system so we can access student-specific fields. """ @@ -123,9 +123,9 @@ class LibraryTestCase(ModuleStoreTestCase): if user not in self.session_data: self.session_data[user] = {} request = Mock(user=user, session=self.session_data[user]) - _load_preview_module(request, descriptor) + _load_preview_block(request, descriptor) - def _update_item(self, usage_key, metadata): + def _update_block(self, usage_key, metadata): """ Helper method: Uses the REST API to update the fields of an XBlock. This will result in the XBlock's editor_saved() method being called. @@ -178,7 +178,7 @@ class TestLibraries(LibraryTestCase): # chosen for a given student. # In order to be able to call get_child_descriptors(), we must first # call bind_for_student: - self._bind_module(lc_block) + self._bind_block(lc_block) self.assertEqual(len(lc_block.children), num_to_create) self.assertEqual(len(lc_block.get_child_descriptors()), num_expected) @@ -209,7 +209,7 @@ class TestLibraries(LibraryTestCase): return children[0] # Check which child a student will see: - self._bind_module(lc_block) + self._bind_block(lc_block) chosen_child = get_child_of_lc_block(lc_block) chosen_child_defn_id = chosen_child.definition_locator.definition_id lc_block.save() @@ -223,7 +223,7 @@ class TestLibraries(LibraryTestCase): """ for _ in range(6): # Repeat many times b/c blocks are randomized lc_block = modulestore().get_item(lc_block_key) # Reload block from the database - self._bind_module(lc_block) + self._bind_block(lc_block) current_child = get_child_of_lc_block(lc_block) self.assertEqual(current_child.location, chosen_child.location) self.assertEqual(current_child.data, chosen_child.data) @@ -352,7 +352,7 @@ class TestLibraries(LibraryTestCase): self.assertEqual(len(lc_block.children), 1) # Now, change the block settings to have an invalid library key: - resp = self._update_item( + resp = self._update_block( lc_block.location, {"source_library_id": "library-v1:NOT+FOUND"}, ) @@ -395,7 +395,7 @@ class TestLibraries(LibraryTestCase): self.assertEqual(len(lc_block.children), 1) # Now, change the block settings to have an invalid library key: - resp = self._update_item( + resp = self._update_block( lc_block.location, {"source_library_id": str(library2key)}, ) @@ -436,7 +436,7 @@ class TestLibraries(LibraryTestCase): lc_block = self._refresh_children(lc_block) self.assertEqual(len(lc_block.children), 2) - resp = self._update_item( + resp = self._update_block( lc_block.location, {"capa_type": 'optionresponse'}, ) @@ -447,7 +447,7 @@ class TestLibraries(LibraryTestCase): html_block = modulestore().get_item(lc_block.children[0]) self.assertEqual(html_block.display_name, name1) - resp = self._update_item( + resp = self._update_block( lc_block.location, {"capa_type": 'multiplechoiceresponse'}, ) @@ -470,7 +470,7 @@ class TestLibraries(LibraryTestCase): self.assertEqual(len(lc_block.children), 0) # Now, change the block settings to have an invalid library key: - resp = self._update_item( + resp = self._update_block( lc_block.location, {"source_library_id": "library-v1:NOT+FOUND"}, ) @@ -766,7 +766,7 @@ class TestLibraryAccess(LibraryTestCase): # Try updating our library content block: lc_block = self._add_library_content_block(course, self.lib_key) # We must use the CMS's module system in order to get permissions checks. - self._bind_module(lc_block, user=self.non_staff_user) + self._bind_block(lc_block, user=self.non_staff_user) lc_block = self._refresh_children(lc_block, status_code_expected=200 if expected_result else 403) self.assertEqual(len(lc_block.children), 1 if expected_result else 0) @@ -947,7 +947,7 @@ class TestOverrides(LibraryTestCase): if duplicate: # Check that this also works when the RCB is duplicated. self.lc_block = modulestore().get_item( - _duplicate_item(self.course.location, self.lc_block.location, self.user) + _duplicate_block(self.course.location, self.lc_block.location, self.user) ) self.problem_in_course = modulestore().get_item(self.lc_block.children[0]) else: @@ -1006,7 +1006,7 @@ class TestOverrides(LibraryTestCase): # Duplicate self.lc_block: duplicate = store.get_item( - _duplicate_item(self.course.location, self.lc_block.location, self.user) + _duplicate_block(self.course.location, self.lc_block.location, self.user) ) # The duplicate should have identical children to the original: self.assertEqual(len(duplicate.children), 1) diff --git a/cms/djangoapps/contentstore/tests/test_orphan.py b/cms/djangoapps/contentstore/tests/test_orphan.py index 5e5ddbabc0..244eecebf9 100644 --- a/cms/djangoapps/contentstore/tests/test_orphan.py +++ b/cms/djangoapps/contentstore/tests/test_orphan.py @@ -17,11 +17,11 @@ from xmodule.modulestore.tests.factories import CourseFactory, check_mongo_calls class TestOrphanBase(CourseTestCase): """ - Base class for Studio tests that require orphaned modules + Base class for Studio tests that require orphaned blocks """ def create_course_with_orphans(self, default_store): """ - Creates a course with 3 orphan modules, one of which + Creates a course with 3 orphan blocks, one of which has a child that's also in the course tree. """ course = CourseFactory.create(default_store=default_store) @@ -145,7 +145,7 @@ class TestOrphan(TestOrphanBase): \ / html """ - # Get a course with orphan modules + # Get a course with orphan blocks course = self.create_course_with_orphans(ModuleStoreEnum.Type.split) # Fetch the required course components. @@ -194,7 +194,7 @@ class TestOrphan(TestOrphanBase): html """ - # Get a course with orphan modules + # Get a course with orphan blocks course = self.create_course_with_orphans(ModuleStoreEnum.Type.split) orphan_chapter = self.store.get_item(BlockUsageLocator(course.id, 'chapter', 'OrphanChapter')) chapter1 = self.store.get_item(BlockUsageLocator(course.id, 'chapter', 'Chapter1')) diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index 180dc097cf..7791bb6812 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -366,7 +366,7 @@ def reverse_usage_url(handler_name, usage_key, kwargs=None): def get_split_group_display_name(xblock, course): """ - Returns group name if an xblock is found in user partition groups that are suitable for the split_test module. + Returns group name if an xblock is found in user partition groups that are suitable for the split_test block. Arguments: xblock (XBlock): The courseware component. diff --git a/cms/djangoapps/contentstore/views/__init__.py b/cms/djangoapps/contentstore/views/__init__.py index 1263976c7b..ba87c54d38 100644 --- a/cms/djangoapps/contentstore/views/__init__.py +++ b/cms/djangoapps/contentstore/views/__init__.py @@ -9,7 +9,7 @@ from .error import * from .export_git import * from .helpers import * from .import_export import * -from .item import * +from .block import * from .library import * from .preview import * from .public import * diff --git a/cms/djangoapps/contentstore/views/item.py b/cms/djangoapps/contentstore/views/block.py similarity index 97% rename from cms/djangoapps/contentstore/views/item.py rename to cms/djangoapps/contentstore/views/block.py index 244cf52c13..439bed09cf 100644 --- a/cms/djangoapps/contentstore/views/item.py +++ b/cms/djangoapps/contentstore/views/block.py @@ -1,4 +1,4 @@ -"""Views for items (modules).""" +"""Views for blocks.""" import logging from collections import OrderedDict @@ -181,15 +181,15 @@ def xblock_handler(request, usage_key_string=None): if 'application/json' in accept_header: fields = request.GET.get('fields', '').split(',') if 'graderType' in fields: - # right now can't combine output of this w/ output of _get_module_info, but worthy goal + # right now can't combine output of this w/ output of _get_block_info, but worthy goal return JsonResponse(CourseGradingModel.get_section_grader_type(usage_key)) elif 'ancestorInfo' in fields: xblock = _get_xblock(usage_key, request.user) ancestor_info = _create_xblock_ancestor_info(xblock, is_concise=True) return JsonResponse(ancestor_info) - # TODO: pass fields to _get_module_info and only return those + # TODO: pass fields to _get_block_info and only return those with modulestore().bulk_operations(usage_key.course_key): - response = _get_module_info(_get_xblock(usage_key, request.user)) + response = _get_block_info(_get_xblock(usage_key, request.user)) return JsonResponse(response) else: return HttpResponse(status=406) @@ -238,7 +238,7 @@ def xblock_handler(request, usage_key_string=None): status=400 ) - dest_usage_key = _duplicate_item( + dest_usage_key = _duplicate_block( parent_usage_key, duplicate_source_usage_key, request.user, @@ -249,7 +249,7 @@ def xblock_handler(request, usage_key_string=None): 'courseKey': str(dest_usage_key.course_key) }) else: - return _create_item(request) + return _create_block(request) elif request.method == 'PATCH': if 'move_source_locator' in request.json: move_source_usage_key = usage_key_with_run(request.json.get('move_source_locator')) @@ -503,7 +503,7 @@ def xblock_container_handler(request, usage_key_string): response_format = request.GET.get('format', 'html') if response_format == 'json' or 'application/json' in request.META.get('HTTP_ACCEPT', 'application/json'): with modulestore().bulk_operations(usage_key.course_key): - response = _get_module_info( + response = _get_block_info( _get_xblock(usage_key, request.user), include_ancestor_info=True, include_publishing_info=True ) return JsonResponse(response) @@ -701,13 +701,13 @@ def create_item(request): """ Exposes internal helper method without breaking existing bindings/dependencies """ - return _create_item(request) + return _create_block(request) @login_required @expect_json -def _create_item(request): - """View for create items.""" +def _create_block(request): + """View for create blocks.""" parent_locator = request.json['parent_locator'] usage_key = usage_key_with_run(parent_locator) if not has_studio_write_access(request.user, usage_key.course_key): @@ -875,7 +875,7 @@ def _move_item(source_usage_key, target_parent_usage_key, user, target_index=Non return JsonResponse(context) -def _duplicate_item(parent_usage_key, duplicate_source_usage_key, user, display_name=None, is_child=False): +def _duplicate_block(parent_usage_key, duplicate_source_usage_key, user, display_name=None, is_child=False): """ Duplicate an existing xblock as a child of the supplied parent_usage_key. """ @@ -917,7 +917,7 @@ def _duplicate_item(parent_usage_key, duplicate_source_usage_key, user, display_ if field.scope not in (Scope.settings, Scope.content,): field.delete_from(aside) - dest_module = store.create_item( + dest_block = store.create_item( user.id, dest_usage_key.course_key, dest_usage_key.block_type, @@ -930,22 +930,22 @@ def _duplicate_item(parent_usage_key, duplicate_source_usage_key, user, display_ children_handled = False - if hasattr(dest_module, 'studio_post_duplicate'): + if hasattr(dest_block, 'studio_post_duplicate'): # Allow an XBlock to do anything fancy it may need to when duplicated from another block. # These blocks may handle their own children or parenting if needed. Let them return booleans to # let us know if we need to handle these or not. - dest_module.xmodule_runtime = StudioEditModuleRuntime(user) - children_handled = dest_module.studio_post_duplicate(store, source_item) + dest_block.xmodule_runtime = StudioEditModuleRuntime(user) + children_handled = dest_block.studio_post_duplicate(store, source_item) # Children are not automatically copied over (and not all xblocks have a 'children' attribute). # Because DAGs are not fully supported, we need to actually duplicate each child as well. if source_item.has_children and not children_handled: - dest_module.children = dest_module.children or [] + dest_block.children = dest_block.children or [] for child in source_item.children: - dupe = _duplicate_item(dest_module.location, child, user=user, is_child=True) - if dupe not in dest_module.children: # _duplicate_item may add the child for us. - dest_module.children.append(dupe) - store.update_item(dest_module, user.id) + dupe = _duplicate_block(dest_block.location, child, user=user, is_child=True) + if dupe not in dest_block.children: # _duplicate_block may add the child for us. + dest_block.children.append(dupe) + store.update_item(dest_block, user.id) # pylint: disable=protected-access if 'detached' not in source_item.runtime.load_block_type(category)._class_tags: @@ -954,12 +954,12 @@ def _duplicate_item(parent_usage_key, duplicate_source_usage_key, user, display_ # Otherwise, add child to end. if source_item.location in parent.children: source_index = parent.children.index(source_item.location) - parent.children.insert(source_index + 1, dest_module.location) + parent.children.insert(source_index + 1, dest_block.location) else: - parent.children.append(dest_module.location) + parent.children.append(dest_block.location) store.update_item(parent, user.id) - return dest_module.location + return dest_block.location @login_required @@ -1024,17 +1024,17 @@ def _delete_orphans(course_usage_key, user_id, commit=False): the orphans. """ store = modulestore() - items = store.get_orphans(course_usage_key) + blocks = store.get_orphans(course_usage_key) branch = course_usage_key.branch if commit: with store.bulk_operations(course_usage_key): - for itemloc in items: + for blockloc in blocks: revision = ModuleStoreEnum.RevisionOption.all # specify branches when deleting orphans if branch == ModuleStoreEnum.BranchName.published: revision = ModuleStoreEnum.RevisionOption.published_only - store.delete_item(itemloc, user_id, revision=revision) - return [str(item) for item in items] + store.delete_item(blockloc, user_id, revision=revision) + return [str(block) for block in blocks] def _get_xblock(usage_key, user): @@ -1061,9 +1061,9 @@ def _get_xblock(usage_key, user): return JsonResponse({"error": "Can't find item by location: " + str(usage_key)}, 404) -def _get_module_info(xblock, rewrite_static_links=True, include_ancestor_info=False, include_publishing_info=False): +def _get_block_info(xblock, rewrite_static_links=True, include_ancestor_info=False, include_publishing_info=False): """ - metadata, data, id representation of a leaf module fetcher. + metadata, data, id representation of a leaf block fetcher. :param usage_key: A UsageKey """ with modulestore().bulk_operations(xblock.location.course_key): diff --git a/cms/djangoapps/contentstore/views/component.py b/cms/djangoapps/contentstore/views/component.py index 9b86350ed2..124c12df78 100644 --- a/cms/djangoapps/contentstore/views/component.py +++ b/cms/djangoapps/contentstore/views/component.py @@ -32,7 +32,7 @@ from xmodule.modulestore.exceptions import ItemNotFoundError # lint-amnesty, py from ..utils import get_lms_link_for_item, get_sibling_urls, reverse_course_url from .helpers import get_parent_xblock, is_unit, xblock_type_display_name -from .item import StudioEditModuleRuntime, add_container_page_publishing_info, create_xblock_info +from .block import StudioEditModuleRuntime, add_container_page_publishing_info, create_xblock_info __all__ = [ 'container_handler', @@ -546,7 +546,7 @@ def component_handler(request, usage_key_string, handler, suffix=''): """ usage_key = UsageKey.from_string(usage_key_string) - # Let the module handle the AJAX + # Let the block handle the AJAX req = django_to_webob_request(request) try: diff --git a/cms/djangoapps/contentstore/views/course.py b/cms/djangoapps/contentstore/views/course.py index cd4e986869..943dd58060 100644 --- a/cms/djangoapps/contentstore/views/course.py +++ b/cms/djangoapps/contentstore/views/course.py @@ -108,7 +108,7 @@ from ..utils import ( from .component import ADVANCED_COMPONENT_TYPES from .helpers import is_content_creator from .entrance_exam import create_entrance_exam, delete_entrance_exam, update_entrance_exam -from .item import create_xblock_info +from .block import create_xblock_info from .library import ( LIBRARIES_ENABLED, LIBRARY_AUTHORING_MICROFRONTEND_URL, @@ -254,7 +254,7 @@ def course_handler(request, course_key_string=None): """ The restful handler for course specific requests. It provides the course tree with the necessary information for identifying and labeling the parts. The root - will typically be a 'course' object but may not be especially as we support modules. + will typically be a 'course' object but may not be especially as we support blocks. GET html: return course listing page if not given a course id diff --git a/cms/djangoapps/contentstore/views/entrance_exam.py b/cms/djangoapps/contentstore/views/entrance_exam.py index d47b1274b5..63917d17f6 100644 --- a/cms/djangoapps/contentstore/views/entrance_exam.py +++ b/cms/djangoapps/contentstore/views/entrance_exam.py @@ -1,5 +1,5 @@ """ -Entrance Exams view module -- handles all requests related to entrance exam management via Studio +Entrance Exams view block -- handles all requests related to entrance exam management via Studio Intended to be utilized as an AJAX callback handler, versus a proper view/screen """ @@ -24,7 +24,7 @@ from xmodule.modulestore.django import modulestore # lint-amnesty, pylint: disa from xmodule.modulestore.exceptions import ItemNotFoundError # lint-amnesty, pylint: disable=wrong-import-order from .helpers import create_xblock, remove_entrance_exam_graders -from .item import delete_item +from .block import delete_item __all__ = ['entrance_exam', ] @@ -64,9 +64,9 @@ def entrance_exam(request, course_key_string): deleting assets, and changing the "locked" state of an asset. GET - Retrieves the entrance exam module (metadata) for the specified course + Retrieves the entrance exam block (metadata) for the specified course POST - Adds an entrance exam module to the specified course. + Adds an entrance exam block to the specified course. DELETE Removes the entrance exam from the course """ @@ -76,7 +76,7 @@ def entrance_exam(request, course_key_string): if not has_course_author_access(request.user, course_key): return HttpResponse(status=403) - # Retrieve the entrance exam module for the specified course (returns 404 if none found) + # Retrieve the entrance exam block for the specified course (returns 404 if none found) if request.method == 'GET': return _get_entrance_exam(request, course_key) @@ -94,7 +94,7 @@ def entrance_exam(request, course_key_string): return create_entrance_exam(request, course_key, entrance_exam_minimum_score_pct) return HttpResponse(status=400) - # Remove the entrance exam module for the specified course (returns 204 regardless of existence) + # Remove the entrance exam block for the specified course (returns 204 regardless of existence) elif request.method == 'DELETE': return delete_entrance_exam(request, course_key) diff --git a/cms/djangoapps/contentstore/views/helpers.py b/cms/djangoapps/contentstore/views/helpers.py index 019f32716b..398f0f6c63 100644 --- a/cms/djangoapps/contentstore/views/helpers.py +++ b/cms/djangoapps/contentstore/views/helpers.py @@ -200,7 +200,7 @@ def create_xblock(parent_locator, user, category, display_name, boilerplate=None if display_name is not None: metadata['display_name'] = display_name - # We should use the 'fields' kwarg for newer module settings/values (vs. metadata or data) + # We should use the 'fields' kwarg for newer block settings/values (vs. metadata or data) fields = {} # Entrance Exams: Chapter module positioning diff --git a/cms/djangoapps/contentstore/views/import_export.py b/cms/djangoapps/contentstore/views/import_export.py index b56d19d595..f80e0146f5 100644 --- a/cms/djangoapps/contentstore/views/import_export.py +++ b/cms/djangoapps/contentstore/views/import_export.py @@ -76,11 +76,11 @@ def import_handler(request, course_key_string): if library: successful_url = reverse_library_url('library_handler', courselike_key) context_name = 'context_library' - courselike_module = modulestore().get_library(courselike_key) + courselike_block = modulestore().get_library(courselike_key) else: successful_url = reverse_course_url('course_handler', courselike_key) context_name = 'context_course' - courselike_module = modulestore().get_course(courselike_key) + courselike_block = modulestore().get_course(courselike_key) if not has_course_author_access(request.user, courselike_key): raise PermissionDenied() @@ -94,7 +94,7 @@ def import_handler(request, course_key_string): "import_status_handler", courselike_key, kwargs={'filename': "fillerName"} ) return render_to_response('import.html', { - context_name: courselike_module, + context_name: courselike_block, 'successful_import_redirect_url': successful_url, 'import_status_url': status_url, 'library': isinstance(courselike_key, LibraryLocator) @@ -313,18 +313,18 @@ def export_handler(request, course_key_string): raise PermissionDenied() if isinstance(course_key, LibraryLocator): - courselike_module = modulestore().get_library(course_key) + courselike_block = modulestore().get_library(course_key) context = { - 'context_library': courselike_module, + 'context_library': courselike_block, 'courselike_home_url': reverse_library_url("library_handler", course_key), 'library': True } else: - courselike_module = modulestore().get_course(course_key) - if courselike_module is None: + courselike_block = modulestore().get_course(course_key) + if courselike_block is None: raise Http404 context = { - 'context_course': courselike_module, + 'context_course': courselike_block, 'courselike_home_url': reverse_course_url("course_handler", course_key), 'library': False } diff --git a/cms/djangoapps/contentstore/views/library.py b/cms/djangoapps/contentstore/views/library.py index b58ea54ccc..8ec1e79d19 100644 --- a/cms/djangoapps/contentstore/views/library.py +++ b/cms/djangoapps/contentstore/views/library.py @@ -43,7 +43,7 @@ from ..config.waffle import REDIRECT_TO_LIBRARY_AUTHORING_MICROFRONTEND from ..utils import add_instructor, reverse_library_url from .component import CONTAINER_TEMPLATES, get_component_templates from .helpers import is_content_creator -from .item import create_xblock_info +from .block import create_xblock_info from .user import user_with_role __all__ = ['library_handler', 'manage_library_users'] diff --git a/cms/djangoapps/contentstore/views/preview.py b/cms/djangoapps/contentstore/views/preview.py index 5ba1a883cf..b3297d86c7 100644 --- a/cms/djangoapps/contentstore/views/preview.py +++ b/cms/djangoapps/contentstore/views/preview.py @@ -18,7 +18,7 @@ from xblock.runtime import KvsFieldData from xmodule.contentstore.django import contentstore from xmodule.exceptions import NotFoundError, ProcessingError -from xmodule.modulestore.django import ModuleI18nService, modulestore +from xmodule.modulestore.django import XBlockI18nService, modulestore from xmodule.partitions.partitions_service import PartitionService from xmodule.services import SettingsService, TeamsConfigurationService from xmodule.studio_editable import has_author_view @@ -67,7 +67,7 @@ def preview_handler(request, usage_key_string, handler, suffix=''): usage_key = UsageKey.from_string(usage_key_string) descriptor = modulestore().get_item(usage_key) - instance = _load_preview_module(request, descriptor) + instance = _load_preview_block(request, descriptor) # Let the module handle the AJAX req = django_to_webob_request(request) @@ -98,7 +98,7 @@ class PreviewModuleSystem(ModuleSystem): # pylint: disable=abstract-method """ An XModule ModuleSystem for use in Studio previews """ - # xmodules can check for this attribute during rendering to determine if + # xblocks can check for this attribute during rendering to determine if # they are being rendered for preview (i.e. in Studio) is_author_mode = True @@ -154,7 +154,7 @@ class PreviewModuleSystem(ModuleSystem): # pylint: disable=abstract-method def _preview_module_system(request, descriptor, field_data): """ Returns a ModuleSystem for the specified descriptor that is specialized for - rendering module previews. + rendering block previews. request: The active django request descriptor: An XModuleDescriptor @@ -166,7 +166,7 @@ def _preview_module_system(request, descriptor, field_data): replace_url_service = ReplaceURLService(course_id=course_id) wrappers = [ - # This wrapper wraps the module in the template specified above + # This wrapper wraps the block in the template specified above partial( wrap_xblock, 'PreviewRuntime', @@ -207,7 +207,7 @@ def _preview_module_system(request, descriptor, field_data): preview_anonymous_user_id = anonymous_id_for_user(request.user, course_id) return PreviewModuleSystem( - get_block=partial(_load_preview_module, request), + get_block=partial(_load_preview_block, request), mixins=settings.XBLOCK_MIXINS, # Set up functions to modify the fragment produced by student_view @@ -217,7 +217,7 @@ def _preview_module_system(request, descriptor, field_data): descriptor_runtime=descriptor._runtime, # pylint: disable=protected-access services={ "field-data": field_data, - "i18n": ModuleI18nService, + "i18n": XBlockI18nService, 'mako': mako_service, "settings": SettingsService(), "user": DjangoXBlockUserService( @@ -247,10 +247,10 @@ class StudioPartitionService(PartitionService): return None -def _load_preview_module(request, descriptor): +def _load_preview_block(request, descriptor): """ - Return a preview XModule instantiated from the supplied descriptor. Will use mutable fields - if XModule supports an author_view. Otherwise, will use immutable fields and student_view. + Return a preview XBlock instantiated from the supplied descriptor. Will use mutable fields + if XBlock supports an author_view. Otherwise, will use immutable fields and student_view. request: The active django request descriptor: An XModuleDescriptor @@ -325,13 +325,13 @@ def get_preview_fragment(request, descriptor, context): Returns the HTML returned by the XModule's student_view or author_view (if available), specified by the descriptor and idx. """ - module = _load_preview_module(request, descriptor) + block = _load_preview_block(request, descriptor) - preview_view = AUTHOR_VIEW if has_author_view(module) else STUDENT_VIEW + preview_view = AUTHOR_VIEW if has_author_view(block) else STUDENT_VIEW try: - fragment = module.render(preview_view, context) + fragment = block.render(preview_view, context) except Exception as exc: # pylint: disable=broad-except - log.warning("Unable to render %s for %r", preview_view, module, exc_info=True) + log.warning("Unable to render %s for %r", preview_view, block, exc_info=True) fragment = Fragment(render_to_string('html_error.html', {'message': str(exc)})) return fragment diff --git a/cms/djangoapps/contentstore/views/tests/test_item.py b/cms/djangoapps/contentstore/views/tests/test_block.py similarity index 99% rename from cms/djangoapps/contentstore/views/tests/test_item.py rename to cms/djangoapps/contentstore/views/tests/test_block.py index 7b41317463..9ebc7e554b 100644 --- a/cms/djangoapps/contentstore/views/tests/test_item.py +++ b/cms/djangoapps/contentstore/views/tests/test_block.py @@ -1,4 +1,4 @@ -"""Tests for items views.""" +"""Tests for block views.""" import json @@ -45,7 +45,7 @@ from xmodule.x_module import STUDENT_VIEW, STUDIO_VIEW from cms.djangoapps.contentstore.tests.utils import CourseTestCase from cms.djangoapps.contentstore.utils import reverse_course_url, reverse_usage_url -from cms.djangoapps.contentstore.views import item as item_module +from cms.djangoapps.contentstore.views import block as item_module from common.djangoapps.student.tests.factories import StaffFactory, UserFactory from common.djangoapps.xblock_django.models import ( XBlockConfiguration, @@ -57,10 +57,10 @@ from lms.djangoapps.lms_xblock.mixin import NONSENSICAL_ACCESS_RESTRICTION from openedx.core.djangoapps.discussions.models import DiscussionsConfiguration from ..component import component_handler, get_component_templates -from ..item import ( +from ..block import ( ALWAYS, VisibilityState, - _get_module_info, + _get_block_info, _get_source_index, _xblock_type_and_display_name, add_container_page_publishing_info, @@ -238,7 +238,7 @@ class GetItemTest(ItemTest): def test_split_test(self): """ - Test that a split_test module renders all of its children in Studio. + Test that a split_test block renders all of its children in Studio. """ root_usage_key = self._create_vertical() resp = self.create_xblock(category='split_test', parent_usage_key=root_usage_key) @@ -305,7 +305,7 @@ class GetItemTest(ItemTest): """ Tests that valid paging is passed along to underlying block """ - with patch('cms.djangoapps.contentstore.views.item.get_preview_fragment') as patched_get_preview_fragment: + with patch('cms.djangoapps.contentstore.views.block.get_preview_fragment') as patched_get_preview_fragment: retval = Mock() type(retval).content = PropertyMock(return_value="Some content") type(retval).resources = PropertyMock(return_value=[]) @@ -447,7 +447,7 @@ class GetItemTest(ItemTest): xblock = parent_xblock else: self.assertNotIn('ancestors', response) - self.assertEqual(_get_module_info(xblock), response) + self.assertEqual(_get_block_info(xblock), response) @ddt.ddt @@ -510,7 +510,7 @@ class TestCreateItem(ItemTest): self.assertEqual(problem.display_name, template['metadata']['display_name']) self.assertEqual(problem.markdown, template['metadata']['markdown']) - def test_create_item_negative(self): + def test_create_block_negative(self): """ Negative tests for create_item """ @@ -1208,7 +1208,7 @@ class TestMoveItem(ItemTest): validation = html.validate() self.assertEqual(len(validation.messages), 0) - @patch('cms.djangoapps.contentstore.views.item.log') + @patch('cms.djangoapps.contentstore.views.block.log') def test_move_logging(self, mock_logger): """ Test logging when an item is successfully moved. @@ -1886,7 +1886,7 @@ class TestEditItemSplitMongo(TestEditItemSetup): class TestEditSplitModule(ItemTest): """ - Tests around editing instances of the split_test module. + Tests around editing instances of the split_test block. """ def setUp(self): @@ -1935,7 +1935,7 @@ class TestEditSplitModule(ItemTest): self.client.ajax_post( self.split_test_update_url, # Even though user_partition_id is Scope.content, it will get saved by the Studio editor as - # metadata. The code in item.py will update the field correctly, even though it is not the + # metadata. The code in block.py will update the field correctly, even though it is not the # expected scope. data={'metadata': {'user_partition_id': str(partition_id)}} ) @@ -1956,7 +1956,7 @@ class TestEditSplitModule(ItemTest): def test_create_groups(self): """ Test that verticals are created for the configuration groups when - a spit test module is edited. + a spit test block is edited. """ split_test = self.get_item_from_modulestore(self.split_test_usage_key, verify_is_draft=True) # Initially, no user_partition_id is set, and the split_test has no children. @@ -3052,7 +3052,7 @@ class TestLibraryXBlockCreation(ItemTest): def test_no_add_discussion(self): """ - Verify we cannot add a discussion module to a Library. + Verify we cannot add a discussion block to a Library. """ lib = LibraryFactory.create() response = self.create_xblock(parent_usage_key=lib.location, display_name='Test', category='discussion') diff --git a/cms/djangoapps/contentstore/views/tests/test_container_page.py b/cms/djangoapps/contentstore/views/tests/test_container_page.py index 1759a95962..986d2c4485 100644 --- a/cms/djangoapps/contentstore/views/tests/test_container_page.py +++ b/cms/djangoapps/contentstore/views/tests/test_container_page.py @@ -31,25 +31,25 @@ class ContainerPageTestCase(StudioPageTestCase, LibraryTestCase): def setUp(self): super().setUp() - self.vertical = self._create_item(self.sequential.location, 'vertical', 'Unit') - self.html = self._create_item(self.vertical.location, "html", "HTML") - self.child_container = self._create_item(self.vertical.location, 'split_test', 'Split Test') - self.child_vertical = self._create_item(self.child_container.location, 'vertical', 'Child Vertical') - self.video = self._create_item(self.child_vertical.location, "video", "My Video") + self.vertical = self._create_block(self.sequential.location, 'vertical', 'Unit') + self.html = self._create_block(self.vertical.location, "html", "HTML") + self.child_container = self._create_block(self.vertical.location, 'split_test', 'Split Test') + self.child_vertical = self._create_block(self.child_container.location, 'vertical', 'Child Vertical') + self.video = self._create_block(self.child_vertical.location, "video", "My Video") self.store = modulestore() past = datetime.datetime(1970, 1, 1, tzinfo=UTC) future = datetime.datetime.now(UTC) + datetime.timedelta(days=1) - self.released_private_vertical = self._create_item( + self.released_private_vertical = self._create_block( parent_location=self.sequential.location, category='vertical', display_name='Released Private Unit', start=past) - self.unreleased_private_vertical = self._create_item( + self.unreleased_private_vertical = self._create_block( parent_location=self.sequential.location, category='vertical', display_name='Unreleased Private Unit', start=future) - self.released_public_vertical = self._create_item( + self.released_public_vertical = self._create_block( parent_location=self.sequential.location, category='vertical', display_name='Released Public Unit', start=past) - self.unreleased_public_vertical = self._create_item( + self.unreleased_public_vertical = self._create_block( parent_location=self.sequential.location, category='vertical', display_name='Unreleased Public Unit', start=future) self.store.publish(self.unreleased_public_vertical.location, self.user.id) @@ -81,8 +81,8 @@ class ContainerPageTestCase(StudioPageTestCase, LibraryTestCase): Create the scenario of an xblock with children (non-vertical) on the container page. This should create a container page that is a child of another container page. """ - draft_container = self._create_item(self.child_container.location, "wrapper", "Wrapper") - self._create_item(draft_container.location, "html", "Child HTML") + draft_container = self._create_block(self.child_container.location, "wrapper", "Wrapper") + self._create_block(draft_container.location, "html", "Child HTML") def test_container_html(xblock): self._test_html_content( @@ -177,9 +177,9 @@ class ContainerPageTestCase(StudioPageTestCase, LibraryTestCase): self.validate_preview_html(self.child_container, self.container_view) self.validate_preview_html(self.child_vertical, self.reorderable_child_view) - def _create_item(self, parent_location, category, display_name, **kwargs): + def _create_block(self, parent_location, category, display_name, **kwargs): """ - creates an item in the module store, without publishing it. + creates a block in the module store, without publishing it. """ return BlockFactory.create( parent_location=parent_location, @@ -194,7 +194,7 @@ class ContainerPageTestCase(StudioPageTestCase, LibraryTestCase): """ Verify that a public container rendered as a child of the container page returns the expected HTML. """ - empty_child_container = self._create_item(self.vertical.location, 'split_test', 'Split Test') + empty_child_container = self._create_block(self.vertical.location, 'split_test', 'Split Test') published_empty_child_container = self.store.publish(empty_child_container.location, self.user.id) self.validate_preview_html(published_empty_child_container, self.reorderable_child_view, can_add=False) @@ -202,7 +202,7 @@ class ContainerPageTestCase(StudioPageTestCase, LibraryTestCase): """ Verify that a draft container rendered as a child of the container page returns the expected HTML. """ - empty_child_container = self._create_item(self.vertical.location, 'split_test', 'Split Test') + empty_child_container = self._create_block(self.vertical.location, 'split_test', 'Split Test') self.validate_preview_html(empty_child_container, self.reorderable_child_view, can_add=False) @patch( diff --git a/cms/djangoapps/contentstore/views/tests/test_course_index.py b/cms/djangoapps/contentstore/views/tests/test_course_index.py index 5bff99d6be..cf9f2a4197 100644 --- a/cms/djangoapps/contentstore/views/tests/test_course_index.py +++ b/cms/djangoapps/contentstore/views/tests/test_course_index.py @@ -39,7 +39,7 @@ from xmodule.modulestore.tests.django_utils import TEST_DATA_SPLIT_MODULESTORE from xmodule.modulestore.tests.factories import CourseFactory, BlockFactory, LibraryFactory, check_mongo_calls # lint-amnesty, pylint: disable=wrong-import-order from ..course import _deprecated_blocks_info, course_outline_initial_state, reindex_course_and_check_access -from ..item import VisibilityState, create_xblock_info +from ..block import VisibilityState, create_xblock_info class TestCourseIndex(CourseTestCase): diff --git a/cms/djangoapps/contentstore/views/tests/test_entrance_exam.py b/cms/djangoapps/contentstore/views/tests/test_entrance_exam.py index 57bbc114f7..2ac8d56c95 100644 --- a/cms/djangoapps/contentstore/views/tests/test_entrance_exam.py +++ b/cms/djangoapps/contentstore/views/tests/test_entrance_exam.py @@ -105,7 +105,7 @@ class EntranceExamHandlerTests(CourseTestCase, MilestonesTestCaseMixin): resp = self.client.get(self.exam_url) self.assertEqual(resp.status_code, 200) - # Reload the test course now that the exam module has been added + # Reload the test course now that the exam block has been added self.course = modulestore().get_course(self.course.id) metadata = CourseMetadata.fetch_all(self.course) self.assertTrue(metadata['entrance_exam_enabled']) @@ -128,10 +128,10 @@ class EntranceExamHandlerTests(CourseTestCase, MilestonesTestCaseMixin): resp = self.client.get(self.exam_url) self.assertEqual(resp.status_code, 200) - # Reload the test course now that the exam module has been added + # Reload the test course now that the exam block has been added self.course = modulestore().get_course(self.course.id) - # Add a new child sequential to the exam module + # Add a new child sequential to the exam block # Confirm that the grader type is 'Entrance Exam' chapter_locator_string = json.loads(resp.content.decode('utf-8')).get('locator') # chapter_locator = UsageKey.from_string(chapter_locator_string) @@ -194,7 +194,7 @@ class EntranceExamHandlerTests(CourseTestCase, MilestonesTestCaseMixin): self.assertEqual(len(paths[milestone_key]), 0) # Re-adding an entrance exam to the course should fix the missing link - # It wipes out any old entrance exam artifacts and inserts a new exam course chapter/module + # It wipes out any old entrance exam artifacts and inserts a new exam course chapter/block resp = self.client.post(self.exam_url, {}, http_accept='application/json') self.assertEqual(resp.status_code, 201) resp = self.client.get(self.exam_url) diff --git a/cms/djangoapps/contentstore/views/tests/test_gating.py b/cms/djangoapps/contentstore/views/tests/test_gating.py index 62ab8aacc0..9f96e57f93 100644 --- a/cms/djangoapps/contentstore/views/tests/test_gating.py +++ b/cms/djangoapps/contentstore/views/tests/test_gating.py @@ -14,7 +14,7 @@ from cms.djangoapps.contentstore.tests.utils import CourseTestCase from cms.djangoapps.contentstore.utils import reverse_usage_url from openedx.core.lib.gating.api import GATING_NAMESPACE_QUALIFIER -from ..item import VisibilityState +from ..block import VisibilityState @ddt.ddt @@ -57,7 +57,7 @@ class TestSubsectionGating(CourseTestCase): ) self.seq2_url = reverse_usage_url('xblock_handler', self.seq2.location) - @patch('cms.djangoapps.contentstore.views.item.gating_api.add_prerequisite') + @patch('cms.djangoapps.contentstore.views.block.gating_api.add_prerequisite') def test_add_prerequisite(self, mock_add_prereq): """ Test adding a subsection as a prerequisite @@ -69,7 +69,7 @@ class TestSubsectionGating(CourseTestCase): ) mock_add_prereq.assert_called_with(self.course.id, self.seq1.location) - @patch('cms.djangoapps.contentstore.views.item.gating_api.remove_prerequisite') + @patch('cms.djangoapps.contentstore.views.block.gating_api.remove_prerequisite') def test_remove_prerequisite(self, mock_remove_prereq): """ Test removing a subsection as a prerequisite @@ -81,7 +81,7 @@ class TestSubsectionGating(CourseTestCase): ) mock_remove_prereq.assert_called_with(self.seq1.location) - @patch('cms.djangoapps.contentstore.views.item.gating_api.set_required_content') + @patch('cms.djangoapps.contentstore.views.block.gating_api.set_required_content') def test_add_gate(self, mock_set_required_content): """ Test adding a gated subsection @@ -100,7 +100,7 @@ class TestSubsectionGating(CourseTestCase): '100' ) - @patch('cms.djangoapps.contentstore.views.item.gating_api.set_required_content') + @patch('cms.djangoapps.contentstore.views.block.gating_api.set_required_content') def test_remove_gate(self, mock_set_required_content): """ Test removing a gated subsection @@ -118,9 +118,9 @@ class TestSubsectionGating(CourseTestCase): '' ) - @patch('cms.djangoapps.contentstore.views.item.gating_api.get_prerequisites') - @patch('cms.djangoapps.contentstore.views.item.gating_api.get_required_content') - @patch('cms.djangoapps.contentstore.views.item.gating_api.is_prerequisite') + @patch('cms.djangoapps.contentstore.views.block.gating_api.get_prerequisites') + @patch('cms.djangoapps.contentstore.views.block.gating_api.get_required_content') + @patch('cms.djangoapps.contentstore.views.block.gating_api.is_prerequisite') @ddt.data( (90, None), (None, 90), diff --git a/cms/djangoapps/contentstore/views/tests/test_import_export.py b/cms/djangoapps/contentstore/views/tests/test_import_export.py index d1cd931b64..7b6a68964e 100644 --- a/cms/djangoapps/contentstore/views/tests/test_import_export.py +++ b/cms/djangoapps/contentstore/views/tests/test_import_export.py @@ -124,7 +124,7 @@ class ImportEntranceExamTestCase(CourseTestCase, MilestonesTestCaseMixin): resp = self.client.post(exam_url, {'entrance_exam_minimum_score_pct': 0.5}, http_accept='application/json') self.assertEqual(resp.status_code, 201) - # Reload the test course now that the exam module has been added + # Reload the test course now that the exam block has been added self.course = modulestore().get_course(self.course.id) metadata = CourseMetadata.fetch_all(self.course) self.assertTrue(metadata['entrance_exam_enabled']) diff --git a/cms/djangoapps/contentstore/views/tests/test_transcripts.py b/cms/djangoapps/contentstore/views/tests/test_transcripts.py index 07b5e52705..56391560e7 100644 --- a/cms/djangoapps/contentstore/views/tests/test_transcripts.py +++ b/cms/djangoapps/contentstore/views/tests/test_transcripts.py @@ -102,7 +102,7 @@ class BaseTranscripts(CourseTestCase): modulestore().update_item(self.item, self.user.id) self.item = modulestore().get_item(self.video_usage_key) - # Remove all transcripts for current module. + # Remove all transcripts for current block. self.clear_subs_content() def _get_usage_key(self, resp): @@ -331,7 +331,7 @@ class TestUploadTranscripts(BaseTranscripts): self.assert_response( response, expected_status_code=400, - expected_message='Transcripts are supported only for "video" modules.' + expected_message='Transcripts are supported only for "video" blocks.' ) def test_transcript_upload_non_existent_item(self): @@ -496,7 +496,7 @@ class TestChooseTranscripts(BaseTranscripts): self.assert_response( response, expected_status_code=400, - expected_message='Transcripts are supported only for "video" modules.' + expected_message='Transcripts are supported only for "video" blocks.' ) @@ -618,7 +618,7 @@ class TestRenameTranscripts(BaseTranscripts): self.assert_response( response, expected_status_code=400, - expected_message='Transcripts are supported only for "video" modules.' + expected_message='Transcripts are supported only for "video" blocks.' ) @@ -753,7 +753,7 @@ class TestReplaceTranscripts(BaseTranscripts): self.assert_response( response, expected_status_code=400, - expected_message='Transcripts are supported only for "video" modules.' + expected_message='Transcripts are supported only for "video" blocks.' ) @@ -1077,7 +1077,7 @@ class TestCheckTranscripts(BaseTranscripts): self.assertEqual(resp.status_code, 400) self.assertEqual( json.loads(resp.content.decode('utf-8')).get('status'), - 'Transcripts are supported only for "video" modules.', + 'Transcripts are supported only for "video" blocks.', ) @patch('xmodule.video_block.transcripts_utils.get_video_transcript_content') diff --git a/cms/djangoapps/contentstore/views/transcripts_ajax.py b/cms/djangoapps/contentstore/views/transcripts_ajax.py index a27ae4a4bf..9c20420996 100644 --- a/cms/djangoapps/contentstore/views/transcripts_ajax.py +++ b/cms/djangoapps/contentstore/views/transcripts_ajax.py @@ -2,7 +2,7 @@ Actions manager for transcripts ajax calls. +++++++++++++++++++++++++++++++++++++++++++ -Module do not support rollback (pressing "Cancel" button in Studio) +Blocks do not support rollback (pressing "Cancel" button in Studio) All user changes are saved immediately. """ @@ -143,7 +143,7 @@ def validate_video_block(request, locator): try: item = _get_item(request, {'locator': locator}) if item.category != 'video': - error = _('Transcripts are supported only for "video" modules.') + error = _('Transcripts are supported only for "video" blocks.') except (InvalidKeyError, ItemNotFoundError): error = _('Cannot find item by locator.') @@ -189,7 +189,7 @@ def validate_transcript_upload_data(request): @login_required def upload_transcripts(request): """ - Upload transcripts for current module. + Upload transcripts for current block. returns: response dict:: @@ -455,7 +455,7 @@ def _validate_transcripts_data(request): raise TranscriptsRequestValidationException(_("Can't find item by locator.")) # lint-amnesty, pylint: disable=raise-missing-from if item.category != 'video': - raise TranscriptsRequestValidationException(_('Transcripts are supported only for "video" modules.')) + raise TranscriptsRequestValidationException(_('Transcripts are supported only for "video" blocks.')) # parse data form request.GET.['data']['video'] to useful format videos = {'youtube': '', 'html5': {}} diff --git a/conf/locale/ar/LC_MESSAGES/django.po b/conf/locale/ar/LC_MESSAGES/django.po index d40a7c8d8c..77ad943598 100644 --- a/conf/locale/ar/LC_MESSAGES/django.po +++ b/conf/locale/ar/LC_MESSAGES/django.po @@ -270,7 +270,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "نصّ" @@ -13127,63 +13127,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "بيانات غير صالحة" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "بيانات غير صالحة ({details}) " -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "لا يمكنك نقل {source_type} إلى {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "العنصر موجود من قبل في الموقع الهدف." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "لا يمكنك نقل عنصر إلى نفسه." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "لا يمكنك نقل عنصر إلى فرعه." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "لا يمكنك نقل عنصر مباشرة إلى تجربة المحتوى." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} غير موجود في {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "لا يمكنك نقل {source_usage_key} في فهرس غير صالح ({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "يجب إدخال target_index ({target_index}) كعدد صحيح." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "نسخة مطابقة لـ {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "نسخة مطابقة لـ ’{0}‘" @@ -13191,7 +13191,7 @@ msgstr "نسخة مطابقة لـ ’{0}‘" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -13201,11 +13201,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/ca/LC_MESSAGES/django.po b/conf/locale/ca/LC_MESSAGES/django.po index c62089e158..13bdd02cc7 100644 --- a/conf/locale/ca/LC_MESSAGES/django.po +++ b/conf/locale/ca/LC_MESSAGES/django.po @@ -80,7 +80,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "" @@ -11710,64 +11710,64 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Dades invàlides" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Dades no vàlides ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "No podeu moure {source_type} a {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "L'element ja està present a la ubicació d'orientació." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "No podeu moure un element a si mateix." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "No podeu moure un element a un element secundari." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "No podeu moure un element directament a l'experiment de contingut." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} no s'ha trobat a {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" "No podeu moure {source_usage_key} a un índex no vàlid ({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Heu de proporcionar target_index ({target_index}) com un enter." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Duplicat de {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplicat de '{0}'" @@ -11775,7 +11775,7 @@ msgstr "Duplicat de '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11785,11 +11785,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/de_DE/LC_MESSAGES/django.po b/conf/locale/de_DE/LC_MESSAGES/django.po index bc545a2df7..8273ad8d69 100644 --- a/conf/locale/de_DE/LC_MESSAGES/django.po +++ b/conf/locale/de_DE/LC_MESSAGES/django.po @@ -189,7 +189,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Text" @@ -13263,49 +13263,49 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "Bibliotheken können nicht mehr als {limit} Komponenten beinhalten." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Ungültige Daten" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Ungültige Daten ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "Sie können {source_type} nicht nach {target_parent_type} verschieben." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Gegenstand bereits am Zielort vorhanden." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Sie können ein Objekte nicht auf sich selbst verschieben." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" "Sie können ein Objekt nicht zu seinem eigenen Unterobjekt verschieben." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" "Sie können ein Objekt nicht direkt in ein Inhaltsexperiment verschieben." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} nicht in {parent_usage_key} gefunden." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." @@ -13313,17 +13313,17 @@ msgstr "" "Sie können {source_usage_key} nicht zu einem ungültigen index " "({target_index}) verschieben." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Sie müssen einen target_index ({target_index}) als integer angeben." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Kopie von '{0}'" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplikat von '{0}'" @@ -13331,7 +13331,7 @@ msgstr "Duplikat von '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -13341,11 +13341,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/el/LC_MESSAGES/django.po b/conf/locale/el/LC_MESSAGES/django.po index 5aa75ebf12..12f932ec6c 100644 --- a/conf/locale/el/LC_MESSAGES/django.po +++ b/conf/locale/el/LC_MESSAGES/django.po @@ -104,7 +104,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "" @@ -11921,63 +11921,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Μη έγκυρα δεδομένα" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "" @@ -11985,7 +11985,7 @@ msgstr "" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11993,11 +11993,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "" diff --git a/conf/locale/en/LC_MESSAGES/django.po b/conf/locale/en/LC_MESSAGES/django.po index 9e2fa21ed0..b9c91ea3cf 100644 --- a/conf/locale/en/LC_MESSAGES/django.po +++ b/conf/locale/en/LC_MESSAGES/django.po @@ -51,7 +51,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "" @@ -11706,63 +11706,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "" @@ -11770,7 +11770,7 @@ msgstr "" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11778,11 +11778,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "" diff --git a/conf/locale/eo/LC_MESSAGES/django.po b/conf/locale/eo/LC_MESSAGES/django.po index 524d0b9f85..506f6ba271 100644 --- a/conf/locale/eo/LC_MESSAGES/django.po +++ b/conf/locale/eo/LC_MESSAGES/django.po @@ -51,7 +51,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Téxt Ⱡ'σяєм ι#" @@ -15147,61 +15147,61 @@ msgstr "" "Fïlé üplöäd fäïléd. Pléäsé trý ägäïn Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, " "¢σηѕє¢тєтυ#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" "Lïßrärïés çännöt hävé möré thän {limit} çömpönénts Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт " "αмєт, ¢σηѕє¢тєтυя α#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Ìnvälïd dätä Ⱡ'σяєм ιρѕυм ∂σłσя ѕ#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Ìnvälïd dätä ({details}) Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" "Ýöü çän nöt mövé {source_type} ïntö {target_parent_type}. Ⱡ'σяєм ιρѕυм ∂σłσя" " ѕιт αмєт, ¢σηѕє¢т#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" "Ìtém ïs älréädý présént ïn tärgét löçätïön. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, " "¢σηѕє¢тєтυя #" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" "Ýöü çän nöt mövé än ïtém ïntö ïtsélf. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, " "¢σηѕє¢тєтυ#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" "Ýöü çän nöt mövé än ïtém ïntö ït's çhïld. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, " "¢σηѕє¢тєтυя #" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" "Ýöü çän nöt mövé än ïtém dïréçtlý ïntö çöntént éxpérïmént. Ⱡ'σяєм ιρѕυм " "∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" "{source_usage_key} nöt föünd ïn {parent_usage_key}. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт " "αмєт, #" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." @@ -15209,19 +15209,19 @@ msgstr "" "Ýöü çän nöt mövé {source_usage_key} ät än ïnvälïd ïndéx ({target_index}). " "Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" "Ýöü müst prövïdé tärgét_ïndéx ({target_index}) äs än ïntégér. Ⱡ'σяєм ιρѕυм " "∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Düplïçäté öf {0} Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αм#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Düplïçäté öf '{0}' Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт#" @@ -15229,7 +15229,7 @@ msgstr "Düplïçäté öf '{0}' Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αм #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -15239,11 +15239,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "% Ⱡ#" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\" Ⱡ'σяєм ιρѕυм ∂σł#" diff --git a/conf/locale/es_419/LC_MESSAGES/django.po b/conf/locale/es_419/LC_MESSAGES/django.po index de937795fd..822b27fd76 100644 --- a/conf/locale/es_419/LC_MESSAGES/django.po +++ b/conf/locale/es_419/LC_MESSAGES/django.po @@ -287,7 +287,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Texto" @@ -13700,66 +13700,66 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "Error al cargar el archivo. Inténtalo de nuevo" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "Las librerías no pueden tener más de {limit} componentes" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Datos inválidos" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Datos inválidos ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "No puedes mover {source_type} dentro de {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Este elemento ya está presente en la ubicación de destino." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "No puedes mover un elemento dentro de él mismo." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "No puedes mover un elemento dentro de un elemento hijo." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" "No puedes mover un elemento directamente dentro del experimento de " "contenido." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} no encontrado en {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" "No puedes mover {source_usage_key} en un índice inválido ({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Debes proveer target_index ({target_index}) como un entero." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Duplicado de {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplicado de '{0}'" @@ -13767,7 +13767,7 @@ msgstr "Duplicado de '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -13777,11 +13777,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/eu_ES/LC_MESSAGES/django.po b/conf/locale/eu_ES/LC_MESSAGES/django.po index cc2bfa37c3..96d3dc6099 100644 --- a/conf/locale/eu_ES/LC_MESSAGES/django.po +++ b/conf/locale/eu_ES/LC_MESSAGES/django.po @@ -77,7 +77,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Testua" @@ -11947,63 +11947,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Datu baliogabea" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Datu baliogabea ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "" @@ -12011,7 +12011,7 @@ msgstr "" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12019,11 +12019,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr " {section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/fr/LC_MESSAGES/django.po b/conf/locale/fr/LC_MESSAGES/django.po index 9f495f821f..d518735929 100644 --- a/conf/locale/fr/LC_MESSAGES/django.po +++ b/conf/locale/fr/LC_MESSAGES/django.po @@ -329,7 +329,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Texte" @@ -13744,49 +13744,49 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "Le téléchargement du fichier a échoué. Veuillez réessayer" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "Les bibliothèques ne peuvent pas avoir plus de {limit} composants" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Donnée invalide" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Donnée invalide ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "Vous ne pouvez pas déplacer {target_parent_type} dans {source_type}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Élément déjà présent dans l'emplacement cible." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Vous ne pouvez pas déplacer un élément vers lui-même." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "Vous ne pouvez pas déplacer un élément vers un de ses enfants." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" "Vous ne pouvez pas déplacer un élément vers un contenu expérimental " "directement." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} pas trouvé dans {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." @@ -13794,18 +13794,18 @@ msgstr "" "Vous ne pouvez pas déplacer {source_usage_key} vers un index non valable " "({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" "Vous devez fournir l'index_cible ({target_index}) en un nombre entier." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Duplication de {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplication de '{0}'" @@ -13813,7 +13813,7 @@ msgstr "Duplication de '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -13823,11 +13823,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/he/LC_MESSAGES/django.po b/conf/locale/he/LC_MESSAGES/django.po index def0ef19b1..d29bdaef1f 100644 --- a/conf/locale/he/LC_MESSAGES/django.po +++ b/conf/locale/he/LC_MESSAGES/django.po @@ -11842,63 +11842,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "נתונים לא חוקיים" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "נתונים לא חוקיים ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "העתקה של {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "העתקה של '{0}'" @@ -11906,7 +11906,7 @@ msgstr "העתקה של '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11916,11 +11916,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/hi/LC_MESSAGES/django.po b/conf/locale/hi/LC_MESSAGES/django.po index 3fa9fbbf60..3ecb5136ab 100644 --- a/conf/locale/hi/LC_MESSAGES/django.po +++ b/conf/locale/hi/LC_MESSAGES/django.po @@ -11189,63 +11189,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "" @@ -11253,7 +11253,7 @@ msgstr "" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11261,11 +11261,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "" diff --git a/conf/locale/id/LC_MESSAGES/django.po b/conf/locale/id/LC_MESSAGES/django.po index ffaf96bbf2..de623b6ddc 100644 --- a/conf/locale/id/LC_MESSAGES/django.po +++ b/conf/locale/id/LC_MESSAGES/django.po @@ -118,7 +118,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Teks" @@ -12486,63 +12486,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Data tidak valid" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Data tidak valid ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Duplikasi dari {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplikasi '{0}'" @@ -12550,7 +12550,7 @@ msgstr "Duplikasi '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12558,11 +12558,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "" diff --git a/conf/locale/it_IT/LC_MESSAGES/django.po b/conf/locale/it_IT/LC_MESSAGES/django.po index b5c4feb877..805d56231d 100644 --- a/conf/locale/it_IT/LC_MESSAGES/django.po +++ b/conf/locale/it_IT/LC_MESSAGES/django.po @@ -140,7 +140,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Testo" @@ -13584,49 +13584,49 @@ msgstr "Alcuni blocchi mancanti nel caricamento del file. Provare di nuovo." msgid "File upload failed. Please try again" msgstr "Caricamento del file non riuscito. Per favore riprova" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "Le librerie non possono avere più di {limit} componenti" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Dati non validi" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Dati non validi ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "È possibile spostare {source_type} in {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Elemento già presente nell'ubicazione di destinazione." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Non è possibile spostare un elemento in se stesso." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "Non è possibile spostare un elemento nel proprio elemento secondario." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" "Non è possibile spostare un elemento direttamente nell'esperimento del " "contenuto." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} non trovato in {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." @@ -13634,17 +13634,17 @@ msgstr "" "Non è possibile spostare {source_usage_key} in un indice non valido " "({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "target_index ({target_index}) deve essere un numero intero." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Duplicato di {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplicato di '{0}'" @@ -13652,7 +13652,7 @@ msgstr "Duplicato di '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -13662,11 +13662,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/ja_JP/LC_MESSAGES/django.po b/conf/locale/ja_JP/LC_MESSAGES/django.po index e410f15347..d1b9a70e0c 100644 --- a/conf/locale/ja_JP/LC_MESSAGES/django.po +++ b/conf/locale/ja_JP/LC_MESSAGES/django.po @@ -127,7 +127,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "テキスト" @@ -11819,63 +11819,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "無効なデータ" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "無効なデータ ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "{source_type}を{target_parent_type}に移動できません。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "ご希望のロケーションに既にアイテムがあります。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "アイテムを同じ場所には移動できません。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "アイテムを子へ移動することはできません。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "コンテンツテストに直接アイテムを移動することはできません。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{parent_usage_key}内に{source_usage_key}がありません。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "無効な見出し({target_index})のため、{source_usage_key}は移動できません。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "target_index ({target_index}) は整数でなければいけません。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "'{0}' の重複" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "'{0}' の重複" @@ -11883,7 +11883,7 @@ msgstr "'{0}' の重複" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11891,11 +11891,11 @@ msgstr "受講者が教材にアクセスするには {score}{pct_sign}以上の #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/ka/LC_MESSAGES/django.po b/conf/locale/ka/LC_MESSAGES/django.po index 68c88e409b..19c07b38fe 100644 --- a/conf/locale/ka/LC_MESSAGES/django.po +++ b/conf/locale/ka/LC_MESSAGES/django.po @@ -73,7 +73,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "ტექსტი" @@ -12342,63 +12342,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "არასწორი მონაცემები" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "არასწორი მონაცემები ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "{0}-ის ასლი" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "'{0}'-ის ასლი" @@ -12406,7 +12406,7 @@ msgstr "'{0}'-ის ასლი" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12416,11 +12416,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/lt_LT/LC_MESSAGES/django.po b/conf/locale/lt_LT/LC_MESSAGES/django.po index f4f2a1c14a..0735865ee2 100644 --- a/conf/locale/lt_LT/LC_MESSAGES/django.po +++ b/conf/locale/lt_LT/LC_MESSAGES/django.po @@ -85,7 +85,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "" @@ -11659,63 +11659,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Neteisingi duomenys" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Neteisingi duomenys: ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "{0} kopija" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr " '{0}' kopija" @@ -11723,7 +11723,7 @@ msgstr " '{0}' kopija" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11733,11 +11733,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/lv/LC_MESSAGES/django.po b/conf/locale/lv/LC_MESSAGES/django.po index 7f1c1ea56f..6e70f4588b 100644 --- a/conf/locale/lv/LC_MESSAGES/django.po +++ b/conf/locale/lv/LC_MESSAGES/django.po @@ -62,7 +62,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Teksts" @@ -12532,63 +12532,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "" @@ -12596,7 +12596,7 @@ msgstr "" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12604,11 +12604,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "" diff --git a/conf/locale/mn/LC_MESSAGES/django.po b/conf/locale/mn/LC_MESSAGES/django.po index 1f51b93d98..9f559ba598 100644 --- a/conf/locale/mn/LC_MESSAGES/django.po +++ b/conf/locale/mn/LC_MESSAGES/django.po @@ -87,7 +87,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "" @@ -11737,63 +11737,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "" @@ -11801,7 +11801,7 @@ msgstr "" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11809,11 +11809,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "" diff --git a/conf/locale/pl/LC_MESSAGES/django.po b/conf/locale/pl/LC_MESSAGES/django.po index 83298e46ff..d805880b8d 100644 --- a/conf/locale/pl/LC_MESSAGES/django.po +++ b/conf/locale/pl/LC_MESSAGES/django.po @@ -163,7 +163,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Tekst" @@ -12693,47 +12693,47 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Błędne dane" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Błędne dane ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "Nie możesz przenieść {source_type} do {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "element znajduje się już w docelowej lokalizacji." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Nie możesz przenieść elementu do niego samego." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "Nie możesz przenieść elementu do wywodzącego się z niego elementu." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "Nie możesz przenieść elementu bezpośrednio do eksperymentu z treścią." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} nieodnaleziony w {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." @@ -12741,17 +12741,17 @@ msgstr "" "Nie możesz przenieść {source_usage_key} do nieprawidłowego indeksu " "({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Musisz podać target_index ({target_index}) jako całość." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Duplikat {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplikat '{0}'" @@ -12759,7 +12759,7 @@ msgstr "Duplikat '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12769,11 +12769,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/pt_BR/LC_MESSAGES/django.po b/conf/locale/pt_BR/LC_MESSAGES/django.po index 682a0676ff..6d9800d190 100644 --- a/conf/locale/pt_BR/LC_MESSAGES/django.po +++ b/conf/locale/pt_BR/LC_MESSAGES/django.po @@ -12160,63 +12160,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Dados inválidos" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Dados inválidos ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Duplicata de {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplicata de '{0}'" @@ -12224,7 +12224,7 @@ msgstr "Duplicata de '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12234,11 +12234,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/pt_PT/LC_MESSAGES/django.po b/conf/locale/pt_PT/LC_MESSAGES/django.po index 26a6eadc84..4cb8950ca2 100644 --- a/conf/locale/pt_PT/LC_MESSAGES/django.po +++ b/conf/locale/pt_PT/LC_MESSAGES/django.po @@ -153,7 +153,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Texto" @@ -13332,64 +13332,64 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "O carregamento de ficheiros falhou. Por favor, tente novamente" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "As bibliotecas não podem ter mais do {limit} componentes" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Dados inválidos" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Dados inválidos ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "Não pode mover {source_type} para {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "O item já está presente no local de destino." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Não pode mover um item para si mesmo." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "Não pode mover um item para um item dependente." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "Não pode mover um item diretamente para a experiência de conteúdo." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} não foi encontrado em {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" "Não pode mover {source_usage_key} num índice inválido ({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Deve indicar o target_index ({target_index}) como um número inteiro." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Duplicado de {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplicado de '{0}'" @@ -13397,7 +13397,7 @@ msgstr "Duplicado de '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -13407,11 +13407,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/rtl/LC_MESSAGES/django.po b/conf/locale/rtl/LC_MESSAGES/django.po index 3164d7cd56..55b5f36c82 100644 --- a/conf/locale/rtl/LC_MESSAGES/django.po +++ b/conf/locale/rtl/LC_MESSAGES/django.po @@ -51,7 +51,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Ŧǝxʇ" @@ -13030,64 +13030,64 @@ msgstr "Søɯǝ ɔɥnnʞs ɯᴉssǝd dnɹᴉnƃ ɟᴉlǝ ndløɐd. Ᵽlǝɐsǝ msgid "File upload failed. Please try again" msgstr "Fᴉlǝ ndløɐd ɟɐᴉlǝd. Ᵽlǝɐsǝ ʇɹʎ ɐƃɐᴉn" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "Łᴉbɹɐɹᴉǝs ɔɐnnøʇ ɥɐʌǝ ɯøɹǝ ʇɥɐn {limit} ɔøɯdønǝnʇs" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Ɨnʌɐlᴉd dɐʇɐ" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Ɨnʌɐlᴉd dɐʇɐ ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "Ɏøn ɔɐn nøʇ ɯøʌǝ {source_type} ᴉnʇø {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Ɨʇǝɯ ᴉs ɐlɹǝɐdʎ dɹǝsǝnʇ ᴉn ʇɐɹƃǝʇ løɔɐʇᴉøn." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Ɏøn ɔɐn nøʇ ɯøʌǝ ɐn ᴉʇǝɯ ᴉnʇø ᴉʇsǝlɟ." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "Ɏøn ɔɐn nøʇ ɯøʌǝ ɐn ᴉʇǝɯ ᴉnʇø ᴉʇ's ɔɥᴉld." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "Ɏøn ɔɐn nøʇ ɯøʌǝ ɐn ᴉʇǝɯ dᴉɹǝɔʇlʎ ᴉnʇø ɔønʇǝnʇ ǝxdǝɹᴉɯǝnʇ." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} nøʇ ɟønnd ᴉn {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" "Ɏøn ɔɐn nøʇ ɯøʌǝ {source_usage_key} ɐʇ ɐn ᴉnʌɐlᴉd ᴉndǝx ({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Ɏøn ɯnsʇ dɹøʌᴉdǝ ʇɐɹƃǝʇ_ᴉndǝx ({target_index}) ɐs ɐn ᴉnʇǝƃǝɹ." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Đndlᴉɔɐʇǝ øɟ {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Đndlᴉɔɐʇǝ øɟ '{0}'" @@ -13095,7 +13095,7 @@ msgstr "Đndlᴉɔɐʇǝ øɟ '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -13104,11 +13104,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/ru/LC_MESSAGES/django.po b/conf/locale/ru/LC_MESSAGES/django.po index 454c908937..c14da1dafc 100644 --- a/conf/locale/ru/LC_MESSAGES/django.po +++ b/conf/locale/ru/LC_MESSAGES/django.po @@ -12758,48 +12758,48 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Неверные данные" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Неверные данные ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "Вы не можете переместить {source_type} в {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Элемент уже находится в заданном месте." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Невозможно переместить элемент в самого себя." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "Невозможно поместить элемент в его дочерний элемент." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" "Невозможно переместить элемент в компонент с экспериментальными материалами." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} не найден в {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." @@ -12807,17 +12807,17 @@ msgstr "" "Невозможно переместить {source_usage_key} на отсутствующую позицию " "({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Необходимо указать позицию ({target_index}) в виде целого числа." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Копия {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Копия «{0}»" @@ -12825,7 +12825,7 @@ msgstr "Копия «{0}»" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12835,11 +12835,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} «{display_name}»" diff --git a/conf/locale/sk/LC_MESSAGES/django.po b/conf/locale/sk/LC_MESSAGES/django.po index 971f93d1ac..30274837ce 100644 --- a/conf/locale/sk/LC_MESSAGES/django.po +++ b/conf/locale/sk/LC_MESSAGES/django.po @@ -68,7 +68,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "" @@ -11782,63 +11782,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Neplatné údaje" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Neplatné údaje ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Duplikát {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Duplikát '{0}'" @@ -11846,7 +11846,7 @@ msgstr "Duplikát '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11856,11 +11856,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/sw_KE/LC_MESSAGES/django.po b/conf/locale/sw_KE/LC_MESSAGES/django.po index 88c60abd9d..7bf1e96a08 100644 --- a/conf/locale/sw_KE/LC_MESSAGES/django.po +++ b/conf/locale/sw_KE/LC_MESSAGES/django.po @@ -98,7 +98,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Maandishi" @@ -11906,65 +11906,65 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Taarifa batili" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Taarifa batili ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "Huwezi kupeleka {source_type} kwenye {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Kipengele tayari kipo katika eneo linalohitajika." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Huwezi kupeleka kipengele hiki ndani ya chenyewe." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "Huwezi kupeleka kipengele kwenye kipengele kidogo zaidi yake." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" "Huwezi kupeleka kipengele hiki moja kwa moja kwenye sehemu ya majaribio." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} hakikupatikana kwenye {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" "Huwezi kupeleka {source_usage_key} katika namba batili ({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Lazima uweke namba sahihi ({target_index}) kama vile namba kamili." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Nakala ya {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Nakala ya '{0}'" @@ -11972,7 +11972,7 @@ msgstr "Nakala ya '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11982,11 +11982,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "% " -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/th/LC_MESSAGES/django.po b/conf/locale/th/LC_MESSAGES/django.po index 48a042a422..fbad7ebe5a 100644 --- a/conf/locale/th/LC_MESSAGES/django.po +++ b/conf/locale/th/LC_MESSAGES/django.po @@ -129,7 +129,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "" @@ -11564,63 +11564,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "ข้อมูลไม่ถูกต้อง" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "ข้อมูลไม่ถูกต้อง ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "ค่าซ้ำกันของ {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "ค่าซ้ำกันของ '{0}'" @@ -11628,7 +11628,7 @@ msgstr "ค่าซ้ำกันของ '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11638,11 +11638,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "เปอร์เซนต์" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/tr_TR/LC_MESSAGES/django.po b/conf/locale/tr_TR/LC_MESSAGES/django.po index 52f8d5353b..b1ce987789 100644 --- a/conf/locale/tr_TR/LC_MESSAGES/django.po +++ b/conf/locale/tr_TR/LC_MESSAGES/django.po @@ -145,7 +145,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Metin" @@ -13229,47 +13229,47 @@ msgstr "Dosya yükleme sırasında bazı parçalar kayboldu. Lütfen tekrar dene msgid "File upload failed. Please try again" msgstr "Dosya yükleme başarısız. Lütfen tekrar deneyin" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "Kütüphaneler {limit} bileşenden daha fazlasına sahip olamaz" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Geçersiz veri" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Geçersiz veri ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "{source_type} verisini {target_parent_type} üzerine taşıyamazsınız." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Nesne hedef konumda zaten mevcut." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Bir nesneyi zaten bulunduğu konuma taşıyamazsınız." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "Bir nesneyi kendi altına taşıyamazsınız." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "Bir nesneyi doğrudan içerik denemesine taşıyamazsınız." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} anahtarı {parent_usage_key} içinde bulunamadı." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." @@ -13277,17 +13277,17 @@ msgstr "" "{source_usage_key} anahtarını geçersiz bir ({target_index}) indeksine " "taşıyamazsınız." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "({target_index}) target_index bir tamsayı olarak girilmeli." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "{0}'ın kopyası" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "'{0}'ın tekrarı" @@ -13295,7 +13295,7 @@ msgstr "'{0}'ın tekrarı" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -13305,11 +13305,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/uk/LC_MESSAGES/django.po b/conf/locale/uk/LC_MESSAGES/django.po index a419360766..880084b1a1 100644 --- a/conf/locale/uk/LC_MESSAGES/django.po +++ b/conf/locale/uk/LC_MESSAGES/django.po @@ -137,7 +137,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "Текст" @@ -12762,47 +12762,47 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Некоректні дані" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Некоректні дані ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "Ви не можете перенести {source_type} у {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Елемент вже присутній у вказаному місці." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Неможливо перемістити у самого себе." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "Не можна перемістити елемент безпосередньо до експерименту з вмістом." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} не знайдено у {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." @@ -12810,17 +12810,17 @@ msgstr "" "Ви не можете перенести {source_usage_key} у неправильний розділ " "({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Ви повинні давати target_index ({target_index}) як ціле число." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Копія {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Копіювання '{0}'" @@ -12828,7 +12828,7 @@ msgstr "Копіювання '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12838,11 +12838,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} «{display_name}»" diff --git a/conf/locale/vi/LC_MESSAGES/django.po b/conf/locale/vi/LC_MESSAGES/django.po index 0d5370152b..03b6b1d21c 100644 --- a/conf/locale/vi/LC_MESSAGES/django.po +++ b/conf/locale/vi/LC_MESSAGES/django.po @@ -211,7 +211,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "" @@ -11655,47 +11655,47 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "Dữ liệu không hợp lệ" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "Dữ liệu không hợp lệ ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "Bạn không thể di chuyển {source_type} vào {target_parent_type}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "Mục đã có trong vị trí đích." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "Bạn không thể di chuyển một mục vào chính nó." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "Bạn không thể di chuyển một mục vào mục con của nó." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "Bạn không thể di chuyển một mục trực tiếp vào thử nghiệm nội dung." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "{source_usage_key} không tìm thấy trong {parent_usage_key}." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." @@ -11703,17 +11703,17 @@ msgstr "" "Bạn không thể di chuyển {source_usage_key} tại một chỉ mục không hợp lệ " "({target_index})." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "Bạn phải nhập target_index ({target_index}) là một số nguyên." -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "Sao chép của {0}" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "Sao chép của '{0}'" @@ -11721,7 +11721,7 @@ msgstr "Sao chép của '{0}'" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11731,11 +11731,11 @@ msgstr "" #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/conf/locale/zh_CN/LC_MESSAGES/django.po b/conf/locale/zh_CN/LC_MESSAGES/django.po index f7a1819210..923a8e4248 100644 --- a/conf/locale/zh_CN/LC_MESSAGES/django.po +++ b/conf/locale/zh_CN/LC_MESSAGES/django.po @@ -410,7 +410,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "文本" @@ -12155,63 +12155,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "无效的数据" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "无效的数据 ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "无法将 {source_type}移进 {target_parent_type}内。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "目标位置已显示该项。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "您无法将项目移动至本身。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "您无法将项移动至子目录下。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "您无法将项直接移动至内容实验中。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "在{parent_usage_key}中未找到{source_usage_key} 。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "无法将{source_usage_key}移动至无效索引中({target_index})。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "您必须提供整数的target_index ({target_index})。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "“{0}”的副本" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "“{0}”的副本" @@ -12219,7 +12219,7 @@ msgstr "“{0}”的副本" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12227,11 +12227,11 @@ msgstr "学生必须获得 {score}{pct_sign} 或者更高的分数才能查看 #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection}“{display_name}”" diff --git a/conf/locale/zh_HANS/LC_MESSAGES/django.po b/conf/locale/zh_HANS/LC_MESSAGES/django.po index f7a1819210..923a8e4248 100644 --- a/conf/locale/zh_HANS/LC_MESSAGES/django.po +++ b/conf/locale/zh_HANS/LC_MESSAGES/django.po @@ -410,7 +410,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "文本" @@ -12155,63 +12155,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "无效的数据" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "无效的数据 ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "无法将 {source_type}移进 {target_parent_type}内。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "目标位置已显示该项。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "您无法将项目移动至本身。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "您无法将项移动至子目录下。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "您无法将项直接移动至内容实验中。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "在{parent_usage_key}中未找到{source_usage_key} 。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "无法将{source_usage_key}移动至无效索引中({target_index})。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "您必须提供整数的target_index ({target_index})。" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "“{0}”的副本" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "“{0}”的副本" @@ -12219,7 +12219,7 @@ msgstr "“{0}”的副本" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -12227,11 +12227,11 @@ msgstr "学生必须获得 {score}{pct_sign} 或者更高的分数才能查看 #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection}“{display_name}”" diff --git a/conf/locale/zh_TW/LC_MESSAGES/django.po b/conf/locale/zh_TW/LC_MESSAGES/django.po index 8c0adec8f8..54ede518d0 100644 --- a/conf/locale/zh_TW/LC_MESSAGES/django.po +++ b/conf/locale/zh_TW/LC_MESSAGES/django.po @@ -190,7 +190,7 @@ msgstr "" #: cms/djangoapps/contentstore/utils.py #: cms/djangoapps/contentstore/views/component.py -#: cms/djangoapps/contentstore/views/item.py xmodule/html_block.py +#: cms/djangoapps/contentstore/views/block.py xmodule/html_block.py msgid "Text" msgstr "文本" @@ -11803,63 +11803,63 @@ msgstr "" msgid "File upload failed. Please try again" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Libraries cannot have more than {limit} components" msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Invalid data" msgstr "無效的資料" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Invalid data ({details})" msgstr "無效資料 ({details})" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You can not move {source_type} into {target_parent_type}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "Item is already present in target location." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into itself." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item into it's child." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "You can not move an item directly into content experiment." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{source_usage_key} not found in {parent_usage_key}." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "You can not move {source_usage_key} at an invalid index ({target_index})." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "You must provide target_index ({target_index}) as an integer." msgstr "" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of {0}" msgstr "與{0}重複" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "Duplicate of '{0}'" msgstr "與'{0}'重複" @@ -11867,7 +11867,7 @@ msgstr "與'{0}'重複" #. Translators: The {pct_sign} here represents the percent sign, i.e., '%' #. in many languages. This is used to avoid Transifex's misinterpreting of #. '% o'. The percent sign is also translatable as a standalone string. -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "" "Students must score {score}{pct_sign} or higher to access course materials." @@ -11875,11 +11875,11 @@ msgstr "學生必須得分 {score}{pct_sign} 或高於此分數以存取課程 #. Translators: This is the percent sign. It will be used to represent #. a percent value out of 100, e.g. "58%" means "58/100". -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py msgid "%" msgstr "%" -#: cms/djangoapps/contentstore/views/item.py +#: cms/djangoapps/contentstore/views/block.py #, python-brace-format msgid "{section_or_subsection} \"{display_name}\"" msgstr "{section_or_subsection} \"{display_name}\"" diff --git a/lms/djangoapps/courseware/block_render.py b/lms/djangoapps/courseware/block_render.py index 94db2fd348..e9cf15678e 100644 --- a/lms/djangoapps/courseware/block_render.py +++ b/lms/djangoapps/courseware/block_render.py @@ -46,7 +46,7 @@ from openedx.core.lib.xblock_services.call_to_action import CallToActionService from xmodule.contentstore.django import contentstore from xmodule.exceptions import NotFoundError, ProcessingError from xmodule.library_tools import LibraryToolsService -from xmodule.modulestore.django import ModuleI18nService, modulestore +from xmodule.modulestore.django import XBlockI18nService, modulestore from xmodule.modulestore.exceptions import ItemNotFoundError from xmodule.partitions.partitions_service import PartitionService from xmodule.util.sandboxing import SandboxService @@ -614,7 +614,7 @@ def get_module_system_for_user( 'completion': CompletionService(user=user, context_key=course_id) if user and user.is_authenticated else None, - 'i18n': ModuleI18nService, + 'i18n': XBlockI18nService, 'library_tools': LibraryToolsService(store, user_id=user.id if user else None), 'partitions': PartitionService(course_id=course_id, cache=DEFAULT_REQUEST_CACHE.data), 'settings': SettingsService(), diff --git a/lms/djangoapps/courseware/tests/test_block_render.py b/lms/djangoapps/courseware/tests/test_block_render.py index 78a6cd8d37..3e0630f2ff 100644 --- a/lms/djangoapps/courseware/tests/test_block_render.py +++ b/lms/djangoapps/courseware/tests/test_block_render.py @@ -47,7 +47,7 @@ from xmodule.contentstore.django import contentstore from xmodule.html_block import AboutBlock, CourseInfoBlock, HtmlBlock, StaticTabBlock from xmodule.lti_block import LTIBlock from xmodule.modulestore import ModuleStoreEnum -from xmodule.modulestore.django import ModuleI18nService, modulestore +from xmodule.modulestore.django import XBlockI18nService, modulestore from xmodule.modulestore.tests.django_utils import ( TEST_DATA_SPLIT_MODULESTORE, ModuleStoreTestCase, @@ -2415,7 +2415,7 @@ class TestBadgingService(LMSXBlockServiceMixin): class TestI18nService(LMSXBlockServiceMixin): - """ Test ModuleI18nService """ + """ Test XBlockI18nService """ def test_module_i18n_lms_service(self): """ @@ -2423,7 +2423,7 @@ class TestI18nService(LMSXBlockServiceMixin): """ i18n_service = self.runtime.service(self.descriptor, 'i18n') assert i18n_service is not None - assert isinstance(i18n_service, ModuleI18nService) + assert isinstance(i18n_service, XBlockI18nService) def test_no_service_exception_with_none_declaration_(self): """ diff --git a/openedx/core/djangoapps/xblock/runtime/runtime.py b/openedx/core/djangoapps/xblock/runtime/runtime.py index 98d68c7384..cadc7f4e33 100644 --- a/openedx/core/djangoapps/xblock/runtime/runtime.py +++ b/openedx/core/djangoapps/xblock/runtime/runtime.py @@ -22,7 +22,7 @@ from xblock.runtime import KvsFieldData, MemoryIdManager, Runtime from xmodule.errortracker import make_error_tracker from xmodule.contentstore.django import contentstore -from xmodule.modulestore.django import ModuleI18nService +from xmodule.modulestore.django import XBlockI18nService from xmodule.services import EventPublishingService, RebindUserService from xmodule.util.sandboxing import SandboxService from common.djangoapps.edxmako.services import MakoService @@ -247,7 +247,7 @@ class XBlockRuntime(RuntimeShim, Runtime): return MakoService(namespace_prefix='lms.') return MakoService() elif service_name == "i18n": - return ModuleI18nService(block=block) + return XBlockI18nService(block=block) elif service_name == 'sandbox': context_key = block.scope_ids.usage_id.context_key return SandboxService(contentstore=contentstore, course_id=context_key) diff --git a/setup.cfg b/setup.cfg index 72a2d296e5..7b1be0be92 100644 --- a/setup.cfg +++ b/setup.cfg @@ -66,7 +66,7 @@ ignore_imports = lms.djangoapps.courseware.plugins -> cms.djangoapps.contentstore.utils lms.djangoapps.course_home_api.tests.utils -> cms.djangoapps.contentstore.outlines # cms side imports that we are ignoring for now - cms.djangoapps.contentstore.views.tests.test_item -> lms.djangoapps.lms_xblock.mixin + cms.djangoapps.contentstore.views.tests.test_block -> lms.djangoapps.lms_xblock.mixin cms.envs.common -> lms.envs.common cms.djangoapps.contentstore.signals.handlers -> lms.djangoapps.grades.api cms.djangoapps.contentstore.course_group_config -> lms.lib.utils diff --git a/xmodule/modulestore/django.py b/xmodule/modulestore/django.py index ead24e6792..917aa3d6c9 100644 --- a/xmodule/modulestore/django.py +++ b/xmodule/modulestore/django.py @@ -308,7 +308,7 @@ def create_modulestore_instance( xblock_field_data_wrappers=xblock_field_data_wrappers, disabled_xblock_types=fetch_disabled_xblock_types, doc_store_config=doc_store_config, - i18n_service=i18n_service or ModuleI18nService, + i18n_service=i18n_service or XBlockI18nService, fs_service=fs_service or xblock.reference.plugins.FSService(), user_service=user_service or xb_user_service, signal_handler=signal_handler or SignalHandler(class_), @@ -356,7 +356,7 @@ def clear_existing_modulestores(): _MIXED_MODULESTORE = None -class ModuleI18nService: +class XBlockI18nService: """ Implement the XBlock runtime "i18n" service. diff --git a/xmodule/video_block/video_block.py b/xmodule/video_block/video_block.py index 3beba5e36e..4ef6545322 100644 --- a/xmodule/video_block/video_block.py +++ b/xmodule/video_block/video_block.py @@ -510,7 +510,7 @@ class VideoBlock( Used to update video values during `self`:save method from CMS. old_metadata: dict, values of fields of `self` with scope=settings which were explicitly set by user. old_content, same as `old_metadata` but for scope=content. - Due to nature of code flow in item.py::_save_item, before current function is called, + Due to nature of code flow in block.py::_save_item, before current function is called, fields of `self` instance have been already updated, but not yet saved. To obtain values, which were changed by user input, one should compare own_metadata(self) and old_medatada. diff --git a/xmodule/x_module.py b/xmodule/x_module.py index 5d7ea24ab4..bc19c1456e 100644 --- a/xmodule/x_module.py +++ b/xmodule/x_module.py @@ -1180,7 +1180,7 @@ class DescriptorSystem(MetricsMixin, ConfigurableFragmentWrapper, Runtime): """ # getting the service from parent module. making sure of block service declarations. service = super().service(block=block, service_name=service_name) - # Passing the block to service if it is callable e.g. ModuleI18nService. It is the responsibility of calling + # Passing the block to service if it is callable e.g. XBlockI18nService. It is the responsibility of calling # service to handle the passing argument. if callable(service): return service(block) @@ -1738,7 +1738,7 @@ class ModuleSystem(MetricsMixin, ConfigurableFragmentWrapper, ModuleSystemShim, """ # getting the service from parent module. making sure of block service declarations. service = super().service(block=block, service_name=service_name) - # Passing the block to service if it is callable e.g. ModuleI18nService. It is the responsibility of calling + # Passing the block to service if it is callable e.g. XBlockI18nService. It is the responsibility of calling # service to handle the passing argument. if callable(service): return service(block)