Comment on WordPress Language Translation by SEO Dave.

WordPress Theme Language Translation Added language translation to Stallion 6.3, but I’ve not used the usual po/mo file language translation you get with some WordPress themes and plugins, the translations are held in the WordPress database which should make keeping them up to date and creating more translations easier.

The language translation ONLY covers what our visitors see on the webpage, none of the options page text will be translated, there’s too much of it and I’m fluent in only one language and trying to keep the options pages up to date in various languages would be a nightmare. I wonder if the Google translator widget concept built into Stallion would work for the Stallion option pages as well???

Like I said the translation covers what is seen on the webpage by our visitors, so for the Comment Form area all the entries are translatable on an easy to use Stallion options page.

Currently the Language Options page has 31 text snippits (might increase as some widgets might need translations) that can be translated plus an option to select a language file with all the settings already translated to various languages: currently four options: English, French, German and Custom with the custom one for any language you translate.

I’m only fluent in English, I used Google translate to generate the French and Germen translations, I have no idea how good/bad they are :-)

Good news is Google translator can save your translations (though doesn’t save any edits to the translation).

French: https://translate.google.com/#auto|fr|Name%0AMail%20%28not%20published%29%0AWebsite%0AComment%20Title%0A%28required%29%0ASubmit%20Comment%0AYou%20must%20be%20logged%20in%20to%20post%20a%20comment.%0ALogged%20in%20as%0ALog%20out%0A%0AYour%20comment%20is%20awaiting%20moderation.%0AThis%20post%20is%20password%20protected.%20Enter%20the%20password%20to%20view%20comments.%0AResponses%20to%0ALeave%20a%20reply%20to%0AComment%20on%0AReply%20to%20Comment%0AMore%20Comments%20by%0A%0APosted%0Aon%0Aby%0Ain%0A%0AArticles%20by%0Ais%20the%20author%20of%0Aposts.%0AWebsite%0A%0AContinue%20Reading%0ANo%20Comments%0A1%20Comment%0AComments%0A%0ARelated%20Articles%20to%0Apowered%20by%0AStallion%20WordPress%20SEO%20Theme

German: https://translate.google.com/#auto|de|Name%0AMail%20%28not%20published%29%0AWebsite%0AComment%20Title%0A%28required%29%0ASubmit%20Comment%0AYou%20must%20be%20logged%20in%20to%20post%20a%20comment.%0ALogged%20in%20as%0ALog%20out%0A%0AYour%20comment%20is%20awaiting%20moderation.%0AThis%20post%20is%20password%20protected.%20Enter%20the%20password%20to%20view%20comments.%0AResponses%20to%0ALeave%20a%20reply%20to%0AComment%20on%0AReply%20to%20Comment%0AMore%20Comments%20by%0A%0APosted%0Aon%0Aby%0Ain%0A%0AArticles%20by%0Ais%20the%20author%20of%0Aposts.%0AWebsite%0A%0AContinue%20Reading%0ANo%20Comments%0A1%20Comment%0AComments%0A%0ARelated%20Articles%20to%0Apowered%20by%0AStallion%20WordPress%20SEO%20Theme

On the left are all the English snippets that Stallion will translate and on the right is the translation.

I’ve taken the translations and added them to a file in the folder /stallion-seo-theme/languages/ which is linked into the Language Options page so a language can be loaded into the database rather than have the user type the translations.

I’m supposed to not be adding more features to Stallion 6.3 :-) but if anyone wants a specific language translation added to Stallion 6.3 edit one of the links above to your language and copy and paste the translation (right panel) into a comment or email it me like this (this is the German translation):

Namen
Mail (wird nicht veröffentlicht)
Webseite
Geben Sie Ihre Meinung Titel
(Pflichtfeld)
Kommentar abschicken
Sie müssen, um einen Kommentar einloggen.
Angemeldet als
ausloggen

Ihr Kommentar wartet auf Moderation.
Dieser Beitrag ist Passwort geschützt. Geben Sie das Passwort, um Kommentare lesen.
Die Reaktionen auf
Lassen Sie eine Antwort auf
kommentieren
Auf Kommentar antworten
Weitere Kommentare von

Verfasst am
auf
durch
in

Artikel von
ist der Autor des
Beiträge.
Webseite

weiterhin lesen
Keine Kommentare
1 Kommentar
Kommentare

Weitere Artikel zum
powered by
Hengst WordPress SEO Theme

Don’t just post the default Google translation if you don’t read the language, only make a translation for me to add if you understand the language reasonably well. If you read German/French and find my translations (which are pretty much the default Google translation versions) aren’t the best feel free to edit them and I’ll update the files before Stallion 6.3 is released.

When Stallion 6.3 is released you’ll be able to use the custom file to translate a language yourself and if you send me the translation I’ll try to include it in the next update.

I’ve not tested this feature on a live site yet, only on localhost, had issues with the character encoding, I was working with a text editor with character encoding ANSI and most WordPress sites use UTF-8. This meant the settings when run broke the language options page because I was trying to add non UTF-8 characters and the MYSQL database wasn’t saving them correctly. After converting the file to UTF-8 it worked perfectly, so when I release Stallion 6.3 make sure you create and save the files in UTF-8 if you work with the custom language file.

David