Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-826

Phrase type detection based on it's name

    XMLWordPrintable

    Details

    • Additional information:
      Hide

      Plan:

      1. add new "lc_" phrase label prefix (to phrase name validate regex);
      2. remove "Phrase Type" field from phrase form;
      3. set phrase type automatically based on phrase label prefix;
      4. change prefix (and type) for phrases, that can be used in both places (e.g. field option phrases for sure).
      5. create fixed language pack + upgrade script that will rename Phrase & PhraseKey columns during an upgrade.

      Show
      Plan: 1. add new "lc_" phrase label prefix (to phrase name validate regex); 2. remove "Phrase Type" field from phrase form; 3. set phrase type automatically based on phrase label prefix; 4. change prefix (and type) for phrases, that can be used in both places (e.g. field option phrases for sure). 5. create fixed language pack + upgrade script that will rename Phrase & PhraseKey columns during an upgrade.
    • Change Log Message:
      Simplified phrase adding screen
    • Story Points:
      2
    • External issue ID:
      1024
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      On phrase adding screen you need to enter:

      • phrase label;
      • phrase translation;
      • phrase type.

      However phrase type can be automatically guessed based on phrase label prefix:

      • lu_ - Front-end;
      • la_ - Administrative Console;
      • lc_ (NEW) - Can be used on both Front-end and Administrative Console.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: