Git Product home page Git Product logo

childify-me's People

Contributors

eri-trabiccolo avatar jts-il avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jts-il

childify-me's Issues

Don't split sentences into several strings

Hi,
I can see a problem around https://plugins.trac.wordpress.org/browser/childify-me/trunk/class-childify-me.php#L422

					printf('<div id="cm-success" class="updated"><p>%1$s <span id="cm-ctheme"></span> %2$s</p>%3$s</div>',
						esc_html__( 'Child theme', 'childify-me' ),
						esc_html__( 'successfully created!', 'childify-me' ),
						( ! is_multisite() ) ?
							sprintf( '<a id="%3$s" class="button button-primary" href="%1$s" title="%2$s" tabindex="0">%2$s</a>',
								sprintf( '%1$s?theme=', esc_url( admin_url( 'customize.php' ) ) ),
								esc_html__( 'Preview and Activate', 'childify-me' ),
								'cm-preview'
							) :
							sprintf('<a id="%3$s" class="button button-primary" href="%1$s" title="%2$s" tabindex="0">%2$s</a>',
								esc_url( network_admin_url( 'themes.php' ) ),
								esc_html__( 'Go to Network Themes', 'childify-me' ),
								'cm-themes'
							)
					);

Here you output "Child theme successfully created!" and perhaps you even use some js to inject the name of that child theme into the string?
It would be much better if the string to translate would contain the full sentence:
"Child theme ###CHILD-THEME-NAME### has been created!", adding a translators' comment that the ###-### thing will be replaced by the name of the new theme.
The translators are even more used to things like %1$s so you could inject the name that way, or the span tag pair.

I was about to draft a PR, but I think it's much easier for you to do this small change.

Childify Me doesn't create rtl.css

Although I usually create the child-theme manually, I tried this plugin on a new RTL site and the rtl.css file was not created.
Bug?
Feature?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.