Repository: oppia/oppia

Issue:
The english text is replaced by hindi text in “Subtracting larger Numbers” when entering the lesson
<!--
  - Thanks for taking the time to report a bug in the Oppia project.
  - Before filing a new issue, please do a quick search to check that it hasn't
  - already been filed on the [issue tracker](https://github.com/oppia/oppia/issues)._
  -->

**Describe the bug**
On entering the lesson "Subtracting larger Numbers" in the addition and subtraction chapter, the lesson text is shown in the Hindi language, even if the language selected for the lesson text is English.

**To Reproduce**
Steps to reproduce the behavior:
 1. Go to "Subtracting larger Numbers" lesson
 2. Try changing the language to English
 3. See that the text is in Hindi

**Observed behavior**
The lesson text is in Hindi language, even if the language selected for the lesson text is English.

**Expected behavior**
The lesson text should be in the language selected for the lesson text.

**Screenshots**
![Screenshot (32)](https://user-images.githubusercontent.com/63059690/130640495-9b20eb25-ff04-46c8-a4e9-b30a3f6d02b5.png)

**Desktop (please complete the following information; delete this section if the issue does not arise on desktop):**
 - OS: Windows 10
 - Browser: Firefox
 - Browser-version: 91.0.1


**Additional context**
Add any other context about the problem here.

The english text is replaced by hindi text in “Subtracting larger Numbers” when entering the lesson
<!--
  - Thanks for taking the time to report a bug in the Oppia project.
  - Before filing a new issue, please do a quick search to check that it hasn't
  - already been filed on the [issue tracker](https://github.com/oppia/oppia/issues)._
  -->

**Describe the bug**
On entering the lesson "Subtracting larger Numbers" in the addition and subtraction chapter, the lesson text is shown in the Hindi language, even if the language selected for the lesson text is English.

**To Reproduce**
Steps to reproduce the behavior:
 1. Go to "Subtracting larger Numbers" lesson
 2. Try changing the language to English
 3. See that the text is in Hindi

**Observed behavior**
The lesson text is in Hindi language, even if the language selected for the lesson text is English.

**Expected behavior**
The lesson text should be in the language selected for the lesson text.

**Screenshots**
![Screenshot (32)](https://user-images.githubusercontent.com/63059690/130640495-9b20eb25-ff04-46c8-a4e9-b30a3f6d02b5.png)

**Desktop (please complete the following information; delete this section if the issue does not arise on desktop):**
 - OS: Windows 10
 - Browser: Firefox
 - Browser-version: 91.0.1


**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/core/controllers/cron.py b/core/controllers/cron.py
--- a/core/controllers/cron.py
+++ b/core/controllers/cron.py
@@ -109,7 +109,7 @@ def get(self):
         question_admin_ids = user_services.get_user_ids_by_role(
             feconf.ROLE_ID_QUESTION_ADMIN)
         translation_admin_ids = user_services.get_user_ids_by_role(
-            feconf.ROLE_ID_QUESTION_ADMIN)
+            feconf.ROLE_ID_TRANSLATION_ADMIN)
 
         if (
                 config_domain
diff --git a/core/domain/state_domain.py b/core/domain/state_domain.py
--- a/core/domain/state_domain.py
+++ b/core/domain/state_domain.py
@@ -1618,9 +1618,10 @@ def get_content_ids_that_are_correctly_translated(self, language_code):
         """
         correctly_translated_content_ids = []
         for content_id, translations in self.translations_mapping.items():
-            if language_code in translations and (
-                    not translations[language_code].needs_update and
-                    translations[language_code].translation != ''):
+            if (
+                language_code in translations and
+                not translations[language_code].needs_update
+            ):
                 correctly_translated_content_ids.append(content_id)
 
         return correctly_translated_content_ids


Test patch: