Skip to content

Commit d804a4e

Browse files
docs: clarify CatalogCourse.language is "primary language"
1 parent edc943d commit d804a4e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/openedx_catalog/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Migration(migrations.Migration):
6060
openedx_django_lib.fields.MultiCollationCharField(
6161
db_collations={"mysql": "utf8mb4_bin", "sqlite": "BINARY"},
6262
default=openedx_catalog.models.catalog_course.get_default_language_code,
63-
help_text='The code representing the language of this catalog course\'s content. The first two digits must be the lowercase ISO 639-1 language code, optionally followed by a country/locale code. e.g. "en", "es", "fr-ca", "pt-br", "zh-cn", "zh-hk". ',
63+
help_text='The code representing the primary language of this catalog course\'s content - the language in which the content is authored and which learners can learn without translation. (Translated versions of the course or parts of the course may be available in other languages if supported by the platform.) The first two digits must be the lowercase ISO 639-1 language code, optionally followed by a country/locale code. e.g. "en", "es", "fr-ca", "pt-br", "zh-cn", "zh-hk". ',
6464
max_length=64,
6565
),
6666
),

src/openedx_catalog/models/catalog_course.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ class CatalogCourse(models.Model):
110110
null=False,
111111
default=get_default_language_code,
112112
help_text=_(
113-
"The code representing the language of this catalog course's content. "
114-
"The first two digits must be the lowercase ISO 639-1 language code, "
115-
"optionally followed by a country/locale code. "
116-
'e.g. "en", "es", "fr-ca", "pt-br", "zh-cn", "zh-hk". '
113+
"The code representing the primary language of this catalog course's content - the language in which the "
114+
"content is authored and which learners can learn without translation. (Translated versions of the course "
115+
"or parts of the course may be available in other languages if supported by the platform.) "
116+
"The first two digits must be the lowercase ISO 639-1 language code, optionally followed by a "
117+
'country/locale code. e.g. "en", "es", "fr-ca", "pt-br", "zh-cn", "zh-hk". '
117118
),
118119
)
119120

0 commit comments

Comments
 (0)