Skip to content

Commit

Permalink
Add additional language colors
Browse files Browse the repository at this point in the history
  • Loading branch information
lunars97 committed Nov 26, 2024
1 parent 43c6117 commit ab73d23
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 0 deletions.
20 changes: 20 additions & 0 deletions integreat_cms/cms/constants/language_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@
PINE_GREEN: Final = "#20B2AA"
ALMOND: Final = "#FFDAB9"
CHERRY: Final = "#D62728"
DUSTY_ORANGE: Final = "#DB6D4B"
DUST_STORM: Final = "#E0D3C0"
SILVER: Final = "#C9C7C1"
LIGHT_GRAY: Final = "#CED6DA"
DARK_GRAY: Final = "#91B1C0"
DEEP_PINK: Final = "#F72681"
DARK_YELLOWISH_GREEN: Final = "#26662C"
MODERATE_REDDISH_PURPLE: Final = "#9C5B87"
STRONG_YELLOW: Final = "#C8B03C"
BRILLIANT_PURPLISH_BLUE = "#6F79AB"

TOTAL_ACCESS: Final = "#000000"
WEB_APP_ACCESS: Final = "#FF00A8"
Expand Down Expand Up @@ -87,4 +97,14 @@
(PINE_GREEN, _("Pine green")),
(ALMOND, _("Almond")),
(CHERRY, _("Cherry")),
(DUSTY_ORANGE, _("Dusty orange")),
(DUST_STORM, _("Dust storm")),
(SILVER, _("Silver")),
(LIGHT_GRAY, _("Light gray")),
(DARK_GRAY, _("Dark gray")),
(DEEP_PINK, _("Deep pink")),
(DARK_YELLOWISH_GREEN, _("Dark yellowish green")),
(MODERATE_REDDISH_PURPLE, _("Moderate reddish purple")),
(STRONG_YELLOW, _("Strong yellow")),
(BRILLIANT_PURPLISH_BLUE, _("Brilliant purplish blue")),
]
71 changes: 71 additions & 0 deletions integreat_cms/cms/migrations/0111_alter_language_language_color.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Generated by Django 4.2.16 on 2024-11-26 07:19

from django.db import migrations, models


class Migration(migrations.Migration):
"""
Add additional language colors
"""

dependencies = [
("cms", "0110_region_zammad_webhook_token_alter_region_zammad_url"),
]

operations = [
migrations.AlterField(
model_name="language",
name="language_color",
field=models.CharField(
choices=[
("#FFBB78", "Mellow apricot"),
("#2CA02C", "Forest green"),
("#FF9896", "Rose"),
("#C5B0D5", "Tropical violet"),
("#FF4500", "Red"),
("#FFA500", "Orange"),
("#17157D", "Dark blue"),
("#1F77B4", "Green blue"),
("#FFD700", "Yellow"),
("#008080", "Teal"),
("#9EDAE5", "Arctic"),
("#5894E3", "Azure"),
("#17BECF", "Pacific blue"),
("#FF6347", "Orange red"),
("#98DF8A", "Light green"),
("#9467BD", "Violet"),
("#ADFF2F", "Lime"),
("#E377C2", "Lavender"),
("#8C564B", "Brown"),
("#FFA07A", "Pink orange"),
("#FFE4F0", "Pastel pink"),
("#F0E68C", "Khaki"),
("#BCBD22", "Yellow green"),
("#800080", "Mauve"),
("#BA55D3", "Purple"),
("#DBDB8D", "Primrose"),
("#4B5563", "Fiord"),
("#C49C94", "Quicksand"),
("#7F7F7F", "Grey"),
("#26FCFF", "Aqua"),
("#20B2AA", "Pine green"),
("#FFDAB9", "Almond"),
("#D62728", "Cherry"),
("#DB6D4B", "Dusty orange"),
("#E0D3C0", "Dust storm"),
("#C9C7C1", "Silver"),
("#CED6DA", "Light gray"),
("#91B1C0", "Dark gray"),
("#F72681", "Deep pink"),
("#26662C", "Dark yellowish green"),
("#9C5B87", "Moderate reddish purple"),
("#C8B03C", "Strong yellow"),
("#6F79AB", "Brilliant purplish blue"),
],
default="#000000",
help_text="This color is used to represent the color label of the chosen language",
max_length=7,
verbose_name="language color",
),
),
]
40 changes: 40 additions & 0 deletions integreat_cms/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,46 @@ msgstr "Mandel"
msgid "Cherry"
msgstr "Kirsche"

#: cms/constants/language_color.py
msgid "Dusty orange"
msgstr "Stauborange"

#: cms/constants/language_color.py
msgid "Dust storm"
msgstr "Staubsturm"

#: cms/constants/language_color.py
msgid "Silver"
msgstr "Silber"

#: cms/constants/language_color.py
msgid "Light gray"
msgstr "Hellgrau"

#: cms/constants/language_color.py
msgid "Dark gray"
msgstr "Dunkelgrau"

#: cms/constants/language_color.py
msgid "Deep pink"
msgstr "Tiefrosa"

#: cms/constants/language_color.py
msgid "Dark yellowish green"
msgstr "Dunkelgelblich grün"

#: cms/constants/language_color.py
msgid "Moderate reddish purple"
msgstr "Mittleres purpurrot"

#: cms/constants/language_color.py
msgid "Strong yellow"
msgstr "Stark gelb"

#: cms/constants/language_color.py
msgid "Brilliant purplish blue"
msgstr "Leuchtend purpurblau"

#: cms/constants/linkcheck.py
msgid ""
"New Connection Error: Failed to establish a new connection: [Errno -2] Name "
Expand Down
2 changes: 2 additions & 0 deletions integreat_cms/release_notes/current/unreleased/2858.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
en: Add additional language colors
de: Füge zusätzliche Sprachfarben hinzu

0 comments on commit ab73d23

Please sign in to comment.