Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional language colors #3240

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "Dunkelgelbliches Grün"

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

#: cms/constants/language_color.py
msgid "Strong yellow"
msgstr "Starkes Gelb"

#: cms/constants/language_color.py
msgid "Brilliant purplish blue"
msgstr "Leuchtendes 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
Loading