fix translation

This commit is contained in:
Aleksei Tikhomirov 2023-07-22 14:28:37 +03:00
parent 0fdc19220b
commit 9e0b74dcaa
5 changed files with 12 additions and 8 deletions

View file

@ -247,7 +247,10 @@ final class LicOrder
$output .= '<td class="td">' . __( 'Licence has expired', 'wc-pus' ) . '</td>';
}
$output .= '</tr>';
$output .= '<tr><td colspan="2">'. LicProlong::I()->render_renewal_checkout_link($lic) . '</td></tr>';

if(!empty(LicProlong::I()->base_product)) {
$output .= '<tr><td colspan="2">' . LicProlong::I()->render_renewal_checkout_link($lic) . '</td></tr>';
}
}
$output .= '</table>';
}

View file

@ -203,7 +203,7 @@ class LicProlong
$html .= '</td><td colspan="2" style="text-align: right">
<a href="' . wc_get_checkout_url() . '?wcpus_lic=' . $lic['license_key'] . '"
class="' . $bs4['class'] . ' renew">' . $bs4['icon'] .
sprintf(esc_html__('Renew license for %s', 'wc-pus'),
sprintf(esc_html__('Renew license - %s', 'wc-pus'),
'<span style="margin-left: 5px">' . $product->get_price_html() . '</span>') . '</a>';

return apply_filters('wc_pus_renew_link', $html);

Binary file not shown.

View file

@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: WC Plugin Update Server integration\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-06 12:22+0000\n"
"PO-Revision-Date: 2023-07-22 00:12+0000\n"
"PO-Revision-Date: 2023-07-22 01:10+0000\n"
"Last-Translator: Алексей\n"
"Language-Team: Русский\n"
"Language: ru_RU\n"
@ -13,7 +13,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Loco-Version: 2.6.4; wp-6.2\n"
"X-Loco-Version: 2.6.4; wp-6.2.2\n"
"X-Domain: wc-pus"

#: includes/LicOrderMetaBox.php:331 includes/LicOrderMetaBox.php:385
@ -147,8 +147,9 @@ msgstr "Тип продукта (плагин или тема)."

#: includes/LicProlong.php:206
#, php-format
msgid "Renew license for %s"
msgstr "Продление лицензию для %s"
#| msgid "Renew license for %s"
msgid "Renew license - %s"
msgstr "Продлить лицензию - %s"

#: includes/LicProlong.php:166
msgid "Renewal period in days"

View file

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WC Plugin Update Server integration\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-22 00:11+0000\n"
"POT-Creation-Date: 2023-07-22 01:09+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: \n"
@ -143,7 +143,7 @@ msgstr ""

#: includes/LicProlong.php:206
#, php-format
msgid "Renew license for %s"
msgid "Renew license - %s"
msgstr ""

#: includes/LicProlong.php:166