Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-1835

Differentiate backend from front end translatable messages

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • 1.20.0
    • None
    • 8
    • Translations
    • Sprint #43

      In order to make the life easier to all translators of our plugins, and because several NROs have express the wish not to have to translate both back end and front end, we need to seperate the backend from the front end messages.

      Task: Investigate the following two methods (With order of preference):

      a) Use a different domain for the backend messages

      b) Add a /* translators:  comment in the backend messages, where the comment starts with "Backend"

      Further reading: https://codex.wordpress.org/I18n_for_WordPress_Developers

      /* translators: draft saved date format, see http://php.net/date */
      $draft_saved_date_format = esc_html__( 'g:i:s a', 'my-text-domain' );
      

      This to be done both in master-theme and plugin-blocks

       

      UPDATE: The first option should be checked against the Loco Translate plugin which we are using on the handbook for translation, to see if the loco translate plugin can handle multiple domains in one plugin/theme.

       

            kdiamant Kyriakos diamantis
            kkokkoro Konstantinos Kokkorogiannis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: