WordPress responsive menu in chinese language - wordpress

I am using this plugin in my wordpress website.
https://wordpress.org/plugins/wp-responsive-menu/
But when i translate my website in chinese language menu items not showing. Please can you suggets me how i can translate it?

in this plugins, the folder "lang" is empty... It does not use languages. So you need change php files and i recommend you do not do this.
But if you really need change, use sublimetext or other soft or command line for use best function : "search in folder".

Use WMPL[Multilingual Plugin].
Just install this plugin in your website and just translate each and every menu which has been used in English.{you can even Sync the menus to the selected language}.
When you choose your language the menu gets changed to Chinese language and nothing get affected.

You will most probably need to either change the page encoding or if use an approach like in this answer.
(HTML5) cannot display Chinese characters when using UTF-8

Related

How to change text in WooCommerce My Account Downloads area?

In the Downloads tab of the My Account area in WooCommerce, by default the text says "No downloads available yet". I need to change this text to something more specific.
I would rather not do this by copying plugin files to my child theme, but would prefer to do it with code snippet.
If anyone can help, it would be massively appreciated.
Many thanks for your time.
If you have access to ftp you can open the folder of Woocommerce plugin into a text editor.
You can find for the string and replace it by a more specific one directly into the code.
I think it's the cleanest way.
Let me know if it works.
You have different ways of doing this:
1- Copy wp-content/plugins/woocommerce/templates/myaccount/downloads.php to your theme folder inside /woocommerce folder and overwrite the part where the string is outputted -> recommended
2- Edit the woocommerce-[LANG_CODE]_[LANG_CODE].po file inside wp-content/languages/plugins but you would lose this if you update the plugin
3- If you have WPML installed you can do it via string-translation feature
4- Edit it via JS, not so clean but hey, it would work! :D

Need to Replace Old URL with New URL in Revolution Slider

We have cloned a WordPress site and replaced the urls using Velvet URLs. But the Revolution Slider images url are not replaced yet. Please let me know if any solutions are there.
Thanks in advance.
There is a option in slider settings to change the Replace URL. Please check the screenshot attahced. Hope it helps.
This will work for anybody still looking for this solution. It happened to me that I needed to change the base URL on slider revolution.
Export to PC
Unpack the zip
Open the slider_export.txt in notepad++
find and replace the URL, save and repack
Delete the slider, and import the new one. BINGO!
P.S When changing directory, remember to escape the forward slash "/"
Best regards.
For Slider Revolution 6, the feature has changed place.
You need to get the Domain Switch addon which is available on the main revolution slider page.
Simply browse to addons and look for DS (Domain Switch)
After installing, you'll be able to find/replace the url.
For those who got Revolution Slider as part of a theme and therefore don't have a purchase code.
Use a plugin like Better Search Replace to update the URLs.
Be aware that Revolution Slider escapes certain characters.
So https://example.com/
Is saved as https://example.com/
PhpMyAdmin can accomplish the same thing and you only need to edit the wp_revslider_slides table fields in the column params and layers. Be careful not to forget the escape characters used. I wish search and replace plugin would have a option for this escape setting.
Install Better Search Replace plugin and activate it.
Then search for youroldsite.com and replace with yournewsite.com then select all tables.
NOTE: Make sure that you have checked "Run as Dry run" to see number of changes occures before update the database.

How to use Unicode Fonts in WordPress

I would like to know how to use Unicode fonts in Word-press. I mean that I need to use Sinhalese fonts in the site. So how can i do that?
Thank you
Asanka
download google input tools for sinhala ( or what ever language you need ) from here http://www.google.com/inputtools/windows/ and install. You'll have to select language from the language toolbar at the task bar - right corner to type in sinhala.
Type what ever you need in sinhala in the wordpress post edit screen and publish. You'll see it in sinhala.

Translate Plone Subjects/Keywords

Is there a way to translate Plone Subjects/Keywords?
I already tried .po translations, but this does not work?
Any ideas?
Thanks in advance
You can probably use translations in a .po file (use the "plone" domain) but you need to customize all templates that display keywords (view, edit, ...) wrapping the raw text rendering into a i18n:translate="" TALES expression.
For exampple, for the display you need to customize this:
https://github.com/plone/plone.app.layout/blob/da9d5077668d3bab502ea0f585fdae5c753956f0/plone/app/layout/viewlets/keywords.pt#L15
You can probably perform a lot of this stuff simply using z3c.jbot.

Wordpress and RTL

WordPress is so powerful.. but yet it is so weak with RTL Languages like Arabic and Hebrew...
I need to have the Front-End in Arabic and Admin area to stay in English and of course LTR..
If I use the Arabic version of WordPress. Everything including the admin area will be in Arabic and RTL. which will not be suitable at all.
In the same time. Visually editing an Arabic post should be in RTL while the HTML view should be LTR..
I can see that MU version on wordpress.com can have admin area in English while the frontend is in Arabic.
How to do that?
WordPress's back end can handle Arabic just fine, with both the editor and the database itself. If you want the front end to display in Arabic you'll need to use/develop a theme that uses Arabic.
If your blog is Arabic-only, you can add a CSS class to the div surrounding the post in the blog template file that sets the text-direction to ltr. If you use Arabic and English, you can set an if statement to decide what direction each post needs to be based on a custom field you add to the post from the back end.
The general steps to add RTL are:
Step 1 - Create the RTL CSS for Your Theme.
The first step is to create the CSS for displaying RTL languages correctly on your website. There are two methods for doing this. The first is to simply feed your existing stylesheet into a CSS RTL generator. This tool will examine your CSS and attempt to make a copy, but switching all the left and right alignments. This effectively creates a mirrored version of your website.
Step 2 - Ensure WordPress ‘Sees’ the RTL Styles.
If you’re using a CSS generator tool, you’ll now need to enqueue your new style-rtl.css stylesheet so WordPress can load it in at the appropriate time. This is just a matter of adding a snippet to your theme’s functions.php file.
Step 3: Test Your RTL Styles in WordPress RTL Tester plugin.
You have a few options for testing out RTL languages in your WordPress installation. The first is to simply switch WordPress to an RTL language. To do this, go to the Settings > General page in your WordPress dashboard. Then, select the first script language you see in the Language drop-down box
Here is a full guide: https://torquemag.io/2018/03/rtl-support-wordpress/
For a successfully RTL site example, check out this one.
If you have access to the file system where the site is hosted:
Go to ./wp-content/themes/{THEME_NAME}/.
Find the CSS files of both LTR and RTL (They may be named as "style.css" & "style-rtl.css", depending on the theme and if it supports RTL).
Rename them by switching their names.
This way RTL is only applied to the theme.
I had the same issue. The blog is in Arabic, and the admin back-end is in English.
If you are using Firefox, you can simply overcome this problem by clicking Switch Text Direction from the right-click menu on the TinyMCE.

Resources