-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
276 additions
and
111 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
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,80 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.29 on 2021-05-10 11:48 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cms', '0002_migrate_issue_types'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='navigationitem', | ||
name='link_name_cy', | ||
field=models.CharField(max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='navigationitem', | ||
name='link_name_de', | ||
field=models.CharField(max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='navigationitem', | ||
name='link_name_en', | ||
field=models.CharField(max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='navigationitem', | ||
name='link_name_fr', | ||
field=models.CharField(max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='page', | ||
name='content_cy', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='page', | ||
name='content_de', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='page', | ||
name='content_en', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='page', | ||
name='content_fr', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='page', | ||
name='display_name_cy', | ||
field=models.CharField(help_text='Name of the page, max 100 chars, displayed in the nav and on the header of the page eg. About or Contact', max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='page', | ||
name='display_name_de', | ||
field=models.CharField(help_text='Name of the page, max 100 chars, displayed in the nav and on the header of the page eg. About or Contact', max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='page', | ||
name='display_name_en', | ||
field=models.CharField(help_text='Name of the page, max 100 chars, displayed in the nav and on the header of the page eg. About or Contact', max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='page', | ||
name='display_name_fr', | ||
field=models.CharField(help_text='Name of the page, max 100 chars, displayed in the nav and on the header of the page eg. About or Contact', max_length=100, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='page', | ||
name='name', | ||
field=models.CharField(help_text='Page name displayed in the URL bar eg. about or contact', max_length=300, verbose_name='URL Name'), | ||
), | ||
] |
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,13 @@ | ||
from modeltranslation.translator import register, TranslationOptions | ||
|
||
from cms import models | ||
|
||
|
||
@register(models.Page) | ||
class PageTranslationOptions(TranslationOptions): | ||
fields = ('display_name', 'content') | ||
|
||
|
||
@register(models.NavigationItem) | ||
class NavigationItemTranslationOptions(TranslationOptions): | ||
fields = ('link_name',) |
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
Oops, something went wrong.