Skip to content

Commit

Permalink
langauage translate done using poedit software
Browse files Browse the repository at this point in the history
  • Loading branch information
ashrafbd1496 committed Aug 1, 2021
1 parent b69d7fa commit b0170e9
Show file tree
Hide file tree
Showing 6 changed files with 877 additions and 2 deletions.
3 changes: 2 additions & 1 deletion category.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
<section class="s-content">
<div class="row narrow">
<div class="col-full s-content__header" data-aos="fade-up">
<h3><?php _e('Translatable Text','philosophy') ?></h3>
<h4><?php _e('Lanugage Translate','philosophy') ?></h4>
<?php echo apply_filters('philosophy_text','filter hook test','second param test'); ?>
<?php do_action('philosophy_before_category_title'); ?>
<h1>Category: <?php single_cat_title(); ?></h1>
<?php do_action('philosophy_after_category_title'); ?>

<p class="lead"><?php echo category_description(); ?></p>
<?php do_action('philosophy_after_category_description'); ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
defined('VERSION',wp_get_theme()->get('Version'));
}
function philosophy_after_setup(){
load_theme_textdomain( 'philosophy');
load_theme_textdomain( 'philosophy',get_theme_file_path('/languages'));
add_theme_support('post-thumbnails');
add_theme_support('custom-logo');
add_theme_support('title-tag');
Expand Down
Binary file added languages/en_US.mo
Binary file not shown.
Loading

0 comments on commit b0170e9

Please sign in to comment.