Move all admin setting descriptions to locales files

- Move all description fields from settings.yml to locales/en.yml and locales/hu.yml
- Settings descriptions now fully localized under theme_metadata.settings
- Cleaner settings.yml without inline description objects
- All admin UI text now translatable and maintainable in locale files
This commit is contained in:
gabeszm 2025-10-17 17:22:41 +02:00
parent aeb7950d14
commit 7b050f4a3a
3 changed files with 102 additions and 150 deletions

View file

@ -1,6 +1,57 @@
en:
theme_metadata:
description: "Welcome banner theme component for Nyíltvilág community"
settings:
enable_welcome_banner: "Enable the welcome banner on the homepage"
banner_position: "Banner position: 'below_header' (after navigation menu) or 'above_content' (before main content)"
show_on_pages: "Display banner on 'homepage_only' or 'all_pages'"
primary_color: "Primary accent color. Supports: hex (#e81f2d), rgb(232,31,45), rgba(232,31,45,0.9), hsl(355,81%,52%)"
page_background: "Hero section background. Supports colors and gradients. Examples: #14191f OR linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
card_background: "Card background. Supports colors and gradients. Examples: #1b2028 OR linear-gradient(to right, #232526, #414345)"
text_color: "Text color. Supports: hex, rgb, rgba, hsl. Example: #ddd OR rgba(255,255,255,0.9)"
hero_title_html: "Hero section title (HTML allowed)"
hero_content_html: "Hero section content for logged-in users (HTML allowed)"
hero_title_anonymous_html: "Hero section title for anonymous users (HTML allowed)"
hero_content_anonymous_html: "Hero section content for anonymous users (HTML allowed)"
enable_hero_search: "Enable search input in hero section (desktop only)"
search_placeholder: "Search input placeholder text"
cta_card_1_enabled: "Enable CTA card 1"
cta_card_1_icon_type: "CTA card 1 icon type"
cta_card_1_icon_emoji: "CTA card 1 emoji icon"
cta_card_1_icon_font_awesome: "CTA card 1 Font Awesome icon (e.g., 'book', 'rocket', 'shield'). See: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_1_title: "CTA card 1 title"
cta_card_1_description: "CTA card 1 description"
cta_card_1_cta_text: "CTA card 1 call-to-action text"
cta_card_1_cta_icon: "CTA card 1 arrow icon (Font Awesome). Examples: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_1_url: "CTA card 1 URL"
cta_card_2_enabled: "Enable CTA card 2"
cta_card_2_icon_type: "CTA card 2 icon type"
cta_card_2_icon_emoji: "CTA card 2 emoji icon"
cta_card_2_icon_font_awesome: "CTA card 2 Font Awesome icon (e.g., 'handshake', 'users', 'comments'). See: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_2_title: "CTA card 2 title"
cta_card_2_description: "CTA card 2 description"
cta_card_2_cta_text: "CTA card 2 call-to-action text"
cta_card_2_cta_icon: "CTA card 2 arrow icon (Font Awesome). Examples: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_2_url: "CTA card 2 URL"
cta_card_3_enabled: "Enable CTA card 3"
cta_card_3_icon_type: "CTA card 3 icon type"
cta_card_3_icon_emoji: "CTA card 3 emoji icon"
cta_card_3_icon_font_awesome: "CTA card 3 Font Awesome icon (e.g., 'tools', 'code', 'laptop-code'). See: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_3_title: "CTA card 3 title"
cta_card_3_description: "CTA card 3 description"
cta_card_3_cta_text: "CTA card 3 call-to-action text"
cta_card_3_cta_icon: "CTA card 3 arrow icon (Font Awesome). Examples: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_3_url: "CTA card 3 URL"
cta_card_4_enabled: "Enable CTA card 4"
cta_card_4_icon_type: "CTA card 4 icon type"
cta_card_4_icon_emoji: "CTA card 4 emoji icon"
cta_card_4_icon_font_awesome: "CTA card 4 Font Awesome icon (e.g., 'lock', 'shield-alt', 'user-shield'). See: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_4_title: "CTA card 4 title"
cta_card_4_description: "CTA card 4 description"
cta_card_4_cta_text: "CTA card 4 call-to-action text"
cta_card_4_cta_icon: "CTA card 4 arrow icon (Font Awesome). Examples: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_4_url: "CTA card 4 URL"
custom_css: "Custom CSS to override or extend banner styles. Example: .welcome-card { background: blue; }"
js:
welcome_banner:
buttons:

View file

@ -1,6 +1,57 @@
hu:
theme_metadata:
description: "Üdvözlő banner téma komponens a Nyíltvilág közösség számára"
settings:
enable_welcome_banner: "Üdvözlő banner megjelenítése a főoldalon"
banner_position: "Banner pozíció: 'below_header' (navigációs menü után) vagy 'above_content' (fő tartalom előtt)"
show_on_pages: "Banner megjelenítése 'homepage_only' (csak főoldal) vagy 'all_pages' (minden oldal)"
primary_color: "Elsődleges hangsúly szín. Támogatott: hex (#e81f2d), rgb(232,31,45), rgba(232,31,45,0.9), hsl(355,81%,52%)"
page_background: "Hero szekció háttér. Támogatott színek és átmenetek. Példák: #14191f VAGY linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
card_background: "Kártya háttér. Támogatott színek és átmenetek. Példák: #1b2028 VAGY linear-gradient(to right, #232526, #414345)"
text_color: "Szöveg színe. Támogatott: hex, rgb, rgba, hsl. Példa: #ddd VAGY rgba(255,255,255,0.9)"
hero_title_html: "Hero szekció címe (HTML használható)"
hero_content_html: "Hero szekció tartalma bejelentkezett felhasználóknak (HTML használható)"
hero_title_anonymous_html: "Hero szekció címe nem bejelentkezett felhasználóknak (HTML használható)"
hero_content_anonymous_html: "Hero szekció tartalma nem bejelentkezett felhasználóknak (HTML használható)"
enable_hero_search: "Keresőmező megjelenítése a hero szekcióban (csak asztalon)"
search_placeholder: "Keresőmező placeholder szövege"
cta_card_1_enabled: "1. CTA kártya engedélyezése"
cta_card_1_icon_type: "1. CTA kártya ikon típusa"
cta_card_1_icon_emoji: "1. CTA kártya emoji ikon"
cta_card_1_icon_font_awesome: "1. CTA kártya Font Awesome ikon (pl. 'book', 'rocket', 'shield'). Lásd: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_1_title: "1. CTA kártya címe"
cta_card_1_description: "1. CTA kártya leírása"
cta_card_1_cta_text: "1. CTA kártya cselekvésre ösztönző szöveg"
cta_card_1_cta_icon: "1. CTA kártya nyíl ikon (Font Awesome). Példák: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_1_url: "1. CTA kártya URL-je"
cta_card_2_enabled: "2. CTA kártya engedélyezése"
cta_card_2_icon_type: "2. CTA kártya ikon típusa"
cta_card_2_icon_emoji: "2. CTA kártya emoji ikon"
cta_card_2_icon_font_awesome: "2. CTA kártya Font Awesome ikon (pl. 'handshake', 'users', 'comments'). Lásd: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_2_title: "2. CTA kártya címe"
cta_card_2_description: "2. CTA kártya leírása"
cta_card_2_cta_text: "2. CTA kártya cselekvésre ösztönző szöveg"
cta_card_2_cta_icon: "2. CTA kártya nyíl ikon (Font Awesome). Példák: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_2_url: "2. CTA kártya URL-je"
cta_card_3_enabled: "3. CTA kártya engedélyezése"
cta_card_3_icon_type: "3. CTA kártya ikon típusa"
cta_card_3_icon_emoji: "3. CTA kártya emoji ikon"
cta_card_3_icon_font_awesome: "3. CTA kártya Font Awesome ikon (pl. 'tools', 'code', 'laptop-code'). Lásd: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_3_title: "3. CTA kártya címe"
cta_card_3_description: "3. CTA kártya leírása"
cta_card_3_cta_text: "3. CTA kártya cselekvésre ösztönző szöveg"
cta_card_3_cta_icon: "3. CTA kártya nyíl ikon (Font Awesome). Példák: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_3_url: "3. CTA kártya URL-je"
cta_card_4_enabled: "4. CTA kártya engedélyezése"
cta_card_4_icon_type: "4. CTA kártya ikon típusa"
cta_card_4_icon_emoji: "4. CTA kártya emoji ikon"
cta_card_4_icon_font_awesome: "4. CTA kártya Font Awesome ikon (pl. 'lock', 'shield-alt', 'user-shield'). Lásd: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_4_title: "4. CTA kártya címe"
cta_card_4_description: "4. CTA kártya leírása"
cta_card_4_cta_text: "4. CTA kártya cselekvésre ösztönző szöveg"
cta_card_4_cta_icon: "4. CTA kártya nyíl ikon (Font Awesome). Példák: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_4_url: "4. CTA kártya URL-je"
custom_css: "Egyedi CSS a banner stílusok felülírásához vagy kiterjesztéséhez. Példa: .welcome-card { background: blue; }"
js:
welcome_banner:
buttons:

View file

@ -5,9 +5,6 @@
enable_welcome_banner:
default: true
type: bool
description:
en: Enable the welcome banner on the homepage
hu: Üdvözlő banner megjelenítése a főoldalon
banner_position:
default: "above_content"
@ -15,9 +12,6 @@ banner_position:
choices:
- below_header
- above_content
description:
en: "Banner position: 'below_header' (after navigation menu) or 'above_content' (before main content)"
hu: "Banner pozíció: 'below_header' (navigációs menü után) vagy 'above_content' (fő tartalom előtt)"
show_on_pages:
default: "homepage_only"
@ -25,9 +19,6 @@ show_on_pages:
choices:
- homepage_only
- all_pages
description:
en: "Display banner on 'homepage_only' or 'all_pages'"
hu: "Banner megjelenítése 'homepage_only' (csak főoldal) vagy 'all_pages' (minden oldal)"
# =============================================================================
# 🎨 COLOR SETTINGS
@ -36,32 +27,20 @@ show_on_pages:
primary_color:
default: "#e81f2d"
type: string
description:
en: "Primary accent color. Supports: hex (#e81f2d), rgb(232,31,45), rgba(232,31,45,0.9), hsl(355,81%,52%)"
hu: "Elsődleges hangsúly szín. Támogatott: hex (#e81f2d), rgb(232,31,45), rgba(232,31,45,0.9), hsl(355,81%,52%)"
page_background:
default: "linear-gradient(136deg, rgba(205, 29, 29, 0.2), rgba(155, 0, 0, 0))"
type: string
textarea: true
description:
en: "Hero section background. Supports colors and gradients. Examples: #14191f OR linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
hu: "Hero szekció háttér. Támogatott színek és átmenetek. Példák: #14191f VAGY linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
card_background:
default: "#1b2028"
type: string
textarea: true
description:
en: "Card background. Supports colors and gradients. Examples: #1b2028 OR linear-gradient(to right, #232526, #414345)"
hu: "Kártya háttér. Támogatott színek és átmenetek. Példák: #1b2028 VAGY linear-gradient(to right, #232526, #414345)"
text_color:
default: "#dddddd"
type: string
description:
en: "Text color. Supports: hex, rgb, rgba, hsl. Example: #ddd OR rgba(255,255,255,0.9)"
hu: "Szöveg színe. Támogatott: hex, rgb, rgba, hsl. Példa: #ddd VAGY rgba(255,255,255,0.9)"
# =============================================================================
# 🎯 HERO SECTION
@ -71,9 +50,6 @@ hero_title_html:
default: "👋 Üdvözöllek a <strong>Nyíltvilág</strong> fórumon!"
type: string
textarea: true
description:
en: Hero section title (HTML allowed)
hu: Hero szekció címe (HTML használható)
hero_content_html:
default: |
@ -83,17 +59,11 @@ hero_content_html:
<p>Csatlakozz, és légy részese egy nyitott és inspiráló közösségnek! 🌍✨</p>
type: string
textarea: true
description:
en: Hero section content for logged-in users (HTML allowed)
hu: Hero szekció tartalma bejelentkezett felhasználóknak (HTML használható)
hero_title_anonymous_html:
default: "👋 Üdvözlünk a <strong>Nyíltvilág</strong> fórumon!"
type: string
textarea: true
description:
en: Hero section title for anonymous users (HTML allowed)
hu: Hero szekció címe nem bejelentkezett felhasználóknak (HTML használható)
hero_content_anonymous_html:
default: |
@ -101,9 +71,6 @@ hero_content_anonymous_html:
<p>Csatlakozz hozzánk, és légy részese egy nyitott és inspiráló közösségnek, ahol megoszthatod a tudásod, kérdezhetsz, vagy tapasztalatokat cserélhetsz másokkal! 🌍✨</p>
type: string
textarea: true
description:
en: Hero section content for anonymous users (HTML allowed)
hu: Hero szekció tartalma nem bejelentkezett felhasználóknak (HTML használható)
# =============================================================================
# 🔍 SEARCH SETTINGS
@ -112,16 +79,10 @@ hero_content_anonymous_html:
enable_hero_search:
default: true
type: bool
description:
en: Enable search input in hero section (desktop only)
hu: Keresőmező megjelenítése a hero szekcióban (csak asztalon)
search_placeholder:
default: "Keresés a fórumon…"
type: string
description:
en: Search input placeholder text
hu: Keresőmező placeholder szövege
# =============================================================================
# 📚 CTA CARD 1
@ -130,9 +91,6 @@ search_placeholder:
cta_card_1_enabled:
default: true
type: bool
description:
en: Enable CTA card 1
hu: 1. CTA kártya engedélyezése
cta_card_1_icon_type:
default: "emoji"
@ -140,58 +98,34 @@ cta_card_1_icon_type:
choices:
- emoji
- font_awesome
description:
en: CTA card 1 icon type
hu: 1. CTA kártya ikon típusa
cta_card_1_icon_emoji:
default: "📚"
type: string
description:
en: CTA card 1 emoji icon
hu: 1. CTA kártya emoji ikon
cta_card_1_icon_font_awesome:
default: "book"
type: string
description:
en: "CTA card 1 Font Awesome icon (e.g., 'book', 'rocket', 'shield'). See: https://fontawesome.com/icons?d=gallery&m=free"
hu: "1. CTA kártya Font Awesome ikon (pl. 'book', 'rocket', 'shield'). Lásd: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_1_title:
default: "Tudásbázis"
type: string
description:
en: CTA card 1 title
hu: 1. CTA kártya címe
cta_card_1_description:
default: "Tudnivalók, útmutatók, tippek."
type: string
description:
en: CTA card 1 description
hu: 1. CTA kártya leírása
cta_card_1_cta_text:
default: "Mutasd az anyagokat"
type: string
description:
en: CTA card 1 call-to-action text
hu: 1. CTA kártya cselekvésre ösztönző szöveg
cta_card_1_cta_icon:
default: "chevron-right"
type: string
description:
en: "CTA card 1 arrow icon (Font Awesome). Examples: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
hu: "1. CTA kártya nyíl ikon (Font Awesome). Példák: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_1_url:
default: "https://www.nyiltvilag.hu/c/tudasbazis/9"
type: string
description:
en: CTA card 1 URL
hu: 1. CTA kártya URL-je
# =============================================================================
# 🤝 CTA CARD 2
@ -200,9 +134,6 @@ cta_card_1_url:
cta_card_2_enabled:
default: true
type: bool
description:
en: Enable CTA card 2
hu: 2. CTA kártya engedélyezése
cta_card_2_icon_type:
default: "emoji"
@ -210,58 +141,34 @@ cta_card_2_icon_type:
choices:
- emoji
- font_awesome
description:
en: CTA card 2 icon type
hu: 2. CTA kártya ikon típusa
cta_card_2_icon_emoji:
default: "🤝"
type: string
description:
en: CTA card 2 emoji icon
hu: 2. CTA kártya emoji ikon
cta_card_2_icon_font_awesome:
default: "handshake"
type: string
description:
en: "CTA card 2 Font Awesome icon (e.g., 'handshake', 'users', 'comments'). See: https://fontawesome.com/icons?d=gallery&m=free"
hu: "2. CTA kártya Font Awesome ikon (pl. 'handshake', 'users', 'comments'). Lásd: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_2_title:
default: "Általános"
type: string
description:
en: CTA card 2 title
hu: 2. CTA kártya címe
cta_card_2_description:
default: "Ide jöhet minden is...majdnem."
type: string
description:
en: CTA card 2 description
hu: 2. CTA kártya leírása
cta_card_2_cta_text:
default: "Mondd el te is"
type: string
description:
en: CTA card 2 call-to-action text
hu: 2. CTA kártya cselekvésre ösztönző szöveg
cta_card_2_cta_icon:
default: "chevron-right"
type: string
description:
en: "CTA card 2 arrow icon (Font Awesome). Examples: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
hu: "2. CTA kártya nyíl ikon (Font Awesome). Példák: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_2_url:
default: "https://www.nyiltvilag.hu/c/altalanos/4"
type: string
description:
en: CTA card 2 URL
hu: 2. CTA kártya URL-je
# =============================================================================
# 🛠️ CTA CARD 3
@ -270,9 +177,6 @@ cta_card_2_url:
cta_card_3_enabled:
default: true
type: bool
description:
en: Enable CTA card 3
hu: 3. CTA kártya engedélyezése
cta_card_3_icon_type:
default: "emoji"
@ -280,58 +184,34 @@ cta_card_3_icon_type:
choices:
- emoji
- font_awesome
description:
en: CTA card 3 icon type
hu: 3. CTA kártya ikon típusa
cta_card_3_icon_emoji:
default: "🛠️"
type: string
description:
en: CTA card 3 emoji icon
hu: 3. CTA kártya emoji ikon
cta_card_3_icon_font_awesome:
default: "tools"
type: string
description:
en: "CTA card 3 Font Awesome icon (e.g., 'tools', 'code', 'laptop-code'). See: https://fontawesome.com/icons?d=gallery&m=free"
hu: "3. CTA kártya Font Awesome ikon (pl. 'tools', 'code', 'laptop-code'). Lásd: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_3_title:
default: "Fejlesztés"
type: string
description:
en: CTA card 3 title
hu: 3. CTA kártya címe
cta_card_3_description:
default: "Nézd meg, min dolgoznak mások."
type: string
description:
en: CTA card 3 description
hu: 3. CTA kártya leírása
cta_card_3_cta_text:
default: "Fejlesszünk"
type: string
description:
en: CTA card 3 call-to-action text
hu: 3. CTA kártya cselekvésre ösztönző szöveg
cta_card_3_cta_icon:
default: "chevron-right"
type: string
description:
en: "CTA card 3 arrow icon (Font Awesome). Examples: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
hu: "3. CTA kártya nyíl ikon (Font Awesome). Példák: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_3_url:
default: "https://www.nyiltvilag.hu/c/fejlesztes/7"
type: string
description:
en: CTA card 3 URL
hu: 3. CTA kártya URL-je
# =============================================================================
# 🔒 CTA CARD 4
@ -340,9 +220,6 @@ cta_card_3_url:
cta_card_4_enabled:
default: true
type: bool
description:
en: Enable CTA card 4
hu: 4. CTA kártya engedélyezése
cta_card_4_icon_type:
default: "emoji"
@ -350,58 +227,34 @@ cta_card_4_icon_type:
choices:
- emoji
- font_awesome
description:
en: CTA card 4 icon type
hu: 4. CTA kártya ikon típusa
cta_card_4_icon_emoji:
default: "🔒"
type: string
description:
en: CTA card 4 emoji icon
hu: 4. CTA kártya emoji ikon
cta_card_4_icon_font_awesome:
default: "lock"
type: string
description:
en: "CTA card 4 Font Awesome icon (e.g., 'lock', 'shield-alt', 'user-shield'). See: https://fontawesome.com/icons?d=gallery&m=free"
hu: "4. CTA kártya Font Awesome ikon (pl. 'lock', 'shield-alt', 'user-shield'). Lásd: https://fontawesome.com/icons?d=gallery&m=free"
cta_card_4_title:
default: "Biztonság"
type: string
description:
en: CTA card 4 title
hu: 4. CTA kártya címe
cta_card_4_description:
default: "Mindig nézz hátra ki követ."
type: string
description:
en: CTA card 4 description
hu: 4. CTA kártya leírása
cta_card_4_cta_text:
default: "Védd meg magad"
type: string
description:
en: CTA card 4 call-to-action text
hu: 4. CTA kártya cselekvésre ösztönző szöveg
cta_card_4_cta_icon:
default: "chevron-right"
type: string
description:
en: "CTA card 4 arrow icon (Font Awesome). Examples: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
hu: "4. CTA kártya nyíl ikon (Font Awesome). Példák: 'chevron-right', 'arrow-right', 'angles-right', 'circle-arrow-right'"
cta_card_4_url:
default: "https://www.nyiltvilag.hu/c/biztonsag/8"
type: string
description:
en: CTA card 4 URL
hu: 4. CTA kártya URL-je
# =============================================================================
# 🎨 ADVANCED CUSTOMIZATION
@ -411,6 +264,3 @@ custom_css:
default: ""
type: string
textarea: true
description:
en: "Custom CSS to override or extend banner styles. Example: .welcome-card { background: blue; }"
hu: "Egyedi CSS a banner stílusok felülírásához vagy kiterjesztéséhez. Példa: .welcome-card { background: blue; }"