RSS Feed

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.

Es sind alle Sprachen auswählbar, die in WordPress installiert wurden. Fals also eine Sprache fehlt, kann diese auf der Website von WordPress runtergeladen werden und in das entprechende Verzeichnis installiert werden. Der Download-Link und das eigene Verzeichnis für die Sprachdateien werden in der Administrationsoberfläche des Plugins angezeigt.

Installation:

Installation über die WordPress Adminstrator-Seiten:

  1. Gehe zur Admin-Seite Plugins -> Installieren
  2. Suche nach kau-boy und wähle das Plugin aus
  3. Wähle die Aktion Jetzt installieren
  4. Klicke auf Jetzt installieren
  5. Aktiviere das Plugin über den Plugins Menüpunkt in WordPress
  6. Du musst eventuell die Einstellungen anpassen, vor Allem die Sprache für das Backend

Installation unter Verwendung der WordPress Adminstrator-Seiten:

  1. Lade die zip-Datei des Plugins herunter: kau-boys-backend-localization.1.5.zip
  2. Gehe zur Admin-Seite Plugins -> Installieren
  3. Wähle den Link Hochladen unter Plugins Installieren Überschrift
  4. Wähle die zip-Datei aus und klicke Jetzt installieren
  5. Aktiviere das Plugin über den Plugins Menüpunkt in WordPress
  6. Du musst eventuell die Einstellungen anpassen, vor Allem die Sprache für das Backend

Installation unter Verwendung von FTP

  1. Lade die zip-Datei des Plugins herunter: kau-boys-backend-localization.1.5.zip
  2. Entpacke es und lade es in dein /wp-content/plugins/ Verzeichnis hoch
  3. Aktiviere das Plugin über den Plugins Menüpunkt in WordPress
  4. Du musst eventuell die Einstellungen anpassen, vor Allem die Sprache für das Backend

Screenshots:

Screenshot der Einstellungsseite

Screenshot der Einstellungsseite

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

Screenshot der Sprachumschalters im Adminmenü

Screenshot der Sprachauswahl im Loginfomular

Screenshot der Sprachauswahl im Loginfomular

Versionsgeschichte:

  • 1.5 Plugin für WordPress 3.0 MULTISITE Feature repariert
  • 1.4 Plugins für WordPress MU repariert und die Login Sprachen Auswahl repariert
  • 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.

PayPal - The safer, easier way to pay online! PayPal - The safer, easier way to pay online!

  • Twitter
  • email
  • RSS
  • Facebook
  • MySpace
  • Google Bookmarks
  • MisterWong.DE
  • del.icio.us
  • LinkArena
  • Digg
  • Sphinn
  • Mixx
  • Reddit
  • Slashdot
  • Yigg
  • Technorati

Hinterlasse einen Kommentar

  1. Kelli Garner sagt:

    I enjoy this site, it is worth me coming back

  2. Alex sagt:

    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?

    • Bernhard sagt:

      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!

  3. Alex sagt:

    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 ;)

    • Bernhard sagt:

      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.

  4. lazaac sagt:

    may i help u to translate to Malay language..?

  5. Waheed sagt:

    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?

    • Bernhard sagt:

      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.

      • Waheed sagt:

        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?

  6. David sagt:

    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!

    • David sagt:

      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'];
      	}
      }
      
  7. Inaki sagt:

    I’m using this plugin in WPMU installation and it works fine in all the blogs, expect for one. In this one blog, the language selected on the login page’s dropbox comes back once and again. For example, if pick EN when logging in and then I use the flags to change languages, every time I clik on a menu item, the language changes back to EN.

    Any ideas of what the problem could be?

    Thanks a lot!

  8. Inaki sagt:

    Yes, it’s on WPMU with the other blogs. I use WPMU 2.9.2

    Thanks a lot for your help!

  9. Lars sagt:

    Hallo,

    ich nutze das Plugin in einer Wpmu Installation.
    Ich habe als Sprachze für das Backend Deutsch gewählt.
    Allerdings ist noch immer alles in Englisch.
    Woran könnte das liegen?

    Grüße,
    Lars

  10. Lars sagt:

    Hi Bernhard,

    ja ich nutze die aktuellste Version.

    Grüße,
    Lars

  11. [...] neue Version könnt ihr auf meinem Post zum Plugin sowie im Plugin Repository von wordpress.org runterladen. Wer es schon installiert hat kann es wie [...]

  12. Bernhard sagt:

    @Inaki: The Plugin has been fixed for WordPress MU. Thanks for your comment.
    @Lars: Danke auch für deinen Kommentar und ich hoffe es funktioniert jetzt bei dir.

  13. Diondeville sagt:

    Hi, I’ve tried the plugin with WordPress 3 MS. It changes the backend language without any problems but…but.. it prevents the frontend language from being changed. I’ve tried network activation, activation per site and activation only on the top domain but the result is always the same – the backend language changes but the frontend (regardless of WPLANG) remains in English (the plugin’s default backend language).

    I might have misunderstood the plugins purpose, is it supposed to change the backend language and allow the frontend language to be whatever is set in WP-Lang?

Hinterlasse einen Kommentieren

Impressum