Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
condition to avoid polylang error
Browse files Browse the repository at this point in the history
  • Loading branch information
hugosolar committed May 2, 2019
1 parent 3767afd commit 14a4a16
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions inc/multilang-strings.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
// Polylang translate strings
pll_register_string( 'view-more', 'View more', 'general');
pll_register_string( 'view-less', 'View less', 'general');
pll_register_string( 'loading', 'Loading...', 'general');
if (function_exists('pll_register_string')) {
pll_register_string( 'view-more', 'View more', 'general');
pll_register_string( 'view-less', 'View less', 'general');
pll_register_string( 'loading', 'Loading...', 'general');

pll_register_string( 'title-highlight', 'Highlight', 'section-titles');
pll_register_string( 'title-impact', 'Our impact by the numbers', 'section-titles');
pll_register_string( 'title-licenses', 'The data', 'section-titles');
pll_register_string( 'title-platform', 'Major platforms sharing CC work', 'section-titles');
pll_register_string( 'title-financials', 'Financials', 'section-titles');
pll_register_string( 'title-highlight', 'Highlight', 'section-titles');
pll_register_string( 'title-impact', 'Our impact by the numbers', 'section-titles');
pll_register_string( 'title-licenses', 'The data', 'section-titles');
pll_register_string( 'title-platform', 'Major platforms sharing CC work', 'section-titles');
pll_register_string( 'title-financials', 'Financials', 'section-titles');
}

0 comments on commit 14a4a16

Please sign in to comment.