Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #24064

    Hello!

    I’m translating the theme into Russian.

    My site is http://www.zink.by/

    I don’t want to use some plugins for this, because there is not so much text to translate.

    Please, help me to find out where some pices of text are:

    1) “Search” in the Search field: https://dl.dropboxusercontent.com/u/21689806/search/1.PNG

    I thought it is in searchform.php but translating this file didn’t help.

    2) Text in the dropdown search box: https://www.dropbox.com/s/ovun0d0xl2xesxn/5.PNG

    3) Other text on search result page (3 text blocks): https://www.dropbox.com/s/1ojxb6ajacreock/2.PNG

    And there are some bugs with nonlatin symbols:

    4) <… appears near the search keyword: https://www.dropbox.com/s/ou9s8nlqkjkz0wc/3.PNG

    Not always! Try out ” текст ” and you will see

    5) If nonlatin search, the result in searchbox shows errors: https://www.dropbox.com/s/ovun0d0xl2xesxn/5.PNG

    And the last one question

    6) I want to remove “Browse something else” block because it is always empty on my site: https://www.dropbox.com/s/n1ygukgk3u48kgl/4.PNG

    #122170

    Hi,

    1.) Edit searchform.php, find this code

    placeholder='<?php _e('Search','avia_framework')?>

    2.) Edit functions-enfold.php, find this code

    $output .= __("Sorry, no posts matched your criteria", 'avia_framework');

    3.) Edit framework > php > function-set-avia-frontend.php

    if($wp_query->found_posts > 1)
    {
    $output = $wp_query->found_posts ." ". __('search results for:','avia_framework')." ".esc_attr( get_search_query() );
    }
    else
    {
    $output = $wp_query->found_posts ." ". __('search result for:','avia_framework')." ".esc_attr( get_search_query() );

    4.)

    5.)

    6.) You can add this on your custom.css

    .search-no-results .widget.avia_combo_widget {
    display: none;
    }

    .search-no-results .template-search h3 {
    display: none;
    }

    Let me tag the rest of the support team for 4 and 5.

    Regards,

    Ismael

    #122171

    Thanks for reply, Ismael!

    1) I wrote “Поиск” (it is “search” in russian) and got the same error as 4) – now there is Mojibake inside the search field.

    Something is wrong with fonts…

    2), 3), 6) – all is nice, thanks!

    Now there are two more places to translate: https://dl.dropboxusercontent.com/u/21689806/search/89.PNG

    8) “Portfolio items” in dropdown search field

    9) “IN” preposition in search result

    Best regards, Vitaly Filipenia

    #122172

    Vitaley,

    Please follow the directions in this post to make the theme compatible with Russian language. Otherwise you will have issues all over the place.

    Please read this post in order to find any string you want within the theme in seconds (that is how we do it).

    See first if making the theme compatible with cyrillic will take care of the font issue, which it should, if not we will deal with it. Please let us know.

    Thanks,

    Nick

    #122173

    It is a pity, Nick, but it did not work for me neither for zhenya77 http://capitallogistic.by/?s=%D0%B4%D0%B5%D0%BB%D0%BE

    And my site: http://www.zink.by/?s=%D0%B4%D0%B5%D0%BB%D0%BE

    You can check my function-set-avia-backend.php here: https://dl.dropboxusercontent.com/u/21689806/function-set-avia-backend.php

    I make changes via Dreamweaver so the code is correct.

    #122174

    Hi,

    Those weird characters are not a font. They are Mojibake ( http://en.wikipedia.org/wiki/Mojibake )

    Checking on this. hangon. You are using I think ISO-8859-1 encoding and not UTF-8 or perhaps somewhere the encoding changes because i see page has UTF-8 on it, but whether files were edited and saved in ISO-8859-1 format is another story.

    —-previous issues

    The block of code in my previous answer was to fix contact page and possibly other functionality in the theme and it is working correctly. If you look at source of contact page, ( http://i.imgur.com/QxhJjzx.jpg ) you can see that now form field elements have a russian id but written in english letters. Before the new code, there was nothing there.

    —-

    If you want something to show up inside that widget, ( i see it here http://capitallogistic.by/?s=%D0%B4%D0%B5%D0%BB%D0%BE , but not on the other website) you need to create blog posts (not pages) That box displays only from posts. Also I don’t see any comments on your website so there is no data to display.

    To remove it.add this css to your website /css/custom.css file

    #top.search-no-results .widget.avia_combo_widget, #top.search-no-results .entry-content h3 {
    display: none;
    }

    —-

    What makes you believe Dreamweaver is that dependable? Most developers dislike it (I use it though, too comfortable with it).

    Thanks,

    Nick

    #122175

    continuation…

    I took a longer look at this since my localhost experienced the same problem as yours. The problem comes from Dreamweaver (at least mine did). If using Notepad2 you open up the theme files you’ve edited with Dreamweaver, specifically functions-enfold.php, searchform.php and the function-set-avia-backend.php , and in Notepad++ the fifth menu item is Encoding. The file I edited to paste the same word you used for search saved in ansi format. After converting it back to UTF8 (5th menu item), i no longer got that bad character set in the search box.

    If you go to the demo site of the theme kriesi.at/themes/enfold/ and type Russian into the search box there are no problems at all which makes me believe that the problem lies elsewhere since this is the identical theme you and I and the demo site use.

    Open up .htaccess file located at the root of wordpress and add this to its top (if you don’t have that file just create it)

    AddDefaultCharset utf-8
    <IfModule mod_charset.c>
    CharsetSourceEnc utf-8
    CharsetDefault utf-8
    AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml
    </IfModule>

    Thanks,

    Nick

    #122176

    Thanks for detailed reply, Nick.

    Concerning correct code ( http://i.imgur.com/QxhJjzx.jpg ) – thank you, I see it is all good now!

    But I got some more questions.

    _______________________________________________________________________

    You are right, there would be no comments and no blog on site

    I added code to Quick CSS box and did not found something changed:

    #top.search-no-results .widget.avia_combo_widget, #top.search-no-results .entry-content h3 {
    display: none;
    }

    _______________________________________________________________________

    What I did to solve encoding problem:

    1) Opened functions-enfold.php, searchform.php and the function-set-avia-backend.php via Notepad++ and saved them to “UTF-8 without BOM”. Then I updated files via FTP.

    2) Edited .htaccess according to you recomendations.

    And after this nothing changed. May bу I missed something or I shoud edit only original php files with Notepad++? (I just had edited files that where previosly saved in Dreamwiever)

    Thanks, Vitaly

    #122177

    Hi,

    I think you got bigger problems. You are using a blacklisted IP, so I can no longer even connect to your website as well as the second website. Your IP is used to spread malware i think by different domains. I suggest you switch before your domain gets tainted as well from hosting in a bad neighborhood.

    http://www.uceprotect.net/en/rblcheck.php?ipr=93.125.99.37

    Thanks,

    Nick

    #122178

    Wow! My site in the blacklist? It is justcreated and i use the most expensive and safe hosting provider in Belarus. WordPress was preinstalled, so it is was not hacked.

    ОК, I will try to fix it.

    But can you please explain why you can not continue support?

    #122179

    Hi,

    I didn’t say your site is blacklisted. I said your ip is blacklisted and gave you url to see who on your ip that is causing your whole ip to become blacklisted but so far only by 1 security company. Contact them and tell them that you are on a shared ip address. Your IP that you share is 93.125.99.37

    If you bought the theme and downloaded it from themeforest.net and not downloaded it from a warez/nulled website for free than your theme is not cracked. (themes are not cracked , only software is).

    These are the banned websites on your IP: brz.by, diapal.by

    Thanks,

    Nick

    #122180

    Thank you for the explanation!

    Before I never faced with such problems. I deleted my presupposition about cracked theme.

    Now I asked hosting support for help. May be dedicated IP is solution.

    OK, please don’t close the topic, I hope for your help after IP would be removed from the blacklist.

    #122181

    Hmm… I got the response from the hosting support team:

    You got the following situation:
    UCEPROTECT-Level3
    Reputation of ASN 6697 | BELPAK-AS BELPAK
    The third level is given to Belarus :) And neither us not you can change it.

    I must mention that our laws oblige any entrepreneur to use only Belarussian hosting( which is extremly more expensive than in Russia, for example) for government agencies to have full access for all information.

    Contact them and tell them that you are on a shared ip address.

    It’s impossible. As written on uceprotect:

    Q: Can’t you make an exception for me?

    A: We never make exceptions. Requests are futile. Only your provider can fix this problem.

    #122182

    Hi,

    Your host is wrong. Let me show you why. When I go to this domain http://hoster.by/ (also in Beylorussia) there are no problems ( http://www.clipular.com/c?7126469=mtpVmeMWpiB_xuXdCLLh36nTFwA&f=.png ) because its IP address isn’t on a list of blacklisted IPs from where hacking takes place. When I go to you domain, i get this. http://i.imgur.com/5otACjq.png. Tell him to put you on new IP. Its still in your country so govt can bother someone else. :)

    Thanks,

    Nick

    #122183

    I see.

    One againg will try to reach support.

    Thank you!

    #122184

    Fresh news: Nick, the site is blocked by the sowtware you use. Every one else see it clearly.

    I created a topic on Malwarebytes forum and asked to remove IP from the blacklist: http://forums.malwarebytes.org/index.php?showtopic=127312

    Right now you can skip this blocking by reading following article: http://helpdesk.malwarebytes.org/entries/23460161-How-do-I-unblock-a-site-which-Malwarebytes-Anti-Malware-blocks-

    If you are afraid of skip blocking we shoud wait for 3-5 days until the IP would be removed and you get the updated Malwarebytes bases

    #122185

    Hi,

    I am aware that its the anti virus software that blocking your IP, but since 200 million people use this software I thought you should know about the block.

    Have you added the code above ( https://kriesi.at/support/topic/translating-search#post-115659 ) to your htaccess file? Because right now something is not properly setup with you server. Because if I enter a Russian word , your server doesn’t show it when looking at the search box under magnifying glass

    http://www.zink.by/?s=%D1%83%D0%B1%D0%BB%D1%8E%D0%B4%D0%BE%D0%BA

    http://www.clipular.com/c?7306002=zaxzxgULG0LZdRb933nV00JlEKc&f=.png

    But when the same word is searched on kriesi’s website , it comes out normally

    http://kriesi.at/themes/enfold/?s=%D1%83%D0%B1%D0%BB%D1%8E%D0%B4%D0%BE%D0%BA

    http://www.clipular.com/c?7070039=zJLNVPcCZxA9WCgdHmsH0yehA0A&f=.png

    After using that .htaccess , I also have no problems.

    Thanks,

    Nick

    #122186

    Thank you very much for the information about blocking. Now I am waiting for the reply from the Malwarebytes.

    ______

    Here is everything I have in .htaccess, please, check it out. May be I shoud write you code in some other place:

    AddDefaultCharset utf-8
    <IfModule mod_charset.c>
    CharsetSourceEnc utf-8
    CharsetDefault utf-8
    AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml
    </IfModule>

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    RewriteCond %{HTTP_HOST} ^wipart.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.wipart.com$
    RewriteRule ^/?$ "http://zink.by/" [R=301,L]

    Thanks, Vitaly

    #122187

    Hey!

    Looked into it now for some time and it might be much simpler than all of that ;D

    Please try the following: open functions-enfold.php

    and search for:


    $form = htmlentities( ob_get_clean() );

    Change it to:


    $form = htmlspecialchars(ob_get_clean()) ;

    Did the trick for me :)

    #122188

    Yes! Kriesi, you are really Key Master! Now there are no Mojibake =)

    Thank you!

    Now there is a litte bug on my site and on your demo too — some unwanted symbols appear: https://www.dropbox.com/s/iw77dx8aijl9zbl/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA.PNG

    It is not terrible, but may the the fix is the same simple?

    #122189

    Hi!

    can you past the search string here? Have difficulties to reproduce the problems. looks like its some problem with the closing quote…

    Regards,

    Kriesi

    #122190

    Hi,

    Yeh, I also saw that. That is not always there , it appears depending on the length of the word being searched for. Only 30 characters are allowed in this entire line .. and sometimes it gets cut off in middle of character encoded quotes “” as in &quot

    Search results for “Снимок”…

    I would cut the size of this ‘Результаты поиска для’ because that has too many letters, so the actual search term never gets printed. Try it like ‘ ‘Результат для” … or even smaller, since these are useless letters, while the keyword is useful

    Thanks,

    Nick

    [edit] this reproduces it

    http://kriesi.at/themes/enfold/?s=%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%D0%A1

    #122191

    Ah yes, got it now. Seems like a problem with the truncating function of the breadcrumb navigation. Next update (version 1.7) will have a fix for that as well, assumed I am able to fix it ;)

    #122192

    Thanks! Will wait for the update. And the theme would be really Multi language (because russian is not only in Russia, but practically in whole ex-USSR)!

    There are onle few things for me to translate – simple questions for support team: https://dl.dropboxusercontent.com/u/21689806/search/11.PNG

    1) The header

    2) “Portfolio items” in dropdown search field

    3) “IN” preposition in search result

    And I’ll be the real Search-into-Russian King!

    #122193

    Hi!

    I’ll close this thread now. If the problem still exists with 1.7 please open up a new thread.

    Best regards,

    Peter

Viewing 25 posts - 1 through 25 (of 25 total)
  • The topic ‘Translating search’ is closed to new replies.