# You must use a tab-size of 4 spaces to edit this file.
---
zenario_setup_language:
    title: ""
    key:
        id: ""
    identifier:
        css_class: language
        label: Language code
    tabs:
        settings:
            label: Settings
            edit_mode:
                priv: _PRIV_MANAGE_LANGUAGE_CONFIG
                enabled: Yes
            fields:
                default_language_info_snippet:
                    snippet:
                        html: |
                            <div class="zenario_fbInfo">
                                Default language for this site
                            </div>
                            
                            <p>
                                [[language_english_name]] [[is_or_will_be]] the default language for this site. All web pages will include its ISO code, "[[iso_code]]".
                            </p>

                            <p>
                                If the site has more than one enabled language, you may make a translation of each content item into the secondary languages.
                                The content items are related via a "translation chain", as they are likely to contain equivalent content.
                            </p>

                            <p>
                                Zenario can create "phrases" for words or sentences that appear in certain plugins that appear on web pages (such as Banner plugins).
                                It also does this for phrases included in modules' program code.
                            </p>

                            <p>
                                To create phrases, look for the "Uses phrases" icon on the settings panel of the plugin. The plugin must be on a page for which a non-[[language_english_name]] translation exists.
                                When that content item is viewed, a phrase is created in the database, and can be seen in the phrases panel.
                                You can find all phrases there, and enter translations for them into the site's other languages.
                            </p>
                    visible_if: |
                        zenarioAB.tuix.key.id && (!zenarioA.siteSettings.default_language || zenarioAB.tuix.key.id == zenarioA.siteSettings.default_language)
                secondary_language_info_snippet:
                    snippet:
                        html: |
                            <div class="zenario_fbInfo">
                               Secondary language
                            </div>
                             
                            <p>
                                [[language_english_name]] [[is_or_will_be]] enabled as a language of this site. All content items (web pages) will include its ISO code, "[[iso_code]]".
                            </p>

                            <p>
                                Zenario can create "phrases" for words or sentences that appear in certain plugins that appear on web pages (such as Banner plugins).
                            </p>

                            <p>
                                To create phrases, edit a plugin on a content item in the default language ([[default_language_english_name]]), and look for the "Uses phrases" icon on the settings panel of the plugin.
                                The plugin must be on a page for which a translation in [[language_english_name]] exists.
                                When the content item on which the plugin is placed is viewed (by an administrator or a visitor) a phrase is created in the phrases panel.
                                You can find all phrases there, and either enter translations for them, or export them as a spreadsheet to send to a translator, for subsequent import back into the panel.
                            </p>
                    visible_if: |
                        zenarioAB.tuix.key.id && (zenarioA.siteSettings.default_language && zenarioAB.tuix.key.id != zenarioA.siteSettings.default_language)
                english_name:
                    label: 'Language name (in English):'
                    type: text
                    maxlength: 100
                    validation:
                        required: Please enter the name of this language. This should be written in English as the Zenario administrator interface is in English.
                    side_note: >
                        Please enter the name of the language. This should be in English, as the Zenario administrator interface is in English.
                language_local_name:
                    label: 'Language name in its own language:'
                    type: text
                    maxlength: 100
                    validation:
                        required: Please enter the name of this language in its own language.
                    side_note: >
                        The name of the language, in its own language. This name will be displayed to visitors who see the site in that language.
                
                translate_phrases:
                    type: checkbox
                    readonly: true
                    label: 'Use phrases system'
                    show_phrase_icon: true
                uses_phrases:
                    same_row: true
                    note_below: |
                        Phrases are chunks of text, defined in plugin settings, Twig frameworks, and PHP program files.
                        They are originally in English as Zenario was developed in English, but you can create
                        translations of phrases into other languages.
                        When Zenario goes to display a phrase, it looks to see if a translation exists and displays
                        that if it can. Phrases are managed in the <em>Phrases</em> panel in Organizer.
                doesnt_use_phrases:
                    same_row: true
                    note_below: |
                        Phrases are chunks of text, defined in plugin settings, Twig frameworks, and PHP program files.
                        They are originally in English as Zenario was developed in English, but you can create
                        translations of phrases into other languages.
                        When Zenario goes to display a phrase, it looks to see if a translation exists and displays
                        that if it can. Phrases are managed in the <em>Phrases</em> panel in Organizer.
                flag_filename:
                    label: 'Flag CSS class name:'
                    type: text
                    maxlength: 5
                    style: >
                        width: 6em;
                    pre_field_html: >
                        lang_
                    side_note: |
                        Any language picker plugins will use this CSS class name when they try to show a flag.
                    validation:
                        required: Please enter a class name.
                
                language_picker_logic:
                    label: Visibility in language pickers
                    type: select
                    value: visible_or_disabled
                    values:
                        visible_or_disabled:
                            label: Always show. If no link is possible then show as a disabled link.
                        visible_or_hidden:
                            label: Only show if a link is possible, hide if one is not.
                        always_hidden:
                            label: Never show, even if a link is possible.
                
                detect:
                    type: checkbox
                    label: 'Use browser language detection'
                    redraw_onchange: Yes
                    side_note: |
                        Zenario will redirect a visitor to the home page of this language based on the
                        language requested by their browser.
                detect_lang_codes:
                    type: text
                    maxlength: 100
                    label: 'Detected language codes:'
                    side_note: |
                        When a visitor accesses the site without a specific page set in their URL,
                        they will be directed to the home page of this language if their requested
                        language matches one of the language codes listed here (comparison is case-insensitive).
                        Enter one or more language codes, separate multiple codes with a comma.
                    visible_if: "zenarioAB.value('detect')"
                    indent: 1
                    note_below: |
                        <p>The visitor's browser's language code must start with that code or be equal to it.</p>
                        <p>Multiple language codes may be entered (separated by commas). For example, for Portuguese, the value may be:<br /><code>pt-eu,pt-br,pt</code></p>
                
                search_type:
                    label: 'Search algorithm:'
                    type: radios
                    value: full_text
                    values:
                        full_text:
                            label: Use MySQL full-text search
                            side_note: Use individual words to search, e.g. a search for "van" will not match "caravan". We suggest this for most Western languages.
                        simple:
                            label: Use "LIKE" in searches
                            side_note: Search for anything containing the search term, e.g. a search for "van" would match "caravan". We suggest this for languages that use symbols such as Japanese and Chinese.
                dec_point:
                    label: 'When displaying numbers, decimal separator:'
                    type: text
                    note_below: Usually a period (.) or comma (,).
                    maxlength: 5
                    style: |
                        width: 2em;
                thousands_sep:
                    label: 'When displaying numbers, thousands separator:'
                    type: text
                    note_below: Usually a comma (,) a period (.) or a space.
                    maxlength: 5
                    style: |
                        width: 2em;
                use_domain:
                    visible_if: |
                        zenarioA.multipleLanguagesEnabled()
                        && zenarioA.siteSettings.primary_domain
                    label: 'Use a language-specific domain'
                    type: checkbox
                    redraw_onchange: true
                domain:
                    visible_if: |
                        zenarioA.multipleLanguagesEnabled()
                        && zenarioA.siteSettings.primary_domain
                        && zenarioAB.value('use_domain')
                    indent: 1
                    label: 'Domain:'
                    type: text
                    side_note: |
                        Links to content items in this language will use this domain in the URL.
                primary_domain_warning:
                    visible_if: |
                        zenarioA.multipleLanguagesEnabled()
                        && !zenarioA.siteSettings.primary_domain
                    label: 'Use a language-specific domain'
                    type: checkbox
                    readonly: true
                    side_note: |
                        If enabled, pages in this language will be available via a different domain or subdomain from the rest of the site.
                        You need to set a primary domain before you can use a language-specific domain.
                        Please go to <em>Configuration -&gt; Site settings -&gt; Domains</em>
                        and set the primary domain.
                
                show_untranslated_content_items:
                    visible_if: |
                        zenarioAB.tuix.key.id != zenarioA.siteSettings.default_language
                    label: ''
                    type: radios
                    values:
                        0:
                            ord: 2
                            label: ''
                        1:
                            ord: 1
                            label: ''
                
                sync_assist:
                    type: checkbox
                    label: 'Show an orange background colour in Organizer where a translation is missing in this language.'
