Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Update make-pot command (translations) #95

Merged
merged 8 commits into from
Aug 24, 2021
Merged

Update make-pot command (translations) #95

merged 8 commits into from
Aug 24, 2021

Conversation

timarney
Copy link
Member

@timarney timarney commented Aug 23, 2021

Adds command to generate .pot file + updates the text domain

@timarney timarney changed the title Update make pot command WIP - Update make pot command Aug 23, 2021
@timarney timarney changed the title WIP - Update make pot command Update make pot command Aug 24, 2021
@timarney timarney changed the title Update make pot command Update make-pot command Aug 24, 2021
@timarney timarney changed the title Update make-pot command Update make-pot command (translations) Aug 24, 2021
Copy link
Member

@dsamojlenko dsamojlenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - we should probably update the README with these translation instructions as well

@timarney timarney merged commit c1edcaf into main Aug 24, 2021
@timarney timarney deleted the theme-pot-command branch August 24, 2021 14:21
@timarney
Copy link
Member Author

Generating + updating translations

  1. Add / update the strings in the theme file(s) cds-default

... From inside the container ... wordpress dir

  1. composer make-pot - this will generate a .pot file for the theme (updating is the same process)

  2. Open the cds-snc-fr_FR.po using https://poedit.net

  3. Update the .po file (filename: cds-snc-fr_FR.po)

Screen Shot 2021-08-24 at 9 18 24 AM

  1. Add your translations

Screen Shot 2021-08-24 at 9 38 00 AM

  1. Compile to .mo file (filename: cds-snc-fr_FR.mo)

Screen Shot 2021-08-24 at 9 29 21 AM

  1. View your theme edits

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants