Skip to content

Commit

Permalink
Merge pull request #2066 from openedx/ammar/add-new-languages-in-ente…
Browse files Browse the repository at this point in the history
…rprise-customer-admin

feat: add new languages in enterprise customer admin
  • Loading branch information
muhammad-ammar authored Apr 8, 2024
2 parents 60bd657 + 08f3b16 commit 2abef1a
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Change Log
Unreleased
----------
[4.15.0]
---------
* feat: Add new languages in enterprise customer admin

[4.14.0]
---------
* Added the ability for enterprise customers to enable One Academy for its learners.
Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Your project description goes here.
"""

__version__ = "4.14.0"
__version__ = "4.15.0"
19 changes: 19 additions & 0 deletions enterprise/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,25 @@ def json_serialized_course_modes():
AVAILABLE_LANGUAGES = [
('en', 'English'),
('es-419', 'Español (Latinoamérica)'), # Spanish (Latin America)
('ar', 'العربية'), # Arabic
('zh-cn', '中文 (简体)'), # Chinese (China)
('fr-ca', 'français (Canada)'), # French (Canada)
('da', 'dansk'), # Danish
('de-de', 'Deutsch (Deutschland)'), # German (Germany)
('el', 'Ελληνικά'), # Greek
('he', 'עברית'), # Hebrew
('hi', 'हिन्दी'), # Hindi
('id', 'Bahasa Indonesia'), # Indonesian
('it-it', 'Italiano (Italia)'), # Italian (Italy)
('pt-br', 'Português (Brasil)'), # Portuguese (Brazil)
('pt-pt', 'Português (Portugal)'), # Portuguese (Portugal)
('ru', 'Русский'), # Russian
('es-es', 'Español (España)'), # Spanish (Spain)
('sw', 'Kiswahili'), # Swahili
('te', 'తెలుగు'), # Telugu
('th', 'ไทย'), # Thai
('tr-tr', 'Türkçe (Türkiye)'), # Turkish (Turkey)
('uk', 'українська'), # Ukrainian
]

LMS_API_DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
Expand Down
23 changes: 23 additions & 0 deletions enterprise/migrations/0205_auto_20240408_1117.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.23 on 2024-04-08 11:17

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('enterprise', '0204_auto_20240408_0723'),
]

operations = [
migrations.AlterField(
model_name='enterprisecustomer',
name='default_language',
field=models.CharField(blank=True, choices=[('en', 'English'), ('es-419', 'Español (Latinoamérica)'), ('ar', 'العربية'), ('zh-cn', '中文 (简体)'), ('fr-ca', 'français (Canada)'), ('da', 'dansk'), ('de-de', 'Deutsch (Deutschland)'), ('el', 'Ελληνικά'), ('he', 'עברית'), ('hi', 'हिन्दी'), ('id', 'Bahasa Indonesia'), ('it-it', 'Italiano (Italia)'), ('pt-br', 'Português (Brasil)'), ('pt-pt', 'Português (Portugal)'), ('ru', 'Русский'), ('es-es', 'Español (España)'), ('sw', 'Kiswahili'), ('te', 'తెలుగు'), ('th', 'ไทย'), ('tr-tr', 'Türkçe (Türkiye)'), ('uk', 'українська')], default=None, help_text='Specifies the default language for learners of the organization.', max_length=25, null=True, verbose_name='Learner default language'),
),
migrations.AlterField(
model_name='historicalenterprisecustomer',
name='default_language',
field=models.CharField(blank=True, choices=[('en', 'English'), ('es-419', 'Español (Latinoamérica)'), ('ar', 'العربية'), ('zh-cn', '中文 (简体)'), ('fr-ca', 'français (Canada)'), ('da', 'dansk'), ('de-de', 'Deutsch (Deutschland)'), ('el', 'Ελληνικά'), ('he', 'עברית'), ('hi', 'हिन्दी'), ('id', 'Bahasa Indonesia'), ('it-it', 'Italiano (Italia)'), ('pt-br', 'Português (Brasil)'), ('pt-pt', 'Português (Portugal)'), ('ru', 'Русский'), ('es-es', 'Español (España)'), ('sw', 'Kiswahili'), ('te', 'తెలుగు'), ('th', 'ไทย'), ('tr-tr', 'Türkçe (Türkiye)'), ('uk', 'українська')], default=None, help_text='Specifies the default language for learners of the organization.', max_length=25, null=True, verbose_name='Learner default language'),
),
]

0 comments on commit 2abef1a

Please sign in to comment.