Plugin Directory

Changeset 363928


Ignore:
Timestamp:
03/23/2011 08:19:38 PM (15 years ago)
Author:
stevevls
Message:

add character set to the CREATE TABLE invocations and add FAQ entry and SQL to help with encoding issues.

Location:
gts-translation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gts-translation/tags/1.1.3/lib/db/GtsDbSchema.php

    r305620 r363928  
    4646            modified_time timestamp not null default now(),
    4747            UNIQUE KEY (local_id, language)
    48         )",
     48        ) CHARACTER SET 'utf8'",
    4949
    5050
     
    6262            UNIQUE KEY (local_id, language),
    6363            UNIQUE KEY (post_slug(255), language)
    64         )",
     64        ) CHARACTER SET 'utf8'",
    6565
    6666
     
    7777            UNIQUE KEY (local_name, language),
    7878            UNIQUE KEY (slug, language)
    79         )"
     79        ) CHARACTER SET 'utf8'"
    8080    );
    8181   
  • gts-translation/tags/1.1.3/readme.txt

    r363906 r363928  
    108108Once the translated content is approved by a moderator, it is stored on your own server in your WordPress database.
    109109We'll also keep a copy in our database in case the moderators or editors decide to make more changes.
     110
     111
     112= When I switch my blog to Russian, all I see are question marks...what gives?
     113This happens when the data is stored in MySQL with the wrong character encoding.  Execute the following (being sure to
     114replace 'wp_' with the prefix specified in wp-config.php if you've changed that value):
     115
     116ALTER TABLE wp_gts_translated_options CONVERT TO CHARACTER SET 'utf8';
     117ALTER TABLE wp_gts_translated_posts CONVERT TO CHARACTER SET 'utf8';
     118ALTER TABLE wp_gts_translated_terms CONVERT TO CHARACTER SET 'utf8';
     119
     120Then get in touch with us so that we can help you reload your content.
    110121
    111122
  • gts-translation/trunk/lib/db/GtsDbSchema.php

    r305620 r363928  
    4646            modified_time timestamp not null default now(),
    4747            UNIQUE KEY (local_id, language)
    48         )",
     48        ) CHARACTER SET 'utf8'",
    4949
    5050
     
    6262            UNIQUE KEY (local_id, language),
    6363            UNIQUE KEY (post_slug(255), language)
    64         )",
     64        ) CHARACTER SET 'utf8'",
    6565
    6666
     
    7777            UNIQUE KEY (local_name, language),
    7878            UNIQUE KEY (slug, language)
    79         )"
     79        ) CHARACTER SET 'utf8'"
    8080    );
    8181   
  • gts-translation/trunk/readme.txt

    r363907 r363928  
    108108Once the translated content is approved by a moderator, it is stored on your own server in your WordPress database.
    109109We'll also keep a copy in our database in case the moderators or editors decide to make more changes.
     110
     111
     112= When I switch my blog to Russian, all I see are question marks...what gives?
     113This happens when the data is stored in MySQL with the wrong character encoding.  Execute the following (being sure to
     114replace 'wp_' with the prefix specified in wp-config.php if you've changed that value):
     115
     116ALTER TABLE wp_gts_translated_options CONVERT TO CHARACTER SET 'utf8';
     117ALTER TABLE wp_gts_translated_posts CONVERT TO CHARACTER SET 'utf8';
     118ALTER TABLE wp_gts_translated_terms CONVERT TO CHARACTER SET 'utf8';
     119
     120Then get in touch with us so that we can help you reload your content.
    110121
    111122
Note: See TracChangeset for help on using the changeset viewer.