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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add .mo file
timarney committed Aug 23, 2021
commit 23c9fb10f20a3775ab6cc658316ad9555f36e245
10 changes: 9 additions & 1 deletion wordpress/wp-content/themes/cds-default/functions.php
Original file line number Diff line number Diff line change
@@ -35,7 +35,15 @@ function cds_setup(): void
* If you're building a theme based on cds-default, use a find and replace
* to change 'cds' to the name of your theme in all the template files.
*/
load_theme_textdomain('cds', get_template_directory() . '/languages');
$result = load_theme_textdomain('cds', get_template_directory() . '/languages');
if($result){
echo "loaded";
}else{
echo "nope";

}
$locale = apply_filters( 'theme_locale', determine_locale(), "cds" );
echo get_template_directory().' cds' . '-' . $locale . '.mo';

// Add default posts and comments RSS feed links to head.
add_theme_support('automatic-feed-links');
Binary file not shown.
117 changes: 117 additions & 0 deletions wordpress/wp-content/themes/cds-default/languages/cds-fr_FR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2021-08-23T18:56:34+00:00\n"
"PO-Revision-Date: 2021-08-23 15:22-0400\n"
"X-Generator: Poedit 3.0\n"
"X-Domain: cds\n"
"Last-Translator: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Language: fr_CA\n"

#: 404.php:20
msgid "Oops! That page can’t be found."
msgstr ""

#: 404.php:24
msgid ""
"It looks like nothing was found at this location. Maybe try one of the links "
"below or a search?"
msgstr ""

#: 404.php:33
msgid "Most Used Categories"
msgstr ""

#. translators: %1$s: smiley
#: 404.php:51
msgid "Try looking in the monthly archives. %1$s"
msgstr ""

#: functions.php:61
msgid "Primary"
msgstr ""

#: header.php:40
msgid "Skip to content"
msgstr ""

#: header.php:72 header.php:84
msgid "Search"
msgstr "Search FR"

#: header.php:76 header.php:78
msgid "Search Canada.ca"
msgstr "Search Canada.ca FRENCH"

#: header.php:95 header.php:97
msgid "Menu"
msgstr ""

#: header.php:97
msgid "Main"
msgstr ""

#: inc/template-functions.php:23
msgid "Document navigation"
msgstr ""

#: inc/template-functions.php:26
msgid "Next blog post"
msgstr ""

#: inc/template-functions.php:33
msgid "Previous blog post"
msgstr ""

#. translators: %s: post author.
#: inc/template-tags.php:46
msgctxt "post author"
msgid "by %s"
msgstr ""

#. translators: %s: search query.
#: search.php:24
msgid "Search Results for: %s"
msgstr ""

#: template-parts/content-none.php:17
msgid "Nothing Found"
msgstr ""

#. translators: 1: link to WP admin new post page.
#: template-parts/content-none.php:26
msgid ""
"Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
msgstr ""

#: template-parts/content-none.php:38
msgid ""
"Sorry, but nothing matched your search terms. Please try again with some "
"different keywords."
msgstr ""

#: template-parts/content-none.php:44
msgid ""
"It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps "
"searching can help."
msgstr ""

#: template-parts/content-page.php:26
msgid "Pages:"
msgstr ""

#. translators: %s: Name of current post. Only visible to screen readers
#: template-parts/content-page.php:40
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
msgstr ""

#. translators: %s: Name of current post. Only visible to screen readers
#: template-parts/content.php:35
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr ""