This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added django internalization. Translated static files(ru(Russian), en…
…). And models with package django-modeltranslation. Migrated ru and en fields on current specific models.
- Loading branch information
1 parent
ba2cbc4
commit b81ab0d
Showing
89 changed files
with
3,207 additions
and
1,508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
core/migrations/0006_newsandevents_summary_en_newsandevents_summary_ru_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 4.0.8 on 2024-04-15 13:36 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0005_activitylog'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='newsandevents', | ||
name='summary_en', | ||
field=models.TextField(blank=True, max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='newsandevents', | ||
name='summary_ru', | ||
field=models.TextField(blank=True, max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='newsandevents', | ||
name='title_en', | ||
field=models.CharField(max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='newsandevents', | ||
name='title_ru', | ||
field=models.CharField(max_length=200, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from modeltranslation.translator import register, TranslationOptions | ||
from .models import NewsAndEvents, ActivityLog | ||
|
||
@register(NewsAndEvents) | ||
class NewsAndEventsTranslationOptions(TranslationOptions): | ||
fields = ('title', 'summary',) | ||
empty_values=None | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
course/migrations/0008_program_summary_en_program_summary_ru_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 4.0.8 on 2024-04-12 11:07 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('course', '0007_alter_upload_file_alter_uploadvideo_video'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='program', | ||
name='summary_en', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='program', | ||
name='summary_ru', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='program', | ||
name='title_en', | ||
field=models.CharField(max_length=150, null=True, unique=True), | ||
), | ||
migrations.AddField( | ||
model_name='program', | ||
name='title_ru', | ||
field=models.CharField(max_length=150, null=True, unique=True), | ||
), | ||
] |
63 changes: 63 additions & 0 deletions
63
course/migrations/0009_course_summary_en_course_summary_ru_course_title_en_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Generated by Django 4.0.8 on 2024-04-14 15:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('course', '0008_program_summary_en_program_summary_ru_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='course', | ||
name='summary_en', | ||
field=models.TextField(blank=True, max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='course', | ||
name='summary_ru', | ||
field=models.TextField(blank=True, max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='course', | ||
name='title_en', | ||
field=models.CharField(max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='course', | ||
name='title_ru', | ||
field=models.CharField(max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='upload', | ||
name='title_en', | ||
field=models.CharField(max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='upload', | ||
name='title_ru', | ||
field=models.CharField(max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='uploadvideo', | ||
name='summary_en', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='uploadvideo', | ||
name='summary_ru', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='uploadvideo', | ||
name='title_en', | ||
field=models.CharField(max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='uploadvideo', | ||
name='title_ru', | ||
field=models.CharField(max_length=100, null=True), | ||
), | ||
] |
Oops, something went wrong.