Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-10-18 22:46:46

PhilippeH
Member
From: Paris, France
Registered: 2014-04-11
Posts: 167

WordPress translation

Hello,

How can we translate the words: Newer / Older, theme for WordPress?

Thank you.

Philippe

Offline

#2 2016-10-19 01:33:15

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: WordPress translation

I asked this question to Matt during beta testing of the Wordpress plugin. This was his answer:

For Wordpress, all localization should be handled via Wordpress' i18n support.

The Language Files paragraph in following article provides a nice overview: https://www.smashingmagazine.com/2011/1 … uage-files.

Since the Wordpress theme directory is managed by Backlight, you will need to create a child theme where you place your language files.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#3 2016-10-19 02:14:44

PhilippeH
Member
From: Paris, France
Registered: 2014-04-11
Posts: 167

Re: WordPress translation

Thank you for the answer,

Okay, so I'll create a child theme!

Moreover, it may be best to that point I put the css code for Wordpress theme also in children.
What do you think ?

Philippe

Offline

#4 2016-10-19 02:16:20

PhilippeH
Member
From: Paris, France
Registered: 2014-04-11
Posts: 167

Re: WordPress translation

Sorry I had not yet seen the answer to my other question.

Offline

#5 2016-10-19 02:30:05

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: WordPress translation

PhilippeH wrote:

Moreover, it may be best to that point I put the css code for Wordpress theme also in children.
What do you think ?

Philippe

Yes, because I had a child theme, I put all my Wordpress styling into the child's theme style.css. Otherwise custom.css would have be sufficient.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#6 2016-10-19 02:33:24

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: WordPress translation

In order to use the child theme's style.css, I had to add following code in functions.php:

<?php

function child_theme_enqueue_styles() {
	// Add local style
	wp_enqueue_style('child-theme', get_stylesheet_directory_uri() .'/style.css', array('parent-theme'));
}
add_action( 'wp_enqueue_scripts', 'child_theme_enqueue_styles' );

?>

Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#7 2016-10-19 15:01:03

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: WordPress translation

If you're building a child theme anyway, you might divide your CSS according to purpose:

  * Use Custom CSS for any styling relevant to both Backlight and Wordpress.
  * Use child theme CSS for any styling applying only to Wordpress.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB