Support Forum

5.26 Translation

PL Paulo Loureiro
Paulo Loureiro
Member

Hello, 

i hope i can find help here.

My Problem is that the translations not working. 

I downloaded sp-de.mo and sp-de.po . With 36 and 66 Bytes.
Than i canged the names to sp-de_De.mo and sp-de_De.po .
Upload with ftp in the File /sp-resources/forum-language/simple-press
In the config.php ad the code define (‘WPLANG’, ‘de’); 

Greetings

 

17 Answers

New Answer

MP Mr Papa
Mr Papa
Member

what are you trying to translate?  see:  http://codex.simple-press.com/codex/installation/installation-information/localization/

keep in mind that a lot of the translations will be in theme translation file not core since the theme does most of the displaying…  and some will be in plugins…

YS Yellow Swordfish
Yellow Swordfish
Member

And please note that:

  1. If  your WP_LANG setting is ‘de’ then you should NOT change the filenames to ‘de_DE’. They need to be the same as your WP_LANG setting.
  2. You only actually need to download the .po file.

 

PL Paulo Loureiro
Paulo Loureiro
Member

Can you Admins give me a step by step diretion, please? 

I want translate the Simple Press Core in german.

 

 

 

 

 

YS Yellow Swordfish
Yellow Swordfish
Member

But the core is already translated into German. Do you mean you want to translate it differently or did you just not know it was available? See the ‘Translations’ link at the top of the sidebar and for more information on use see the install section of our Codex.

Please remember that most of what you see displayed does NOT come from the SP core but from the theme you are using.

PL Paulo Loureiro
Paulo Loureiro
Member

Ok, sorry not translate. I want install the german language files( po and mo file) in my simple press forum. 
And i don´t know what i need to doing. I´m work 8 days at this problem.And read and read.

You say it´s not need to change filenames. It´s not working by me. What make i wrong? 
You see my step by step in beginning of this post.

Look please for better understanding and so much sorry for my english.

http://econexio.com/forum/

 

 

YS Yellow Swordfish
Yellow Swordfish
Member

So first describe to me – in detail – what you HAVE done so far…

PL Paulo Loureiro
Paulo Loureiro
Member

I going to glotpress webpage. 

Simple Press Core – Version 5.2 – Front End – German

Export all current as Portabel Object Message Catalog (.po)
Export all current as Maschine Object Message Catalog (.mo)

I have the files: sp-de.po ; sp-de.mo
Changed the filnames to sp-de_DE.po  ; sp-de_DE.mo
Upload to my server in file: / sp-resources/forum-language/simple-press/

Edit my config.php. Here a part of my side:

/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);

/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);

define (‘WPLANG’, ‘de’);

 

Thanks for search! 

 

 

 

 

 

YS Yellow Swordfish
Yellow Swordfish
Member

Firstly – you only need the ‘po’ file.

And – why did you rename the files? It needs to match your WP_LANG setting which is just ‘de’. So the file should be ‘sp-de.po’.

And, of course, remember that most of the translations you see on the screen do NOT come from the core file – they come from the SP theme you are using so you will need to download and install that as well.

PL Paulo Loureiro
Paulo Loureiro
Member

Ok, i have now only the “po” file, with the name “sp-de.po”.

I read on wordpress.org from users that they changed the filenames.

I´m using the default theme. My language file now is spDefault.po

And now ?

 

YS Yellow Swordfish
Yellow Swordfish
Member

Now you have gone the other way and taken the language code off altogether.

That should be spDefault-de.po

That’s the simple rule. Translation file name (spDefault), hyphen, language code (de in your case but MUST match your WP_LANG setting).

And – obviously – theme PO files go in the forum-language/sp-themes/ folder (wich is the default path)

PL Paulo Loureiro
Paulo Loureiro
Member

Sorry Yellow Swordfisch, i understand nothing :)  
I changed the filename to spDefault-de.po but not work. 

Can i give you my ftp login and you change ??? Please! :)

 

MP Mr Papa
Mr Papa
Member

so you have:

wp-content/sp-resources/forum-language/simple-press which should contain the file:  sp-de.mo  (believe Andy misspoke when he said .po file)

and then you should have:

wp-content/sp-resources/forum-language/sp-themes/spDefault-de.mo

assuming you are using the sp default theme…  and your wp-config.php has this:

define (‘WPLANG’, ‘de’);

PL Paulo Loureiro
Paulo Loureiro
Member

Thanks Papa!

I uploaded now the mo Files to the denoted file folders. Nothing works.
I believe that the problem makes my premium wordpress theme. I search anymore.

 

 

 

 

WO workflow
workflow
Member

Hallo Paulo,

 

ich schreib mal auf deutsch, dann ist es vielleicht leichter. :)

Zuerst! musst du von der Seite :

http://glotpress.simple-press.com/projects

die drei verschiedenen .mo-Dateien herunterladen (also 2 .mo-Dateien aus dem “Simple Press Core-Bereich” und 1 .mo-Datei Aus dem “Simple Press Themes-Bereich”).

Die .mo-Datei aus der Themes-Kategorie (Z.B. spdefault-de.mo) muß in den Ordner:

/wp-content/sp-resources/forum-language/sp-themes

(achte darauf, dass es dein aktuelles Theme ist – Welches du benutzt findest Du im Admin Bereich von Simple Press wenn du auf Themes klickst – wenn du nichts geändert hast ist es das Default-Theme)

 

Und die beiden Dateien aus der Core-Kategorie (spa-de.mo und sp-de.mo) kommen in den Ordner:

/wp-content/sp-resources/forum-language/simple-press

Nachdem du die Dateien hochgeladen hast, kannst du mal testen ob die Übersetzung funktioniert. Falls ja .. das wars. :)

Falls nein mußt du noch einen Blick in die wp-config.php werfen. (in deinem Hauptverzeichnis von WordPress)

 

Da sollte es so einen Eintrag geben:

define(‘WPLANG’, ‘de_DE’);

oder

define(‘WPLANG’, ‘de’);

 

Wenn da die de_DE Version steht, änderst du die drei hochgeladenen Dateien in:

spdefault-de_DE.mo

spa-de_DE.mo

sp-de_DE.mo

Dann wieder testen ob die Übersetzung geklappt hat.

Falls da die de-Version steht lässt du die Namen so wie sie sind.

 

Wenn die Übersetzung trotz de_DE Umbenennung nicht klappt oder das Umbenennen nicht nötig war, sind voraussichtlich die Standard Ordner nicht richtig eingestellt. Die findest du im Admin Bereich von Simple Press unter Integration/Storage Locations.

Da sollte dann das stehen :     Simple:Press Language Files:    sp-resources/forum-language/simple-press

Dann wieder testen ob die Übersetzung klappt.

Falls ja .. :)

Falls nein,  dann habe ich auch keine Idee und es müsste auf englisch weiter gehen …

 

Ich hoffe ich konnte Dir helfen .. Viel Erfolg!