Plugin Directory

Changeset 3402145


Ignore:
Timestamp:
11/25/2025 01:11:26 AM (4 months ago)
Author:
kasuga16
Message:

Fixed bugs related to special characters.

Location:
quick-translate-pot-po-mo
Files:
16 added
2 edited

Legend:

Unmodified
Added
Removed
  • quick-translate-pot-po-mo/trunk/quick-translate-pot-po-mo.php

    r3394770 r3402145  
    33 * Plugin Name: Quick Translate POT/PO/MO
    44 * Description: With this plugin, you can easily generate and edit a plugin’s translation files, quickly apply the results, and even automatically translate them using Google Translate or DeepL.
    5  * Version: 2.1.1
     5 * Version: 2.1.2
    66 * Author: Kasuga
    77 * License: GPLv2 or later
     
    12681268        $msgid_plural = $data['msgid_plural'];
    12691269
    1270         $pot_content .= 'msgid "' . addcslashes( $msgid, '"' ) . "\"\n";
     1270        $pot_content .= 'msgid "' . preg_replace( '/(?<!\\\\)"/', '\\"', $msgid ) . "\"\n";
    12711271
    12721272        if ( $msgid_plural ) {
    1273             $pot_content .= 'msgid_plural "' . addcslashes( $msgid_plural, '"' ) . "\"\n";
     1273            $pot_content .= 'msgid_plural "' . preg_replace( '/(?<!\\\\)"/', '\\"', $msgid_plural ) . "\"\n";
    12741274            $pot_content .= "msgstr[0] \"\"\n";
    12751275            $pot_content .= "msgstr[1] \"\"\n\n";
  • quick-translate-pot-po-mo/trunk/readme.txt

    r3394770 r3402145  
    66Requires PHP: 7.4
    77Tested up to: 6.8
    8 Stable tag: 2.1.1
     8Stable tag: 2.1.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    134134
    135135== Changelog ==
     136= 2.1.2 =
     137* Fixed bugs related to special characters.
     138
    136139= 2.1.1 =
    137140* Fixed bugs related to special characters.
Note: See TracChangeset for help on using the changeset viewer.