Kau-Boy’s Backend Localization Plugin
Veröffentlich am Dienstag, 1. Sep 2009 in WordPress
Dieses Plugin ermöglicht es, den Blog in einer anderen Sprache zu betreiben, als im Backend. Ihr könnt also z.B. den Blog in deutsch den Benutzern präsentieren und gleichzeitig Englisch innerhalb des Loginbereichs verwenden.
Installation:
Installation über die WordPress Adminstrator-Seiten:
- Gehe zur Admin-Seite
Plugins -> Installieren - Suche nach
kau-boyund wähle das Plugin aus - Wähle die Aktion
Jetzt installieren - Klicke auf
Jetzt installieren - Aktiviere das Plugin über den
PluginsMenüpunkt in WordPress - Du musst eventuell die Einstellungen anpassen, vor Allem die Sprache für das Backend
Installation unter Verwendung der WordPress Adminstrator-Seiten:
- Lade die zip-Datei des Plugins herunter: kau-boys-backend-localization.1.3.zip
- Gehe zur Admin-Seite
Plugins -> Installieren - Wähle den Link
HochladenunterPlugins InstallierenÜberschrift - Wähle die zip-Datei aus und klicke
Jetzt installieren - Aktiviere das Plugin über den
PluginsMenüpunkt in WordPress - Du musst eventuell die Einstellungen anpassen, vor Allem die Sprache für das Backend
Installation unter Verwendung von FTP
- Lade die zip-Datei des Plugins herunter: kau-boys-backend-localization.1.3.zip
- Entpacke es und lade es in dein
/wp-content/plugins/Verzeichnis hoch - Aktiviere das Plugin über den
PluginsMenüpunkt in WordPress - Du musst eventuell die Einstellungen anpassen, vor Allem die Sprache für das Backend
Screenshots:
Screenshot der Einstellungsseite

Screenshot der Sprachumschalters im Adminmenü (ähnlich zum qTranslate Umschalter)

Screenshot der Sprachauswahl im Loginfomular

Versionsgeschichte:
- 1.3 Anpassung des Plugins für die Verwendung mit PHP4. Danke an David für den Fix!
- 1.2.1 Ersetzen der do_action() Funktion mit der add_action() Funktion für admin_menu um Probleme mit anderen Plugins zu vermeiden
- 1.2 Hinzufügen von neuen unterstützten Sprachen
- 1.1 Entfernen von “short open tags”, die auf blogs die Fehler verursachen die “short_open_tag” nicht auf “On” gesetzt haben
- 1.0 Hinzufügen eines Sprachumschalters zum Adminmenu und einer Option zum verbergen der Sprachauswahl im Anmeldeformular
- 0.6 Speichern der Spacheinstellungen in einem Cookie um verschiedene Sprachen für mehrere Benutzer zu ermöglichen
- 0.5 Hinzufügen einer Sprachauswahl zur Anmelden Seite
- 0.4 Anzeige aller Sprachen, die im WordPress language Ordner gespeichert sind
- 0.3 Aktivieren der neuen Sprache nach dem Speichern (kein Neuladen mehr nötig)
- 0.2 Hinzufügen der deutschen Übersetzung für die Einstellungsseite
- 0.1 Erste stabile Version
Wenn dir dieses Plugin gefällt oder dir etwas fehlt, würde ich mich freuen es zu erfahren. Hinterlasse einfach ein Kommentar auf dieser Seiter oder auf meiner WordPress Plugin Seite.













Works great, thank you
I enjoy this site, it is worth me coming back
Hi! Nice PlugIn (i guess) – can’t get it to work on a WordPress MU Blog. Don’t know whether it’s due to that, or if i did something wrong. The following thing happend, when i uploaded the .zip, which has automatically been extracted. The installation has been also successful, but i was unable to activate it. I got the following error:
( ! ) Parse error: syntax error, unexpected ‘}’ in /path/to/wp/wp-content/plugins/kau-boys-backend-localization/backend_localization.php on line 167
Are there any hints you can give me?
Thanks for your error reposting. On my new local test environment I once had the same problem. But that it suddenly disappeared, so I thought it was because of a developing error on that local test blog. But now with your help I found the problem. In to lines I used <? in and not <?php to open a PHP block. This so called short open tag must be activated in PHP which isn't in most of the custom setting. I now replaced the two short open tags with the correct long form and added the new version 1.1 to the wordpress plugins. So please update the plugin through your blog backend.
Again many thanks for finding this error!
Hey Bernhard, thanks for the fast response due to the bug
At least I have been able to activate your plugin. Now I can see the language switches on the login screen and in the backend. But they do not provide any functionality. Any changes I do are not applied. Only the ‘Blog language’-option in the ‘Settings>Generals’ tab seem to be able changing the language of the backend.
The only thing I did has been creating a directory ‘languages’ in the ‘wp-content’ dir and putting in the ‘de_DE.mo’ language file and editing the ‘wp-config.php’ line define (‘WPLANG’, ”); to define (‘WPLANG’, ‘de_DE’);. Further info: using WordPress MU 2.8.5.2 .
Thanks again for any help
Plese go to the settings page of my plugin. Can you see any available languages on this page? In the description you will find the path to the folder, where you have to place to .mo files. On most blogs it should be inside the wp_content folder, but it might be in a diffrent one in WordPress MU. Yesterday I tried to install a WordPress MU on my local test environment, but I didn’t succeed. I wil try to do that this evening again to find out if there is a problem with Wordress MU.
Using my plugin you don’t have to chage the WPLANG in the config. also you shouldn’t change the WPLANG, as it changed both, the backend AND the frontend language.
may i help u to translate to Malay language..?
Yes that would be great. I don’t have a current .pot file in the plugins folder but you can just copy the German po file and use it for your translation.
Hey Bernhard,
I,ve installed your Plug-In and I,m using WordPress 2.8.6. Now I,ve a problem. WordPress shows me the different languages and if I choose one, nothing happen. The backend language is still the same. Could you please help me?
How did you tried to change the backend language? In some cases, the selection on the login screen doesn’t work, especially if it is affected by some other plugins. But you should be able to change the language with the switcher in the admin menu.
I,ve tried both ways, but it didn,t work. If I change the language in ‘wp-config.php’ (‘WPLANG’, ‘es_ES’); it works. I,m using WPML Multilingual CMS Plug-In for the frontend. May be it is because of WPML?
I like this plug-in but am wondering if you could create a PHP 4 compatable version due to the host I have?
scandir is causing me some issues. Thanks!
I resolved the issue. Some may not be necessary.
/* php 4 fix */ $dir = WP_LANG_DIR; $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } /* read the array */ foreach($files as $file){ $fileParts = pathinfo($file); if(!isset($fileParts['filename']) && $fileParts['extension'] == 'mo' && (strlen($fileParts['filename']) <= 5)){ $fileParts['filename'] = substr($fileParts['basename'], 0,strpos($fileParts['basename'],'.')); $backend_locale_array[] = $fileParts['filename']; } }