WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[resolved] Translate the "Search" button text (8 posts)

  1. nikydox
    Member
    Posted 8 months ago #

    Hi, I want to translate the "Search" text from the search button and I can't find it anywhere:

    wp-content\languages\... NO
    wp-content\plugins\wp-e-commerce\wpsc-languages...NO
    wp-content\themes01\... NO

    And I also checked a lot of other folders, function.php files, .js files; I can't find it. Can you help? Thanks.

    http://wordpress.org/plugins/wp-e-commerce/

  2. gmet
    Member
    Posted 8 months ago #

    check

    gold_shopping_cart.php around line 582

    should be what your looking for.

  3. nikydox
    Member
    Posted 8 months ago #

    Hi, thanks for your answer. However I did not find any gold_shopping_cart.php file in wp-content/wp-e-commerce/... Where exactly is this file?

  4. gmet
    Member
    Posted 8 months ago #

    separate folder, not the main WPEC folder

    is in the gold cart plugin folder

  5. nikydox
    Member
    Posted 8 months ago #

    Hi, thanks. I don't have the gold cart plugin installed. Only wp-e-commerce and wp-e-commerce-grid-view.

  6. gmet
    Member
    Posted 8 months ago #

    cool grid plugin, didnt know of that, but I have the gold one from the WPEC guys.

    well post your site...........or

    I use a plugin called firebug in mozilla firefox browser. you can select html, right click, click 'Inspect Element with Firebug'. And it will pull up a browser with that area selected and show the DIV tag names you might search to find what your looking for.

    I then search my WPEC folder for those words.

    Has been amazingly helpful for finding these type of things to modify, including colors changes, font size changes etc.

    You need some HTML backgroud to decipher the code.

    **Comment out, try not to delete the code, then you can always go back if you mess things up.

    these are PHP pages so use this <?php /*?>code to hide<?php */?>

  7. nikydox
    Member
    Posted 8 months ago #

    Hi and thanks again. I finally managed to understad how this works. There is a code calling the search form in header.php: <?php get_search_form(); ?>. If the theme in use does not have a searchform.php file included in the main directory, WordPress uses the default one that is included in the core files. So you can create a searchform.php file with customized code. In my case I just copied the html code displayed in chrome and replaced the "search" text with the right translation.

  8. gmet
    Member
    Posted 8 months ago #

    cool. glad you got it working

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.