level-level / Clarkson-Theme

A modern day Twig theme with Gulp, BrowserSync and NPM
http://wp-clarkson.com/theme
15 stars 1 forks source link

Add language support + default empty .pot file #36

Open jmslbam opened 6 years ago

jmslbam commented 6 years ago

Default composer require level-level/clarkson-wp-cli-twig-translations with require-dev

Support.php > load_theme_textdomain( 'clarkson-theme', get_template_directory() . '/language' );

clarkson-theme.pot.zip

kevinpoot commented 6 years ago

don't ignore the whole dist file because the rendered translations folder won;t be searched.

"X-Poedit-SearchPathExcluded-4: dist/images\n"
"X-Poedit-SearchPathExcluded-5: dist/fonts\n"
"X-Poedit-SearchPathExcluded-6: dist/scripts\n"
"X-Poedit-SearchPathExcluded-7: dist/styles\n"
"X-Poedit-SearchPathExcluded-7: dist/styleguide\n"