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

QTS: moved qts textdomain to qtranslate + general qtranslate pot/po/mo files re-alignment #1120

Merged
merged 4 commits into from
Mar 12, 2022

Conversation

spleen1981
Copy link
Contributor

No description provided.

@herrvigg herrvigg added module: slugs l10n Translations for localization labels Mar 12, 2022
@@ -102,8 +102,8 @@ function qts_show_form_field( $args = array() ) {
case 'select':
echo "<select id='$id' class='select$field_class' name='" . QTS_OPTIONS_NAME . "[$id]'>";
foreach ( $choices as $item ) {
$value = esc_attr( $item, 'qts' );
$item = esc_html( $item, 'qts' );
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems the old calls were wrong with the domain being sent as 2d argument, but these functions only take 1 arg.

$sections['post_types'] = __( 'Post types', 'qts' );
$sections['taxonomies'] = __( 'Taxonomies', 'qts' );
$sections['post_types'] = __( 'Post types', 'qtranslate' );
$sections['taxonomies'] = __( 'Taxonomies', 'qtranslate' );
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could have re-used 'Taxonomy' from WP default domain, but no big deal.

@herrvigg
Copy link
Collaborator

Great!

@herrvigg herrvigg merged commit c12cbc3 into qtranslate:master Mar 12, 2022
@spleen1981 spleen1981 deleted the merge_pot branch March 12, 2022 22:19
spleen1981 added a commit to spleen1981/qtranslate-xt that referenced this pull request Mar 13, 2022
…1120)

* remove qts textdomain, merge with qtranslate, cleanup
* update all po/mo files with new pot file, include existing qts translations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n Translations for localization module: slugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants