Comment on WordPress Language Translation by SEO Dave.
Adding language support to Stallion is on the list of things to look into, I’ve had a quick look into adding language support and looks like it’s a real pain to manage since the pot and mo files (language files) are based on line numbers: so if you take a Stallion template file like comments.php, find English text that’s shown in a browser like
This post is password protected. Enter the password to view comments
Which is on line 9.
As I understand it you add this text and info to an English language file and create other language files like French to convert the text.
Problem with this approach is updates, if I change the above English text or the line number changes all the language files need updating. Fine for a few sentences, but Stallion has a LOT of text, especially on the options pages and I’m fluent in one language, so wouldn’t be able to edit a Chinese language file to take into account updates!
I’ve been thinking about tackling this another way, replace the text with an option and have it on a Stallion Language options page where the user can add anything they like in any language. As long as all text that is visible to the end user is covered it wouldn’t be too difficult to create specific language based default options sets (like you see on the main Stallion Options page for my defaults and my SEO defaults) which would be a heck of a lot easier to maintain than the current language translations theme and plugin developers use.
If I try this it will start with what our visitors see not what’s on the Stallion options pages etc… generate (way too much text to translate). Not perfect for those who don’t read English, but if stage one works who knows.
Anyway, right now I’m afraid it would be a case of editing the template files manually to how you want them. I’m working on the Stallion 6.3 update and it’s a BIG update so I wouldn’t start it yet since you’d have to start it again after the update.
I might give the language translation options page a try for this update as ignoring the language translation possibilities would be great to be able to change the English text for some sites.
With regard the searchable text you don’t see on page related to images.
You have two options and one is greyhat SEO.
SEO safe is use alt text, put the text in the alt attribute for the image. Not only is this SEO safe, search engines like Google use the alt text for ranking purposes. It’s also searchable via the WordPress search facility.
Greyhat SEO use noscript. Noscript is for when information is hidden behind say javascript or flash and you add the text in noscript tags. For visitors with javascript turned off see the noscript tags, not checked if WordPress search facility reads noscript, I would assume it does. Problem with noscript is it’s abused by blackhat SEO’s, perfect place for stuffing keywords, so if you use it inappropriately you could get a penalty. Since alt text is designed for what you want to achieve it’s SEO greyhat to use noscript unless you have a really good reason for using it like a LOT of text and even then it’s pushing it.
David
Update: Added a much easier language translation feature to Stallion, anyone can fully translate Stallion to another language.
More Comments by SEO Dave
WordPress Language Localization
WordPress Language Translation
I’ve not converted WordPress core to another language translation, so not the best person to ask. Here http://codex.wordpress.org/WordPress_in_Your_Language is where I’d start. If you search Google for : WordPress Language Translation Khmer there’s some guides.
When you have WordPress core converted …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
Add Inline CSS to WordPress
If you are happy with inline CSS (I try to avoid it, personal pet peeve) use the “Stallion All In One SEO Additional Sitewide Headers” (that’s a mouthful :-)).
Under Stallion Advanced SEO tick “Stallion All in One SEO ON” this …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
Editing WordPress Theme Template Files
If you want every instance of a bit of code use a txt editor like Crimson Editor (it’s free) and use a find in files facility for the code, you’d be looking for
the_time('F jS, Y')
There are around 20 files to …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
WordPress Date Format
The language date issue is why I broke the translations for the Date Meta words into individual words rather than phrases so the original English words (Posted, on, by, in) can be changed one word at a time. The German …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
Stallion Theme Colour Schemes and Languages
If you look at the home page of this site and scroll to the heading “Stallion Theme Colour Schemes” you’ll find example links to the current 27 built in Stallion colour schemes. The ability to use a different colour scheme …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
WordPress Theme Language Translations
Have been adding more language translation files to Stallion using Google Translations.
These are the current language translations that will be available in Stallion v7.1 (plan to release this month).
English : en-english.php (Defaults)
Arabic : ar-arabic.php (Google Translation)
Bengali : bn_BD-bengali.php (Google Translation)
Chinese …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
WordPress Search Form Image Text
The Search text is part of the image, it’s this image so you would have to create a new image with Spanish text or not use the Search form within the header area.
The image is located at
/stallion-seo-theme/images/delicate/search.gif
In the next …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
Default WordPress Widgets
You HAVE to add a widget to remove the default widgets.
Go to Appearance >> Widgets
Drag and drop any widget into the currently EMPTY Left sidebar widget area.
Check the home page.
Do the same for the right sidebar.
Go try it and it …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
Removing WordPress Default Widgets
Go to Appearance >> Widgets
Drag and drop any widget to the Left sidebar.
Drag and drop any widget to the Right sidebar.
Check your home page and it should all make sense. You don’t remove the default widgets one by one, they …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
WordPress Theme Spanish Language Translation
To remove the “powered by Stallion WordPress SEO Theme” link go to Stallion Clickbank Options and near the bottom set “Backlink OFF”.
This won’t remove the link to your home page the “©2012 JAMON IBERICO vs JAMÓN SERRANO” part will remain.
Sounds …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
Stallion Theme Language Translations
I’m not using the standard po/mo file language translations, I use an options page for translations where a user can change pretty much all words/phrases that’s part of Stallion that a visitor sees. Used in combination with a WordPress language …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
British People and Foreign Languages!
LOL, I thought it was French :-)
That’s what you get for having an British person dealing with anything to do with languages.
Will replace the file with a French translation soon and add a Spanish translation in the next update.
David …
Continue Reading WordPress Theme Language Translation