Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.27 KB

i18n.md

File metadata and controls

39 lines (29 loc) · 1.27 KB

SettingsBundle

I18n

Define custom settings names

  1. Create yml or xliff file for domain settings (example: settings.en.yml) in any of your bundles or directly in app/Resources (note: your bundle must be activated after DmishhSettingsBundle in AppKernel.php)
  2. Add your settings translations like in the following example for yml format:
labels:
    my_custom_setting: My Custom Label
    profile_update_interval: Profile update interval

Clear your cache with app/console cache:clear

Provide translations for choice type

  1. Create, if not yet, yml or xliff file for domain settings (example: settings.en.yml) in any of your bundles or directly in app/Resources (note: your bundle must be activated after DmishhSettingsBundle in AppKernel.php)
  2. Add your choices translations like in the following example for yml format (add _choice postfix to your setting's name):
labels:
    gender: Gender
    gender_choices:
        m: Male
        f: Female

Clear your cache with app/console cache:clear