gscott
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Canonical Redirect IssueWhenever I add the www, it always redirects me to my home page homepage, i.e. http://www.domain.com/post-1, http://www.domain.com/post-2, http://www.domain.com/post-3 = all link back to domain.com.
I was having the exactly the same issue, however, I added a redirect to .htaccess and it solved the problem.
RewriteEngine On RewriteCond %{HTTP_HOST} ^www.yourdomain\.com$ [NC] RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L] RewriteBase / RewriteRule ^index\.php$ - [L]Forum: Networking WordPress
In reply to: Tri-lingual multisite, how to change comments formThey should be in comments.php template. Double check it.
If you theme doesn’t have language files then you’ll have to get the ones you want.
You’ll have to obtain the mo file for the language that you want (in your case your own language).
Look for your language here
WordPress in Your Language and download WordPress in your language. One it has downloaded, open the folder and find the wp-content folder, open that and find the languages folder.Inside that folder are the .mo files and .po files.
The .mo files are the ones that you need in your theme for translation to work. The .po files are for editing purposes (see my second post above).If your theme already has a language folder, then just place these files in it. If it doesn’t have a folder then just make one and put these files in it (you could just copy the folder itself).
See this tutorial:
How to localiseHope that helps.
Forum: Networking WordPress
In reply to: Tri-lingual multisite, how to change comments formOK, Thanks for the feedback.
Forum: Networking WordPress
In reply to: Tri-lingual multisite, how to change comments formYes, the theme has language files.
However, I think I have solved the issue. I needed to wrap the strings that weren’t getting translated (‘Leave a reply’, ‘No responses’ etc.)with a GetText call.
As so beautifully explained here:After I did that, however, some things were still showing up in the default language, English in my case.’Leave a reply’ was not being translated. So, I decided to check the .po file and see what the transaltor had written. In the .po file ‘Leave a comment’ was written,whereas in my comments template I had ‘Leave a reply’ which is why it wasn’t translating. I just changed’Leave a reply’ to ‘Leave a comment’ in my comments.php template and voila, everything translated OK, so, if anyone else is having the same issue, check the.po file against your templates, you may have translation discrepencies.
That being said ,one of my initial doubts still stands.
Can WPlang be amended for more than one language?
Like this for example:‘(WPLANG, array(‘en_US’,’fr_FR’,’es_ES’))’
As I said, I have 3 languages for my multisite and everything is translating perfectly, but I only have one language defined in WPlang.
How could this be?