Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Languages support + Russian localization #60

Merged
merged 8 commits into from
Jan 11, 2020
Merged

Conversation

Norskes
Copy link
Contributor

@Norskes Norskes commented Jul 22, 2019

Description

  1. Generated a .pot file, created languages folder for further localizations and added it to a zip builder.
  2. Translated all strings into Russian (.po and .mo files included).

Motivation and context

This plugin is one of the main entrance points of ClassicPress for end users. And it contains some quite important warnings that should be absoultely clear. It would be much easier to make first steps if interface switches to a native language. It improves safety + shows some care and friendliness.

Screenshots

image

@nylen
Copy link
Contributor

nylen commented Jan 11, 2020

Hi @Norskes, thanks for the PR. It looks good, I only found 2 strings that aren't translated:

2020-01-11T05-21-09Z
2020-01-11T05-24-00Z

If you'd like to take a look and translate these 2 more strings, then doing that in a new PR will probably be easiest for everyone since it has been a while. I'll go ahead and merge this one.

'Welcome to ClassicPress! You will be redirected to the About ClassicPress screen. If not, click <a href="%2$s">here</a>.',
'switch-to-classicpress'
);

case 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.':
return __(
/* translators: 1: omitted; 2: link to about.php (About ClassicPress screen) */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "1: omitted" here is just a mistake. I will leave this for a separate PR also, since changing it would break the translations of these strings.

Copy link
Contributor Author

@Norskes Norskes Jan 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this. The original line has 2 variables, but ClassicPress omits the first one. This comment helps translators understand why there is only %2$s variable without %1$s. But I might understand this wrong. I didn't explore the filter source and this override function confuses me a bit as I don't see the passed values there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the original line has 2 variables, so that needs to stay as-is.

I was thinking there is no need to do the same thing in our "re-translated" string, but I guess it doesn't matter. These particular messages only appear very briefly as progress lines when the migration has finished.

@nylen nylen merged commit 6c52f39 into ClassicPress:master Jan 11, 2020
@Norskes Norskes deleted the i18n branch January 13, 2020 13:58
@Norskes
Copy link
Contributor Author

Norskes commented Jan 13, 2020

If you'd like to take a look and translate these 2 more strings, then doing that in a new PR will probably be easiest for everyone since it has been a while. I'll go ahead and merge this one.

Those two strings had wrong text-domain, so the .pot didn't include them. Fixed this in #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants